Class Usage
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The usage data for a usage request.
public class Usage
- Inheritance
-
Usage
- Derived
- Inherited Members
Constructors
Usage()
Initializes a new instance of the Usage class.
public Usage()
Usage(UnitType, MetricName, string, long?, long?)
Initializes a new instance of the Usage class.
public Usage(UnitType unit = null, MetricName name = null, string quotaPeriod = null, long? limit = null, long? currentValue = null)
Parameters
unit
UnitTypeThe unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
name
MetricNameThe name information for the metric.
quotaPeriod
stringThe quota period used to summarize the usage values.
limit
long?Maximum value for this metric
currentValue
long?Current value for this metric
Properties
CurrentValue
Gets current value for this metric
public long? CurrentValue { get; }
Property Value
- long?
Limit
Gets maximum value for this metric
public long? Limit { get; }
Property Value
- long?
Name
Gets the name information for the metric.
public MetricName Name { get; }
Property Value
QuotaPeriod
Gets the quota period used to summarize the usage values.
public string QuotaPeriod { get; }
Property Value
Unit
Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
public UnitType Unit { get; set; }