Skip to main content

class MetricThresholdFilter

Filter that compares a metric value against a user-defined threshold.

method MetricThresholdFilter.__init__

Args:
  • name (str):
  • agg (Optional[Agg]):
  • window (int):
  • cmp (Literal[‘gte,gte', 'gt’, ‘lt,lt', 'lte’]): Comparison operator between the metric value (left) vs. the threshold (right).
  • threshold (Union[Annotated, Annotated]):
Returns: An MetricThresholdFilter object.