메인 콘텐츠로 건너뛰기
GitHub 소스

class MetricThresholdFilter

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

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