package com.cameleer.server.app.dto;

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

import java.time.Instant;

@Schema(description = "Summary of a route within an application")
public record RouteSummary(
        @NotNull String routeId,
        @NotNull long exchangeCount,
        Instant lastSeen,
        @Schema(description = "The from() endpoint URI, e.g. 'direct:processOrder'")
        String fromEndpointUri,
        @Schema(description = "Operational state of the route: stopped, suspended, or null (started/default)")
        String routeState
) {}

