Share via


ArmCognitiveServicesModelFactory.ServiceAccountUsage Method

Definition

Initializes a new instance of ServiceAccountUsage.

public static Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsage ServiceAccountUsage (Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsageUnitType? unit = default, Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsageMetricName name = default, string quotaPeriod = default, double? limit = default, double? currentValue = default, string nextResetTime = default, Azure.ResourceManager.CognitiveServices.Models.ServiceAccountQuotaUsageStatus? status = default);
static member ServiceAccountUsage : Nullable<Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsageUnitType> * Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsageMetricName * string * Nullable<double> * Nullable<double> * string * Nullable<Azure.ResourceManager.CognitiveServices.Models.ServiceAccountQuotaUsageStatus> -> Azure.ResourceManager.CognitiveServices.Models.ServiceAccountUsage
Public Shared Function ServiceAccountUsage (Optional unit As Nullable(Of ServiceAccountUsageUnitType) = Nothing, Optional name As ServiceAccountUsageMetricName = Nothing, Optional quotaPeriod As String = Nothing, Optional limit As Nullable(Of Double) = Nothing, Optional currentValue As Nullable(Of Double) = Nothing, Optional nextResetTime As String = Nothing, Optional status As Nullable(Of ServiceAccountQuotaUsageStatus) = Nothing) As ServiceAccountUsage

Parameters

unit
Nullable<ServiceAccountUsageUnitType>

The unit of the metric.

name
ServiceAccountUsageMetricName

The name information for the metric.

quotaPeriod
String

The quota period used to summarize the usage values.

limit
Nullable<Double>

Maximum value for this metric.

currentValue
Nullable<Double>

Current value for this metric.

nextResetTime
String

Next reset time for current quota.

status
Nullable<ServiceAccountQuotaUsageStatus>

Cognitive Services account quota usage status.

Returns

A new ServiceAccountUsage instance for mocking.

Applies to