Skip to main content
GitHub source

class MetricZScoreFilter

Filter that compares a metric’s z-score against a user-defined threshold.

method MetricZScoreFilter.__init__

__init__(
    name: 'str',
    window: 'int' = 30,
    threshold: 'Annotated | Annotated' = 3.0,
    change_dir: 'ChangeDir' = ANY
) → None
Args:
  • name (str): Name of the observed metric.
  • window (int): Size of the window to calculate the metric mean and standard deviation over.
  • threshold (Union[Annotated, Annotated]): Threshold for the z-score.
  • change_dir (ChangeDir): Direction of the z-score change to watch for.
Returns: An MetricZScoreFilter object.