@@ -771,14 +771,14 @@ func TestAPIs(t *testing.T) {
771
771
Name : "HighRequestLatency" ,
772
772
Query : "job:request_latency_seconds:mean5m{job=\" myjob\" } > 0.5" ,
773
773
LastError : "" ,
774
- Type : "alerting" ,
774
+ Type : string ( RuleTypeAlerting ) ,
775
775
},
776
776
RecordingRule {
777
777
Health : RuleHealthGood ,
778
778
Name : "job:http_inprogress_requests:sum" ,
779
779
Query : "sum(http_inprogress_requests) by (job)" ,
780
780
LastError : "" ,
781
- Type : "recording" ,
781
+ Type : string ( RuleTypeRecording ) ,
782
782
},
783
783
},
784
784
},
@@ -872,7 +872,7 @@ func TestAPIs(t *testing.T) {
872
872
},
873
873
Name : "HighRequestLatency" ,
874
874
Query : "job:request_latency_seconds:mean5m{job=\" myjob\" } > 0.5" ,
875
- Type : "alerting" ,
875
+ Type : string ( RuleTypeAlerting ) ,
876
876
EvaluationTime : 0.5 ,
877
877
LastEvaluation : time .Date (2020 , 5 , 18 , 15 , 52 , 53 , 450311300 , time .UTC ),
878
878
State : "firing" ,
@@ -881,7 +881,7 @@ func TestAPIs(t *testing.T) {
881
881
Health : RuleHealthGood ,
882
882
Name : "job:http_inprogress_requests:sum" ,
883
883
Query : "sum(http_inprogress_requests) by (job)" ,
884
- Type : "recording" ,
884
+ Type : string ( RuleTypeRecording ) ,
885
885
EvaluationTime : 0.3 ,
886
886
LastEvaluation : time .Date (2020 , 5 , 18 , 15 , 52 , 53 , 450311300 , time .UTC ),
887
887
},
0 commit comments