mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(alerting): adds tags to alerting data model
This commit is contained in:
parent
982dc276d3
commit
3827c0a69c
@ -67,6 +67,7 @@ func (c *QueryCondition) Eval(context *alerting.EvalContext) (*alerting.Conditio
|
|||||||
matches = append(matches, &alerting.EvalMatch{
|
matches = append(matches, &alerting.EvalMatch{
|
||||||
Metric: series.Name,
|
Metric: series.Name,
|
||||||
Value: reducedValue,
|
Value: reducedValue,
|
||||||
|
Tags: series.Tags,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,7 @@ type QueryResult struct {
|
|||||||
type TimeSeries struct {
|
type TimeSeries struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Points TimeSeriesPoints `json:"points"`
|
Points TimeSeriesPoints `json:"points"`
|
||||||
|
Tags map[string]string `json:"tags"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TimePoint [2]null.Float
|
type TimePoint [2]null.Float
|
||||||
|
Loading…
Reference in New Issue
Block a user