Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SessionMetricCollectorImpl

A session metric collector.

Hierarchy

Implements

Index

Constructors

constructor

  • new SessionMetricCollectorImpl(name: string, exportToPrometheus: boolean, maximumGroups: number, removeMetricsWithNoMatches: boolean, sessionFilter: string, groupByProperties: string[]): SessionMetricCollectorImpl
  • Create a new SessionMetricCollector instance

    Parameters

    • name: string

      identity

    • exportToPrometheus: boolean

      whether to expose the collector through the Prometheus gateway

    • maximumGroups: number
    • removeMetricsWithNoMatches: boolean

      whether to remove metrics when there are no longer matching sessions

    • sessionFilter: string

      identifies the target sessions

    • groupByProperties: string[]

      session property keys that define the groupBy dimensions for this collector; may be empty

    Returns SessionMetricCollectorImpl

Properties

Readonly exportToPrometheus

exportToPrometheus: boolean

Indicates whether the metric collector exports to Prometheus.

Readonly groupByProperties

groupByProperties: string[]

list of properties to group by

Readonly maximumGroups

maximumGroups: number

Limit on the number of dimensions created by the metric collector

Readonly name

name: string

the name of the metric collector

Readonly removeMetricsWithNoMatches

removeMetricsWithNoMatches: boolean

Indicates whether metrics with no matches should be removed.

Readonly sessionFilter

sessionFilter: string

the session filter

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.