mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-21 22:01:01 +02:00
Run gofmt
This commit is contained in:
parent
9e5b317c0d
commit
eca41f5319
@ -654,7 +654,7 @@ func funcLabelReplace(ev *evaluator, args Expressions) model.Value {
|
|||||||
func funcVector(ev *evaluator, args Expressions) model.Value {
|
func funcVector(ev *evaluator, args Expressions) model.Value {
|
||||||
return vector{
|
return vector{
|
||||||
&sample{
|
&sample{
|
||||||
Metric: metric.Metric{},
|
Metric: metric.Metric{},
|
||||||
Value: model.SampleValue(ev.evalFloat(args[0])),
|
Value: model.SampleValue(ev.evalFloat(args[0])),
|
||||||
Timestamp: ev.Timestamp,
|
Timestamp: ev.Timestamp,
|
||||||
},
|
},
|
||||||
@ -857,10 +857,10 @@ var functions = map[string]*Function{
|
|||||||
Call: funcTopk,
|
Call: funcTopk,
|
||||||
},
|
},
|
||||||
"vector": {
|
"vector": {
|
||||||
Name: "vector",
|
Name: "vector",
|
||||||
ArgTypes: []model.ValueType{model.ValScalar},
|
ArgTypes: []model.ValueType{model.ValScalar},
|
||||||
ReturnType: model.ValVector,
|
ReturnType: model.ValVector,
|
||||||
Call: funcVector,
|
Call: funcVector,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user