package com.cameleer.server.core.alerting;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.UUID;

@JsonIgnoreProperties(ignoreUnknown = true)
public record SilenceMatcher(
        UUID ruleId, String appSlug, String routeId, String agentId, AlertSeverity severity) {

    public boolean isWildcard() {
        return ruleId == null && appSlug == null && routeId == null && agentId == null && severity == null;
    }
}
