메인 콘텐츠로 건너뛰기

class MetricThresholdFilter

사용자가 정의한 임계값과 절대값 기준 metric 값을 비교하는 필터입니다. 이 값은 단일 값일 수도 있고, 여러 값에 대한 윈도우 구간에서 집계된 결과일 수도 있습니다.

메서드 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 객체를 반환합니다.