package com.cameleer.server.core.alerting;

import java.util.Map;
import java.util.UUID;

public record WebhookBinding(
        UUID id,
        UUID outboundConnectionId,
        String bodyOverride,
        Map<String, String> headerOverrides) {

    public WebhookBinding {
        headerOverrides = headerOverrides == null ? Map.of() : Map.copyOf(headerOverrides);
    }
}
