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

Exibir arquivo Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
LoadTelemetryClientContext void
LogExceptionEvent void
LogUsageEvent void
PopulatePropertiesFromQos void

Public Methods

Method 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

Method 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 method

Add a telemetry client.
public AddTelemetryClient ( Microsoft.ApplicationInsights.TelemetryClient client ) : void
client Microsoft.ApplicationInsights.TelemetryClient The telemetry client.
return void

FlushMetric() public method

public FlushMetric ( ) : void
return void

GenerateSha256HashString() public static method

Generate a SHA256 Hash string from the originInput.
public static GenerateSha256HashString ( string originInput ) : string
originInput string
return string

IsMetricTermAccepted() public method

public IsMetricTermAccepted ( ) : bool
return bool

LogQoSEvent() public method

public LogQoSEvent ( AzurePSQoSEvent qos, bool isUsageMetricEnabled, bool isErrorMetricEnabled ) : void
qos AzurePSQoSEvent
isUsageMetricEnabled bool
isErrorMetricEnabled bool
return void

MetricHelper() public method

public MetricHelper ( ) : Microsoft.ApplicationInsights
return Microsoft.ApplicationInsights