Table of Contents

Class Usage

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.Models
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 UnitType

The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'

name MetricName

The name information for the metric.

quotaPeriod string

The 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

MetricName

QuotaPeriod

Gets the quota period used to summarize the usage values.

public string QuotaPeriod { get; }

Property Value

string

Unit

Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'

public UnitType Unit { get; set; }

Property Value

UnitType