package com.cameleer.server.core.alerting;

import java.time.Instant;
import java.util.List;
import java.util.Optional;
import java.util.UUID;

public interface AlertSilenceRepository {
    AlertSilence save(AlertSilence silence);
    Optional<AlertSilence> findById(UUID id);
    List<AlertSilence> listActive(UUID environmentId, Instant when);
    List<AlertSilence> listByEnvironment(UUID environmentId);
    void delete(UUID id);
}
