-
Notifications
You must be signed in to change notification settings - Fork 108
feat(alerts): add support for cci polling frequency field in conditions #1303
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1303 +/- ##
=======================================
Coverage ? 36.85%
=======================================
Files ? 132
Lines ? 7808
Branches ? 0
=======================================
Hits ? 2878
Misses ? 4734
Partials ? 196
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4739360 to
47121b6
Compare
| AggregationDelay *int `json:"aggregationDelay"` | ||
| AggregationTimer *int `json:"aggregationTimer"` | ||
| SlideBy *int `json:"slideBy"` | ||
| PollingFrequency *int `json:"pollingFrequency,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PollingFrequency should be nullable, right? Curious if we should leave off omitEmpty here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PollingFrequency is only for static conditions, but alertsNrqlConditionBaselineCreate does allow for pollingFrequency: null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed this - looks like create should allow null, but update should not
47121b6 to
a06d530
Compare
a06d530 to
02f8af5
Compare
DO NOT MERGE YET
https://new-relic.atlassian.net/browse/NR-413526
Adds support for polling frequency - a new field on conditions that is part of CCI project
newrelic/terraform-provider-newrelic#2890