ArmCognitiveServicesModelFactory.ServiceAccountUsage Method

Definition

The usage data for a usage request.

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, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesQuotaScopeType? scopeType = default, string scopeId = 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> * Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesQuotaScopeType> * string -> 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, Optional scopeType As Nullable(Of CognitiveServicesQuotaScopeType) = Nothing, Optional scopeId As String = 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.

scopeType
Nullable<CognitiveServicesQuotaScopeType>

The scope type of the quota usage.

scopeId
String

The scope identifier of the quota usage.

Returns

A new ServiceAccountUsage instance for mocking.

Applies to