2020-09-10 21:28:19 +00:00
|
|
|
// Code generated by qtc from "metrics_find_response.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:1
|
|
|
|
package graphite
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:1
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MetricsFindResponse generates response for /metrics/find .See https://graphite-api.readthedocs.io/en/latest/api.html#metrics-find
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:11
|
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:11
|
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:11
|
|
|
|
func StreamMetricsFindResponse(qw422016 *qt422016.Writer, paths []string, delimiter, format string, addWildcards bool, jsonp string) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:12
|
|
|
|
if jsonp != "" {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:12
|
|
|
|
qw422016.N().S(jsonp)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:12
|
|
|
|
qw422016.N().S(`(`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:12
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:13
|
|
|
|
switch format {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:14
|
|
|
|
case "completer":
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:15
|
|
|
|
streammetricsFindResponseCompleter(qw422016, paths, delimiter, addWildcards)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:16
|
|
|
|
case "treejson":
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:17
|
|
|
|
streammetricsFindResponseTreeJSON(qw422016, paths, delimiter, addWildcards)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:18
|
|
|
|
default:
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:19
|
|
|
|
logger.Panicf("BUG: unexpected format=%q", format)
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:20
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:21
|
|
|
|
if jsonp != "" {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:21
|
|
|
|
qw422016.N().S(`)`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:21
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
func WriteMetricsFindResponse(qq422016 qtio422016.Writer, paths []string, delimiter, format string, addWildcards bool, jsonp string) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
StreamMetricsFindResponse(qw422016, paths, delimiter, format, addWildcards, jsonp)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
qt422016.ReleaseWriter(qw422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
func MetricsFindResponse(paths []string, delimiter, format string, addWildcards bool, jsonp string) string {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
WriteMetricsFindResponse(qb422016, paths, delimiter, format, addWildcards, jsonp)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
qs422016 := string(qb422016.B)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
return qs422016
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:22
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:24
|
|
|
|
func streammetricsFindResponseCompleter(qw422016 *qt422016.Writer, paths []string, delimiter string, addWildcards bool) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:24
|
|
|
|
qw422016.N().S(`{"metrics":[`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:27
|
|
|
|
for i, path := range paths {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:27
|
|
|
|
qw422016.N().S(`{"path":`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:29
|
|
|
|
qw422016.N().Q(path)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:29
|
|
|
|
qw422016.N().S(`,"name":`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:30
|
|
|
|
streammetricPathName(qw422016, path, delimiter)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:30
|
|
|
|
qw422016.N().S(`,"is_leaf":`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
if strings.HasSuffix(path, delimiter) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
qw422016.N().S(`0`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
} else {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
qw422016.N().S(`1`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:31
|
|
|
|
qw422016.N().S(`}`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:33
|
|
|
|
if i+1 < len(paths) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:33
|
|
|
|
qw422016.N().S(`,`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:33
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:34
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:35
|
|
|
|
if addWildcards && len(paths) > 1 {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:35
|
|
|
|
qw422016.N().S(`,{"name": "*"}`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:39
|
|
|
|
}
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:39
|
|
|
|
qw422016.N().S(`]}`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
func writemetricsFindResponseCompleter(qq422016 qtio422016.Writer, paths []string, delimiter string, addWildcards bool) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
streammetricsFindResponseCompleter(qw422016, paths, delimiter, addWildcards)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
qt422016.ReleaseWriter(qw422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
func metricsFindResponseCompleter(paths []string, delimiter string, addWildcards bool) string {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
writemetricsFindResponseCompleter(qb422016, paths, delimiter, addWildcards)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
qs422016 := string(qb422016.B)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
return qs422016
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:42
|
|
|
|
}
|
|
|
|
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:44
|
|
|
|
func streammetricsFindResponseTreeJSON(qw422016 *qt422016.Writer, paths []string, delimiter string, addWildcards bool) {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:44
|
|
|
|
qw422016.N().S(`[`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:46
|
|
|
|
for i, path := range paths {
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:46
|
|
|
|
qw422016.N().S(`{`)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:49
|
2020-09-29 08:00:41 +00:00
|
|
|
id := path
|
2020-09-10 21:28:19 +00:00
|
|
|
allowChildren := "0"
|
|
|
|
isLeaf := "1"
|
2020-09-29 08:00:41 +00:00
|
|
|
if strings.HasSuffix(id, delimiter) {
|
|
|
|
if strings.HasSuffix(id[:len(id)-1], delimiter) {
|
|
|
|
// Special case when id ends with double delimiter.
|
|
|
|
// See deduplicatePaths() code for details.
|
|
|
|
id = id[:len(id)-2]
|
|
|
|
}
|
2020-09-10 21:28:19 +00:00
|
|
|
allowChildren = "1"
|
|
|
|
isLeaf = "0"
|
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:61
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`"id":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:62
|
|
|
|
qw422016.N().Q(id)
|
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:62
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"text":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:63
|
2020-09-10 21:28:19 +00:00
|
|
|
streammetricPathName(qw422016, path, delimiter)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:63
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"allowChildren":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:64
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(allowChildren)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:64
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"expandable":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:65
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(allowChildren)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:65
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"leaf":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:66
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(isLeaf)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:66
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`}`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:68
|
2020-09-10 21:28:19 +00:00
|
|
|
if i+1 < len(paths) {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:68
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:68
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:69
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:70
|
2020-09-10 21:28:19 +00:00
|
|
|
if addWildcards && len(paths) > 1 {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:70
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,{`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:73
|
2020-09-10 21:28:19 +00:00
|
|
|
path := paths[0]
|
|
|
|
for strings.HasSuffix(path, delimiter) {
|
|
|
|
path = path[:len(path)-1]
|
|
|
|
}
|
|
|
|
id := ""
|
|
|
|
if n := strings.LastIndexByte(path, delimiter[0]); n >= 0 {
|
|
|
|
id = path[:n+1]
|
|
|
|
}
|
|
|
|
id += "*"
|
|
|
|
|
|
|
|
allowChildren := "0"
|
|
|
|
isLeaf := "1"
|
|
|
|
for _, path := range paths {
|
|
|
|
if strings.HasSuffix(path, delimiter) {
|
|
|
|
allowChildren = "1"
|
|
|
|
isLeaf = "0"
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:92
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`"id":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:93
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().Q(id)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:93
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"text": "*","allowChildren":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:95
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(allowChildren)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:95
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"expandable":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:96
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(allowChildren)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:96
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`,"leaf":`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:97
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(isLeaf)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:97
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`}`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:99
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:99
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().S(`]`)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
func writemetricsFindResponseTreeJSON(qq422016 qtio422016.Writer, paths []string, delimiter string, addWildcards bool) {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
streammetricsFindResponseTreeJSON(qw422016, paths, delimiter, addWildcards)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
func metricsFindResponseTreeJSON(paths []string, delimiter string, addWildcards bool) string {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
writemetricsFindResponseTreeJSON(qb422016, paths, delimiter, addWildcards)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
return qs422016
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:101
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:103
|
2020-09-10 21:28:19 +00:00
|
|
|
func streammetricPathName(qw422016 *qt422016.Writer, path, delimiter string) {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:105
|
2020-09-10 21:28:19 +00:00
|
|
|
name := path
|
|
|
|
for strings.HasSuffix(name, delimiter) {
|
|
|
|
name = name[:len(name)-1]
|
|
|
|
}
|
|
|
|
if n := strings.LastIndexByte(name, delimiter[0]); n >= 0 {
|
|
|
|
name = name[n+1:]
|
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:113
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016.N().Q(name)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
func writemetricPathName(qq422016 qtio422016.Writer, path, delimiter string) {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
streammetricPathName(qw422016, path, delimiter)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
func metricPathName(path, delimiter string) string {
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
writemetricPathName(qb422016, path, delimiter)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
return qs422016
|
2020-09-29 08:00:41 +00:00
|
|
|
//line app/vmselect/graphite/metrics_find_response.qtpl:114
|
2020-09-10 21:28:19 +00:00
|
|
|
}
|