package com.cameleer.server.core.alerting;

import com.fasterxml.jackson.annotation.JsonProperty;

public record LogPatternCondition(
        AlertScope scope,
        String level,
        String pattern,
        int threshold,
        int windowSeconds) implements AlertCondition {
    @Override
    @JsonProperty(value = "kind", access = JsonProperty.Access.READ_ONLY)
    public ConditionKind kind() { return ConditionKind.LOG_PATTERN; }
}
