ArmCognitiveServicesModelFactory.ServiceAccountUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The unit of the metric.
The name information for the metric.
- quotaPeriod
- String
The quota period used to summarize the usage values.
- nextResetTime
- String
Next reset time for current quota.
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.