C# Class Microsoft.WindowsAzure.Commands.Common.MetricHelper

Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство Type Description
LoadTelemetryClientContext void
LogExceptionEvent void
LogUsageEvent void
PopulatePropertiesFromQos void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
LoadTelemetryClientContext ( AzurePSQoSEvent qos, Microsoft.ApplicationInsights.DataContracts.TelemetryContext clientContext ) : void
LogExceptionEvent ( AzurePSQoSEvent qos ) : void
LogUsageEvent ( AzurePSQoSEvent qos ) : void
PopulatePropertiesFromQos ( AzurePSQoSEvent qos, string>.IDictionary eventProperties ) : void

Method Details

AddTelemetryClient() public méthode

Add a telemetry client.
public AddTelemetryClient ( Microsoft.ApplicationInsights.TelemetryClient client ) : void
client Microsoft.ApplicationInsights.TelemetryClient The telemetry client.
Résultat void

FlushMetric() public méthode

public FlushMetric ( ) : void
Résultat void

GenerateSha256HashString() public static méthode

Generate a SHA256 Hash string from the originInput.
public static GenerateSha256HashString ( string originInput ) : string
originInput string
Résultat string

IsMetricTermAccepted() public méthode

public IsMetricTermAccepted ( ) : bool
Résultat bool

LogQoSEvent() public méthode

public LogQoSEvent ( AzurePSQoSEvent qos, bool isUsageMetricEnabled, bool isErrorMetricEnabled ) : void
qos AzurePSQoSEvent
isUsageMetricEnabled bool
isErrorMetricEnabled bool
Résultat void

MetricHelper() public méthode

public MetricHelper ( ) : Microsoft.ApplicationInsights
Résultat Microsoft.ApplicationInsights