mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-29 23:30:04 +01:00
18 lines
330 B
Plaintext
18 lines
330 B
Plaintext
{% stripspace %}
|
|
|
|
// StreamLabelNamesResponse formats /select/logsql/stream_label_names response
|
|
{% func StreamLabelNamesResponse(names []string) %}
|
|
{
|
|
"names":[
|
|
{% if len(names) > 0 %}
|
|
{%q= names[0] %}
|
|
{% for _, v := range names[1:] %}
|
|
,{%q= v %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
]
|
|
}
|
|
{% endfunc %}
|
|
|
|
{% endstripspace %}
|