Dela via


UsageMetric Constructors

Definition

Overloads

UsageMetric()

Initializes a new instance of the UsageMetric class.

UsageMetric(MetricName, String, Nullable<Double>, Nullable<Double>, Nullable<DateTime>, String)

Initializes a new instance of the UsageMetric class.

UsageMetric()

Initializes a new instance of the UsageMetric class.

public UsageMetric ();
Public Sub New ()

Applies to

UsageMetric(MetricName, String, Nullable<Double>, Nullable<Double>, Nullable<DateTime>, String)

Initializes a new instance of the UsageMetric class.

public UsageMetric (Microsoft.Azure.Management.OperationalInsights.Models.MetricName name = default, string unit = default, double? currentValue = default, double? limit = default, DateTime? nextResetTime = default, string quotaPeriod = default);
new Microsoft.Azure.Management.OperationalInsights.Models.UsageMetric : Microsoft.Azure.Management.OperationalInsights.Models.MetricName * string * Nullable<double> * Nullable<double> * Nullable<DateTime> * string -> Microsoft.Azure.Management.OperationalInsights.Models.UsageMetric
Public Sub New (Optional name As MetricName = Nothing, Optional unit As String = Nothing, Optional currentValue As Nullable(Of Double) = Nothing, Optional limit As Nullable(Of Double) = Nothing, Optional nextResetTime As Nullable(Of DateTime) = Nothing, Optional quotaPeriod As String = Nothing)

Parameters

name
MetricName

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.

nextResetTime
Nullable<DateTime>

The time that the metric's value will reset.

quotaPeriod
String

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

Applies to