Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept of list of monitor ids in findings and alerts request dtos #277

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

eirsep
Copy link
Member

@eirsep eirsep commented Oct 10, 2022

@eirsep eirsep requested a review from a team October 10, 2022 20:38
sbcd90
sbcd90 previously approved these changes Oct 10, 2022

class GetAlertsRequest : ActionRequest {
val table: Table
val severityLevel: String
val alertState: String
val monitorId: String?
val alertIndex: String?
val monitorIds: List<String>?
Copy link
Contributor

@qreshi qreshi Oct 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we've defined monitorIds as nullable here, we should also make it nullable in the constructor (or non-nullable for both so it's consistent)

Same goes for the GetFindingsRequest

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack. done

Signed-off-by: Surya Sashank Nistala <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2022

Codecov Report

Merging #277 (92601a0) into main (7a91f54) will increase coverage by 0.09%.
The diff coverage is 92.30%.

@@             Coverage Diff              @@
##               main     #277      +/-   ##
============================================
+ Coverage     71.42%   71.52%   +0.09%     
- Complexity      662      666       +4     
============================================
  Files           108      108              
  Lines          4466     4477      +11     
  Branches        605      605              
============================================
+ Hits           3190     3202      +12     
+ Misses         1025     1024       -1     
  Partials        251      251              
Impacted Files Coverage Δ
...arch/commons/alerting/action/GetFindingsRequest.kt 92.85% <85.71%> (+5.90%) ⬆️
...search/commons/alerting/action/GetAlertsRequest.kt 96.66% <100.00%> (+0.83%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@eirsep eirsep merged commit c231644 into opensearch-project:main Oct 10, 2022
eirsep added a commit to eirsep/common-utils that referenced this pull request Oct 10, 2022
AWSHurneyt pushed a commit that referenced this pull request Oct 10, 2022
…) (#278)

Signed-off-by: Surya Sashank Nistala <[email protected]>

Signed-off-by: Surya Sashank Nistala <[email protected]>
wuychn pushed a commit to ochprince/common-utils that referenced this pull request Mar 16, 2023
AWSHurneyt pushed a commit to AWSHurneyt/common-utils that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants