VictoriaMetrics/app/vlinsert/elasticsearch/bulk_response.qtpl

21 lines
278 B
Plaintext
Raw Normal View History

{% stripspace %}
{% func BulkResponse(n int, tookMs int64) %}
{
"took":{%dl tookMs %},
"errors":false,
"items":[
{% for i := 0; i < n; i++ %}
{
"create":{
"status":201
}
}
{% if i+1 < n %},{% endif %}
{% endfor %}
]
}
{% endfunc %}
{% endstripspace %}