mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 07:26:20 +01:00
18 lines
311 B
Plaintext
18 lines
311 B
Plaintext
{% stripspace %}
|
|
|
|
// StreamsResponse formats /select/logsql/streams response
|
|
{% func StreamsResponse(streams []string) %}
|
|
{
|
|
"streams":[
|
|
{% if len(streams) > 0 %}
|
|
{%q= streams[0] %}
|
|
{% for _, v := range streams[1:] %}
|
|
,{%q= v %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
]
|
|
}
|
|
{% endfunc %}
|
|
|
|
{% endstripspace %}
|