package com.cameleer.server.core.alerting;

import com.fasterxml.jackson.annotation.JsonProperty;

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