Explorar el Código

using millis for annotations too

ryan hace 7 años
padre
commit
60816f5fc2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/services/alerting/result_handler.go

+ 1 - 1
pkg/services/alerting/result_handler.go

@@ -77,7 +77,7 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
 			Text:        "",
 			NewState:    string(evalContext.Rule.State),
 			PrevState:   string(evalContext.PrevAlertState),
-			Epoch:       time.Now().Unix(),
+			Epoch:       time.Now().UnixNano() / int64(time.Millisecond),
 			Data:        annotationData,
 		}