mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-24 19:30:06 +01:00
18 lines
338 B
Plaintext
18 lines
338 B
Plaintext
|
{% stripspace %}
|
||
|
|
||
|
// StreamLabelValuesResponse formats /select/logsql/stream_label_values response
|
||
|
{% func StreamLabelValuesResponse(values []string) %}
|
||
|
{
|
||
|
"values":[
|
||
|
{% if len(values) > 0 %}
|
||
|
{%q= values[0] %}
|
||
|
{% for _, v := range values[1:] %}
|
||
|
,{%q= v %}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
]
|
||
|
}
|
||
|
{% endfunc %}
|
||
|
|
||
|
{% endstripspace %}
|