tech(alerting): adds tags to alerting data model

This commit is contained in:
bergquist 2017-02-06 14:59:29 +01:00
parent 982dc276d3
commit 3827c0a69c
2 changed files with 4 additions and 2 deletions

View File

@ -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,
})
}
}

View File

@ -53,6 +53,7 @@ type QueryResult struct {
type TimeSeries struct {
Name string `json:"name"`
Points TimeSeriesPoints `json:"points"`
Tags map[string]string `json:"tags"`
}
type TimePoint [2]null.Float