package com.cameleer.server.core.admin;

import java.time.Instant;

public record AppSettings(
        String applicationId,
        String environment,
        int slaThresholdMs,
        double healthErrorWarn,
        double healthErrorCrit,
        double healthSlaWarn,
        double healthSlaCrit,
        Instant createdAt,
        Instant updatedAt) {

    public static AppSettings defaults(String applicationId, String environment) {
        Instant now = Instant.now();
        return new AppSettings(applicationId, environment, 300, 1.0, 5.0, 99.0, 95.0, now, now);
    }
}
