C# Класс Microsoft.WindowsAzure.Commands.Common.MetricHelper

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
LoadTelemetryClientContext void
LogExceptionEvent void
LogUsageEvent void
PopulatePropertiesFromQos void

Открытые методы

Метод Описание
AddTelemetryClient ( Microsoft.ApplicationInsights.TelemetryClient client ) : void

Add a telemetry client.

FlushMetric ( ) : void
GenerateSha256HashString ( string originInput ) : string

Generate a SHA256 Hash string from the originInput.

IsMetricTermAccepted ( ) : bool
LogQoSEvent ( AzurePSQoSEvent qos, bool isUsageMetricEnabled, bool isErrorMetricEnabled ) : void
MetricHelper ( ) : Microsoft.ApplicationInsights

Приватные методы

Метод Описание
LoadTelemetryClientContext ( AzurePSQoSEvent qos, Microsoft.ApplicationInsights.DataContracts.TelemetryContext clientContext ) : void
LogExceptionEvent ( AzurePSQoSEvent qos ) : void
LogUsageEvent ( AzurePSQoSEvent qos ) : void
PopulatePropertiesFromQos ( AzurePSQoSEvent qos, string>.IDictionary eventProperties ) : void

Описание методов

AddTelemetryClient() публичный Метод

Add a telemetry client.
public AddTelemetryClient ( Microsoft.ApplicationInsights.TelemetryClient client ) : void
client Microsoft.ApplicationInsights.TelemetryClient The telemetry client.
Результат void

FlushMetric() публичный Метод

public FlushMetric ( ) : void
Результат void

GenerateSha256HashString() публичный статический Метод

Generate a SHA256 Hash string from the originInput.
public static GenerateSha256HashString ( string originInput ) : string
originInput string
Результат string

IsMetricTermAccepted() публичный Метод

public IsMetricTermAccepted ( ) : bool
Результат bool

LogQoSEvent() публичный Метод

public LogQoSEvent ( AzurePSQoSEvent qos, bool isUsageMetricEnabled, bool isErrorMetricEnabled ) : void
qos AzurePSQoSEvent
isUsageMetricEnabled bool
isErrorMetricEnabled bool
Результат void

MetricHelper() публичный Метод

public MetricHelper ( ) : Microsoft.ApplicationInsights
Результат Microsoft.ApplicationInsights