@nats-io/services
    Preparing search index...

    Type Alias NamedEndpointStats

    type NamedEndpointStats = {
        average_processing_time: Nanos;
        data?: unknown;
        last_error?: string;
        name: string;
        num_errors: number;
        num_requests: number;
        processing_time: Nanos;
        queue_group?: string;
        subject: string;
    }
    Index

    Properties

    average_processing_time: Nanos

    Average processing_time is the total processing_time divided by the num_requests in nanoseconds

    data?: unknown

    A field that can be customized with any data as returned by stats handler see ServiceConfig

    last_error?: string

    If set, the last error triggered by the endpoint

    name: string

    The name of the endpoint

    num_errors: number

    Number of errors that the endpoint has raised

    num_requests: number

    The number of requests received by the endpoint

    processing_time: Nanos

    Total processing_time for the service in nanoseconds

    queue_group?: string

    The queue group the endpoint is listening on

    subject: string

    The subject the endpoint is listening on