ArmOperationalInsightsModelFactory.OperationalInsightsUsageMetric Method

Definition

Initializes a new instance of OperationalInsightsUsageMetric.

public static Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric OperationalInsightsUsageMetric (Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsMetricName name = default, string unit = default, double? currentValue = default, double? limit = default, DateTimeOffset? nextResetOn = default, string quotaPeriod = default);
static member OperationalInsightsUsageMetric : Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsMetricName * string * Nullable<double> * Nullable<double> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric
Public Shared Function OperationalInsightsUsageMetric (Optional name As OperationalInsightsMetricName = Nothing, Optional unit As String = Nothing, Optional currentValue As Nullable(Of Double) = Nothing, Optional limit As Nullable(Of Double) = Nothing, Optional nextResetOn As Nullable(Of DateTimeOffset) = Nothing, Optional quotaPeriod As String = Nothing) As OperationalInsightsUsageMetric

Parameters

name
OperationalInsightsMetricName

The name of the metric.

unit
String

The units used for the metric.

currentValue
Nullable<Double>

The current value of the metric.

limit
Nullable<Double>

The quota limit for the metric.

nextResetOn
Nullable<DateTimeOffset>

The time that the metric's value will reset.

quotaPeriod
String

The quota period that determines the length of time between value resets.

Returns

A new OperationalInsightsUsageMetric instance for mocking.

Applies to