MetricThresholdFilter
less than a minute
class MetricThresholdFilter
Defines a filter that compares a run metric against a user-defined threshold value.
method MetricThresholdFilter.__init__
__init__(
name: 'str',
agg: 'Agg | None' = None,
window: 'int' = 1,
cmp: 'Literal['$gte', '$gt', '$lt', '$lte']',
threshold: 'Annotated | Annotated'
) → None
Args:
name
(str):agg
(Optional[Agg]):window
(int):cmp
(Literal[’$gte’, ‘$gt’, ‘$lt’, ‘$lte’]): Comparison operator used to compare the metric value (left) vs. the threshold value (right).threshold
(Union[Annotated, Annotated]):
Returns:
An MetricThresholdFilter
object.
Feedback
Was this page helpful?
Glad to hear it! If you have more to say, please let us know.
Sorry to hear that. Please tell us how we can improve.