Share via


MetricIdentifier Class

Definition

A metric identifier encapsulates all information required to uniquely identify a metric. A metric is identified by its name/id, its namespace and the names of its dimensions.

public sealed class MetricIdentifier : IEquatable<Microsoft.ApplicationInsights.Metrics.MetricIdentifier>
type MetricIdentifier = class
    interface IEquatable<MetricIdentifier>
Public NotInheritable Class MetricIdentifier
Implements IEquatable(Of MetricIdentifier)
Inheritance
MetricIdentifier
Implements

Constructors

MetricIdentifier(String, String, IList<String>)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String, String)

Initializes a new metric identifier.

MetricIdentifier(String, String)

Initializes a new metric identifier.

MetricIdentifier(String)

Initializes a new metric identifier.

Fields

MaxDimensionsCount

@Max number of dimensions supported.

Properties

DefaultMetricNamespace

Gets or sets the namespace used for metrics of no namespace was explicitly speified.

DimensionsCount

Gets the dimensionality of this metric.

MetricId

Gets the ID (name) of this metric.

MetricNamespace

Gets the namespace of this metric.

Methods

Equals(MetricIdentifier)

Determines whether the specified object is a MetricIdentifier that is equal to this MetricIdentifier based on the respective metric namespaces, metric IDs and the number and the names of dimensions.

Equals(Object)

Determines whether the specified object is a MetricIdentifier that is equal to this MetricIdentifier based on the respective metric namespaces, metric IDs and the number and the names of dimensions.

GetDimensionName(Int32)

Gets the name of a dimension identified by the specified 1-based dimension index. For zero-dimensional metrics, this method will always fail.

GetDimensionNames()

Get an enumeration of the dimension names contained in this identity. The enumeration will have DimensionsCount elements.

GetHashCode()

Gets the hash code for this MetricIdentifier instance.

ToString()

Gets a string version of this identifier.

Applies to