Share via


MetricSeries Class

Definition

Represents a data time series of metric values. One or more MetricSeries are grouped into a single Metric. Use MetricSeries to track, aggregate and send values without the overhead of looking them up from the corresponding Metric object. Each Metric object contains a special zero-dimension series, plus, for multi-dimensional metrics, one series per unique dimension-values combination.

public sealed class MetricSeries
type MetricSeries = class
Public NotInheritable Class MetricSeries
Inheritance
MetricSeries

Properties

DimensionNamesAndValues

Gets a table that describes the names and values of the dimensions that describe this metric time series.

MetricIdentifier

Gets the identifier of the metric that contains this metric time series.

Methods

TrackValue(Double)

Includes the specified value into the current aggregate of this metric time series.
An aggregate representing tracked values will be automatically sent to the cloud ingestion endpoint at the end of each aggregation period.

(Advanced note: When non-default aggregation cycles are active, additional aggregates may be obtained by cycling respective aggregators.)

TrackValue(Object)

Includes the specified value into the current aggregate of this metric time series.
An aggregate representing tracked values will be automatically sent to the cloud ingestion endpoint at the end of each aggregation period.
This overload allows creating aggregators that can aggregate non-numeric values (e.g. a distinct count of strings aggregator).

(Advanced note: When non-default aggregation cycles are active, additional aggregates may be obtained by cycling respective aggregators.)

Extension Methods

GetConfiguration(MetricSeries)

Exposes the Configuration property for users who imported the Microsoft.ApplicationInsights.Metrics.Extensibility namespace.

Applies to