package com.cameleer.server.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.util.List;

@Schema(description = "Aggregated route performance metrics")
public record RouteMetrics(
        @NotNull String routeId,
        @NotNull String appId,
        @NotNull long exchangeCount,
        @NotNull double successRate,
        @NotNull double avgDurationMs,
        @NotNull double p99DurationMs,
        @NotNull double errorRate,
        @NotNull double throughputPerSec,
        @NotNull List<Double> sparkline,
        double slaCompliance
) {}
