Skip to main content

class MetricThresholdFilter

Defines a filter that compares a run metric against a user-defined threshold value.

method MetricThresholdFilter.__init__

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