メインコンテンツへスキップ
GitHub ソース

class MetricThresholdFilter

絶対値のメトリクスをユーザー定義のしきい値と比較するフィルターです。 値は単一の値である場合もあれば、複数の値に対するウィンドウ内で集計された結果である場合もあります。

method MetricThresholdFilter.__init__

__init__(
    name: 'str',
    agg: 'Agg | None' = None,
    window: 'int' = 1,
    cmp: 'Literal['$gte', '$gt', '$lt', '$lte']',
    threshold: 'Annotated | Annotated'
) → None
引数:
  • name (str):
  • agg (Optional[Agg]):
  • window (int):
  • cmp (Literal[‘gte', 'gt’, ‘lt', 'lte’]): メトリクス値(左辺)としきい値(右辺)を比較するための比較演算子。
  • threshold (Union[Annotated, Annotated]):
戻り値: MetricThresholdFilter オブジェクト。