Base implementation of the counter metric type, meant only for Glean internal use.

This class exposes Glean-internal properties and methods of the counter metric type.

Hierarchy (view full)

Constructors

Properties

category: string
disabled: boolean
dynamicLabel?: string
lifetime: Lifetime
name: string
sendInPings: string[]
type: string

Methods

  • The metric's base identifier, including the category and name, but not the label.

    Returns string

    The generated identifier. If category is empty, it's omitted. Otherwise, it's the combination of the metric's category and name.

  • The metric's unique identifier, including the category, name and label.

    Returns string

    The generated identifier. If category is empty, it's omitted. Otherwise, it's the combination of the metric's category, name and label.

  • Verify whether or not this metric instance should be recorded.

    Parameters

    • uploadEnabled: boolean

      Whether or not global upload is enabled or disabled.

    Returns boolean

    Whether or not this metric instance should be recorded.

Generated using TypeDoc