timeSeriesInstantRateToGrid
Aggregate function that takes time series data as pairs of timestamps and values and calculates PromQL-like irate from this data on a regular time grid described by start timestamp, end timestamp and step. For each point on the grid, the samples for calculating irate are considered within the specified time window.
Parameters:
start timestamp- グリッドの開始を指定します。end timestamp- グリッドの終了を指定します。grid step- グリッドのステップを秒単位で指定します。staleness- Considered samplesの最大の「古さ」を秒単位で指定します。古さのウィンドウは左開き、右閉じの区間です。
Arguments:
timestamp- サンプルのタイムスタンプvalue-timestampに対応する時系列の値
Return value:
指定されたグリッド上のirate値をArray(Nullable(Float64))として返します。返される配列は各タイムグリッドポイントのために1つの値を含みます。特定のグリッドポイントの瞬時レート値を計算するのに十分なサンプルがウィンドウ内にない場合、その値はNULLです。
Example:
次のクエリは、グリッド[90, 105, 120, 135, 150, 165, 180, 195, 210]上でirate値を計算します:
Response:
また、等しいサイズのArrayとしてタイムスタンプと値の複数のサンプルを渡すことも可能です。同じクエリを配列引数で実行した場合:
注記
この関数は実験的です。allow_experimental_ts_to_grid_aggregate_function=trueを設定することで有効にしてください。