Skip to content

Commit 3acad52

Browse files
committed
feat(alerts): adds support for pollingFrequency for CCI events
1 parent 91c26cb commit 3acad52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/alerts/nrql_conditions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type AlertsNrqlConditionSignal struct {
3131
AggregationDelay *int `json:"aggregationDelay,omitempty"`
3232
AggregationTimer *int `json:"aggregationTimer,omitempty"`
3333
SlideBy *int `json:"slideBy,omitempty"`
34+
PollingFrequency *int `json:"pollingFrequency,omitempty"`
3435
}
3536

3637
// AlertsNrqlConditionCreateSignal - Configuration that defines the signal that the NRQL condition will use to evaluate for Create.
@@ -45,6 +46,7 @@ type AlertsNrqlConditionCreateSignal struct {
4546
AggregationDelay *int `json:"aggregationDelay,omitempty"`
4647
AggregationTimer *int `json:"aggregationTimer,omitempty"`
4748
SlideBy *int `json:"slideBy,omitempty"`
49+
PollingFrequency *int `json:"pollingFrequency,omitempty"`
4850
}
4951

5052
// AlertsNrqlConditionUpdateSignal - Configuration that defines the signal that the NRQL condition will use to evaluate for Update.
@@ -59,6 +61,7 @@ type AlertsNrqlConditionUpdateSignal struct {
5961
AggregationDelay *int `json:"aggregationDelay"`
6062
AggregationTimer *int `json:"aggregationTimer"`
6163
SlideBy *int `json:"slideBy"`
64+
PollingFrequency *int `json:"pollingFrequency,omitempty"`
6265
}
6366

6467
// NrqlConditionAggregationMethod - The available aggregation methods.
@@ -785,6 +788,7 @@ const (
785788
aggregationDelay
786789
aggregationTimer
787790
slideBy
791+
pollingFrequency
788792
}
789793
`
790794

0 commit comments

Comments
 (0)