-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create DiscoverEC2 User Tasks when Auto Discover fails on EC2 instanc…
…es (#47064) * Create DiscoverEC2 User Tasks for failed EC2 enrollments This PR changes the DiscoveryService to start creating and updating Discover EC2 User Tasks. So, what are Discover EC2 User Tasks? When users set up Auto Discover for EC2 Instances, they don't have a good way of checking for issues on their configured matchers. We created User Tasks as a way to warn Users that something's wrong. Each User Task should describe an issue that happened and a way to fix it. This has potential to be used to report unexpected events trough the whole system, which are not errors per se, but something the user should take action in order to improve the situation. In this case, we are creating a sub type of those tasks: DiscoverEC2. From now on, when the DiscoveryService fails to auto-enroll an instance, it will create a DiscoverEC2 User Task grouping all the failed instances by the following props: - integration - issue type - account id - region A follow up PR will also create notifications so that the user can actually be notified on those User Tasks and take action. * improve naming and split function into multiple methods * rename task issues variable name * fix context early cancelation
- Loading branch information
1 parent
95af4c1
commit 34f9bb7
Showing
8 changed files
with
417 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.