docs-v2/content/flux/v0/stdlib/internal/promql/emptytable.md

1.8 KiB

title description menu weight
promql.emptyTable() function `promql.emptyTable()` returns an empty table, which is used as a helper function to implement PromQL's [`time()`](https://prometheus.io/docs/prometheus/latest/querying/functions/#time) and [`vector()`](https://prometheus.io/docs/prometheus/latest/querying/functions/#vector) functions.
flux_v0_ref
name parent identifier
promql.emptyTable internal/promql internal/promql/emptyTable
201

promql.emptyTable() returns an empty table, which is used as a helper function to implement PromQL's time() and vector() functions.

Important: The internal/promql package is not meant for external use.

Function type signature
() => stream[{_value: float, _time: time, _stop: time, _start: time}]

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}