ArmSqlModelFactory.SqlServerUsage Method

Definition

Initializes a new instance of SqlServerUsage.

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

Parameters

name
String

Name of the server usage metric.

resourceName
String

The name of the resource.

displayName
String

The metric display name.

currentValue
Nullable<Double>

The current value of the metric.

limit
Nullable<Double>

The current limit of the metric.

unit
String

The units of the metric.

nextResetOn
Nullable<DateTimeOffset>

The next reset time for the metric (ISO8601 format).

Returns

A new SqlServerUsage instance for mocking.

Applies to