메인 콘텐츠로 건너뛰기
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 객체를 반환합니다.