package com.cameleer.server.core.alerting;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public record DeploymentStateCondition(AlertScope scope, List<String> states) implements AlertCondition {
    public DeploymentStateCondition { states = List.copyOf(states); }
    @Override
    @JsonProperty(value = "kind", access = JsonProperty.Access.READ_ONLY)
    public ConditionKind kind() { return ConditionKind.DEPLOYMENT_STATE; }
}
