feat(annotations): added support to show grafana stored annotations in graphs, #5982
This commit is contained in:
@@ -66,7 +66,6 @@ func (c *EvalContext) GetStateModel() *StateDescription {
|
||||
default:
|
||||
panic("Unknown rule state " + c.Rule.State)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (a *EvalContext) GetDurationMs() float64 {
|
||||
|
||||
@@ -73,7 +73,7 @@ func (handler *DefaultResultHandler) Handle(ctx *EvalContext) {
|
||||
Text: ctx.GetStateModel().Text,
|
||||
NewState: string(ctx.Rule.State),
|
||||
PrevState: string(oldState),
|
||||
Timestamp: time.Now(),
|
||||
Epoch: time.Now().Unix(),
|
||||
Data: annotationData,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user