@@ -712,12 +712,13 @@ type AlertV2Common struct {
712
712
type AlertV2ConfigPrometheus struct {
713
713
Query string `json:"query"`
714
714
KeepFiringForSec * int `json:"keepFiringForSec,omitempty"`
715
+
716
+ Duration int `json:"duration"`
715
717
}
716
718
717
719
type AlertV2Prometheus struct {
718
720
AlertV2Common
719
- DurationSec int `json:"durationSec"`
720
- Config AlertV2ConfigPrometheus `json:"config"`
721
+ Config AlertV2ConfigPrometheus `json:"config"`
721
722
}
722
723
723
724
type alertV2PrometheusWrapper struct {
@@ -755,12 +756,13 @@ type AlertV2ConfigEvent struct {
755
756
756
757
Filter string `json:"filter"`
757
758
Tags []string `json:"tags"`
759
+
760
+ Range int `json:"range"`
758
761
}
759
762
760
763
type AlertV2Event struct {
761
764
AlertV2Common
762
- DurationSec int `json:"durationSec"`
763
- Config AlertV2ConfigEvent `json:"config"`
765
+ Config AlertV2ConfigEvent `json:"config"`
764
766
}
765
767
766
768
type alertV2EventWrapper struct {
@@ -796,11 +798,13 @@ type AlertV2ConfigMetric struct {
796
798
TimeAggregation string `json:"timeAggregation"`
797
799
Metric AlertMetricDescriptorV2 `json:"metric"`
798
800
NoDataBehaviour string `json:"noDataBehaviour"`
801
+
802
+ Range int `json:"range"`
803
+ Duration int `json:"duration"`
799
804
}
800
805
801
806
type AlertV2Metric struct {
802
807
AlertV2Common
803
- DurationSec int `json:"durationSec"`
804
808
Config AlertV2ConfigMetric `json:"config"`
805
809
UnreportedAlertNotificationsRetentionSec * int `json:"unreportedAlertNotificationsRetentionSec"`
806
810
}
@@ -818,11 +822,12 @@ type AlertV2ConfigDowntime struct {
818
822
GroupAggregation string `json:"groupAggregation"`
819
823
TimeAggregation string `json:"timeAggregation"`
820
824
Metric AlertMetricDescriptorV2 `json:"metric"`
825
+
826
+ Range int `json:"range"`
821
827
}
822
828
823
829
type AlertV2Downtime struct {
824
830
AlertV2Common
825
- DurationSec int `json:"durationSec"`
826
831
Config AlertV2ConfigDowntime `json:"config"`
827
832
UnreportedAlertNotificationsRetentionSec * int `json:"unreportedAlertNotificationsRetentionSec"`
828
833
}
@@ -856,11 +861,12 @@ type AlertV2ConfigFormBasedPrometheus struct {
856
861
WarningConditionOperator string `json:"warningConditionOperator,omitempty"`
857
862
WarningThreshold * float64 `json:"warningThreshold,omitempty"`
858
863
NoDataBehaviour string `json:"noDataBehaviour"`
864
+
865
+ Duration int `json:"duration"`
859
866
}
860
867
861
868
type AlertV2FormBasedPrometheus struct {
862
869
AlertV2Common
863
- DurationSec int `json:"durationSec"` // not really used but the api wants it set to 0 in POST/PUT
864
870
Config AlertV2ConfigFormBasedPrometheus `json:"config"`
865
871
UnreportedAlertNotificationsRetentionSec * int `json:"unreportedAlertNotificationsRetentionSec"`
866
872
}
@@ -881,11 +887,12 @@ type AlertV2ConfigGroupOutlier struct {
881
887
TimeAggregation string `json:"timeAggregation"`
882
888
Metric AlertMetricDescriptorV2 `json:"metric"`
883
889
NoDataBehaviour string `json:"noDataBehaviour"`
890
+
891
+ ObservationWindow int `json:"observationWindow"`
884
892
}
885
893
886
894
type AlertV2GroupOutlier struct {
887
895
AlertV2Common
888
- DurationSec int `json:"durationSec"` // Observation window should be greater than or equal to 10 minutes
889
896
Config AlertV2ConfigGroupOutlier `json:"config"`
890
897
UnreportedAlertNotificationsRetentionSec * int `json:"unreportedAlertNotificationsRetentionSec"`
891
898
}
@@ -896,7 +903,6 @@ type alertV2GroupOutlierWrapper struct {
896
903
897
904
type AlertV2Change struct {
898
905
AlertV2Common
899
- DurationSec int `json:"durationSec"` // not really used but the api wants it set to 0 in POST/PUT
900
906
Config AlertV2ConfigChange `json:"config"`
901
907
UnreportedAlertNotificationsRetentionSec * int `json:"unreportedAlertNotificationsRetentionSec"`
902
908
}
0 commit comments