语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

OperationMetricsOptions.CustomDimensions Property

Definition

Gets or sets a collection of custom dimensions to include in the operation metrics. Each dimension is defined as a key-value pair.

public System.Collections.Generic.IDictionary<string,string> CustomDimensions { get; set; }
member this.CustomDimensions : System.Collections.Generic.IDictionary<string, string> with get, set
Public Property CustomDimensions As IDictionary(Of String, String)

Property Value

Examples

var telemetryOptions = new OperationMetricsOptions
{
    CustomDimensions = new Dictionary<string, string>
    {
        { "Region", "EastUS" }
    }
};

Applies to