mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Simplification
This commit is contained in:
parent
2f0e229936
commit
d6154ff35b
@ -246,15 +246,16 @@ func (c *metricAggregator) AddAggregation(name, function, condition string, tags
|
||||
return nil
|
||||
}
|
||||
}
|
||||
var agg MetricAggregatorIntervalConfig
|
||||
agg.Name = name
|
||||
agg.Condition = newcond
|
||||
agg.gvalCond = gvalCond
|
||||
agg.Function = newfunc
|
||||
agg.gvalFunc = gvalFunc
|
||||
agg.Tags = tags
|
||||
agg.Meta = meta
|
||||
c.functions = append(c.functions, &agg)
|
||||
agg := &MetricAggregatorIntervalConfig{
|
||||
Name: name,
|
||||
Condition: newcond,
|
||||
gvalCond: gvalCond,
|
||||
Function: newfunc,
|
||||
gvalFunc: gvalFunc,
|
||||
Tags: tags,
|
||||
Meta: meta,
|
||||
}
|
||||
c.functions = append(c.functions, agg)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user