mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-22 16:36:27 +01:00
58 lines
2.1 KiB
Go
58 lines
2.1 KiB
Go
// Code generated by qtc from "series_count_response.qtpl". DO NOT EDIT.
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
// SeriesCountResponse generates response for /api/v1/series/count .
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:3
|
|
package prometheus
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:3
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:3
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:3
|
|
func StreamSeriesCountResponse(qw422016 *qt422016.Writer, n uint64) {
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:3
|
|
qw422016.N().S(`{"status":"success","data":[`)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:6
|
|
qw422016.N().DL(int64(n))
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:6
|
|
qw422016.N().S(`]}`)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
}
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
func WriteSeriesCountResponse(qq422016 qtio422016.Writer, n uint64) {
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
StreamSeriesCountResponse(qw422016, n)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
}
|
|
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
func SeriesCountResponse(n uint64) string {
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
WriteSeriesCountResponse(qb422016, n)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
qs422016 := string(qb422016.B)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
return qs422016
|
|
//line app/vmselect/prometheus/series_count_response.qtpl:8
|
|
}
|