package com.cameleer.server.core.alerting;

import com.fasterxml.jackson.annotation.JsonProperty;

public record RouteMetricCondition(
        AlertScope scope,
        RouteMetric metric,
        Comparator comparator,
        double threshold,
        int windowSeconds) implements AlertCondition {
    @Override
    @JsonProperty(value = "kind", access = JsonProperty.Access.READ_ONLY)
    public ConditionKind kind() { return ConditionKind.ROUTE_METRIC; }
}
