Class MetricDefinition
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The definition of a metric.
public class MetricDefinition
- Inheritance
-
MetricDefinition
- Inherited Members
Constructors
MetricDefinition()
Initializes a new instance of the MetricDefinition class.
public MetricDefinition()
MetricDefinition(IList<MetricAvailability>, PrimaryAggregationType, UnitType, string, MetricName)
Initializes a new instance of the MetricDefinition class.
public MetricDefinition(IList<MetricAvailability> metricAvailabilities = null, PrimaryAggregationType primaryAggregationType = null, UnitType unit = null, string resourceUri = null, MetricName name = null)
Parameters
metricAvailabilities
IList<MetricAvailability>The list of metric availabilities for the account.
primaryAggregationType
PrimaryAggregationTypeThe primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last'
unit
UnitTypeThe unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
resourceUri
stringThe resource uri of the database.
name
MetricNameThe name information for the metric.
Properties
MetricAvailabilities
Gets the list of metric availabilities for the account.
public IList<MetricAvailability> MetricAvailabilities { get; }
Property Value
Name
Gets the name information for the metric.
public MetricName Name { get; }
Property Value
PrimaryAggregationType
Gets the primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last'
public PrimaryAggregationType PrimaryAggregationType { get; }
Property Value
ResourceUri
Gets the resource uri of the database.
public string ResourceUri { 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; }