<?php

namespace App\Services\Alerts;

use Carbon\CarbonInterface;

class AlertEvaluationResult
{
    /**
     * @param array<string, mixed> $payload
     */
    public function __construct(
        public readonly bool $triggered,
        public readonly float $value,
        public readonly float $threshold,
        public readonly string $operator,
        public readonly string $metric,
        public readonly string $platform,
        public readonly CarbonInterface $periodStart,
        public readonly CarbonInterface $periodEnd,
        public readonly string $message,
        public readonly array $payload = [],
    ) {
    }
}
