Microsoft.ApplicationInsights Namespace

Classes

Metric

Represents a zero- or multi-dimensional metric.
Contains convenience methods to track, aggregate and send values.
A Metric instance groups one or more MetricSeries that actually track and aggregate values along with naming and configuration attributes that identify the metric and define how it will be aggregated.

MetricConfigurations

Static container for the most commonly used metric configurations.

MetricDimensionNames

Contains constants used to refer to metric dimensions with special significance.

MetricDimensionNames.TelemetryContext

Contains constants used to refer to metric dimensions that will be mapped to fields within the TelemetryContext attached to Application Insights metric telemetry item that represents MetricAggregate objects sent to the Application Insights cloud ingestion endpoint.

When a metric has a dimension with this a name that equals to one of the constants defined here, the value of that dimension will not be sent as a regular dimension-value, but as the value of the corresponding field within the telemetry item's TelemetryContext. Note that this applies only to metrics that belong to Application Insights components and that are sent via the Application Insights ingestion endpoint. Metrics sent via other channels are not subject to this transformation.

MetricDimensionNames.TelemetryContext.Cloud

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.Component

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.Device

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.Location

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.Operation

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.Session

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

MetricDimensionNames.TelemetryContext.User

Provides structure for constants defined in MetricDimensionNames.TelemetryContext. See there for more info.

TelemetryClient

Send events, metrics and other telemetry to the Application Insights service. Learn more

Enums

MetricAggregationScope

Used when getting or creating a Metric to optionally specify the scope across which the values for the metric are to be aggregated in memory.
Intended for advanced scenarios. The default "TelemetryConfiguration" is used whenever MetricAggregationScope is not specified explicitly.