@squidcloud/client
    Preparing search index...

    Interface Metric<MetricNameType>

    A single metric event.

    interface Metric<MetricNameType = string> {
        name: MetricNameType;
        tags: Record<string, string>;
        timestamp: number;
        value: number;
    }

    Type Parameters

    • MetricNameType = string
    Index

    Properties

    Name of the metric.

    tags: Record<string, string>

    Set of tags for the metric.

    timestamp: number

    Time associated with the metric. Milliseconds since UNIX epoch.

    value: number

    Value of the metric.