Freigeben über


ArmSqlModelFactory.SqlServerUsage Method

Definition

Initializes a new instance of SqlServerUsage.

public static Azure.ResourceManager.Sql.Models.SqlServerUsage SqlServerUsage(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string displayName = default, double? currentValue = default, double? limit = default, string unit = default, string resourceName = default, DateTimeOffset? nextResetOn = default);
static member SqlServerUsage : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<double> * Nullable<double> * string * string * Nullable<DateTimeOffset> -> Azure.ResourceManager.Sql.Models.SqlServerUsage
Public Shared Function SqlServerUsage (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = 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 resourceName As String = Nothing, Optional nextResetOn As Nullable(Of DateTimeOffset) = Nothing) As SqlServerUsage

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

displayName
String

User-readable name of the metric.

currentValue
Nullable<Double>

Current value of the metric.

limit
Nullable<Double>

Boundary value of the metric.

unit
String

Unit of the metric.

resourceName
String

The name of the resource.

nextResetOn
Nullable<DateTimeOffset>

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

Returns

A new SqlServerUsage instance for mocking.

Applies to