File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ type Alert struct {
327
327
Annotations model.LabelSet
328
328
Labels model.LabelSet
329
329
State AlertState
330
- Value float64
330
+ Value string
331
331
}
332
332
333
333
// TargetsResult contains the result from querying the targets endpoint.
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ func TestAPIs(t *testing.T) {
493
493
"severity" : "page" ,
494
494
},
495
495
"state" : "firing" ,
496
- "value" : 1 ,
496
+ "value" : "1e+00" ,
497
497
},
498
498
},
499
499
"annotations" : map [string ]interface {}{
@@ -537,7 +537,7 @@ func TestAPIs(t *testing.T) {
537
537
"severity" : "page" ,
538
538
},
539
539
State : AlertStateFiring ,
540
- Value : 1 ,
540
+ Value : "1e+00" ,
541
541
},
542
542
},
543
543
Annotations : model.LabelSet {
You can’t perform that action at this time.
0 commit comments