using ZB.MOM.WW.MxGateway.Contracts.Proto;
using ZB.MOM.WW.MxGateway.Server.Workers;

namespace ZB.MOM.WW.MxGateway.Server.Dashboard;

public sealed record DashboardSessionSummary(
    string SessionId,
    string BackendName,
    SessionState State,
    string? ClientIdentity,
    string? ClientSessionName,
    string? ClientCorrelationId,
    DateTimeOffset OpenedAt,
    DateTimeOffset LastClientActivityAt,
    DateTimeOffset? LeaseExpiresAt,
    int? WorkerProcessId,
    WorkerClientState? WorkerState,
    DateTimeOffset? LastWorkerHeartbeatAt,
    long EventsReceived,
    string? LastFault);
