tech(alerting): adds tags to alerting data model
This commit is contained in:
@@ -67,6 +67,7 @@ func (c *QueryCondition) Eval(context *alerting.EvalContext) (*alerting.Conditio
|
||||
matches = append(matches, &alerting.EvalMatch{
|
||||
Metric: series.Name,
|
||||
Value: reducedValue,
|
||||
Tags: series.Tags,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -51,8 +51,9 @@ type QueryResult struct {
|
||||
}
|
||||
|
||||
type TimeSeries struct {
|
||||
Name string `json:"name"`
|
||||
Points TimeSeriesPoints `json:"points"`
|
||||
Name string `json:"name"`
|
||||
Points TimeSeriesPoints `json:"points"`
|
||||
Tags map[string]string `json:"tags"`
|
||||
}
|
||||
|
||||
type TimePoint [2]null.Float
|
||||
|
||||
Reference in New Issue
Block a user