package cz.senslog.analytics.domain;

import java.time.OffsetDateTime;

public record ThresholdViolationAlert(String moduleName, long analyticGroupId, String sourceName, String message, OffsetDateTime timestamp) {

    public static ThresholdViolationAlert of(String moduleName, long analyticGroupId, String sourceName, String alertMessage, OffsetDateTime timestamp) {
        return new ThresholdViolationAlert(moduleName, analyticGroupId, sourceName, alertMessage, timestamp);
    }
}
