MetricDefinition Constructors
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.
Overloads
MetricDefinition() |
Initializes a new instance of the MetricDefinition class. |
MetricDefinition(IList<MetricAvailability>, PrimaryAggregationType, UnitType, String, MetricName) |
Initializes a new instance of the MetricDefinition class. |
MetricDefinition()
Initializes a new instance of the MetricDefinition class.
public MetricDefinition ();
Public Sub New ()
Applies to
MetricDefinition(IList<MetricAvailability>, PrimaryAggregationType, UnitType, String, MetricName)
Initializes a new instance of the MetricDefinition class.
public MetricDefinition (System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricAvailability> metricAvailabilities = default, Microsoft.Azure.Management.CosmosDB.Fluent.Models.PrimaryAggregationType primaryAggregationType = default, Microsoft.Azure.Management.CosmosDB.Fluent.Models.UnitType unit = default, string resourceUri = default, Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricName name = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricDefinition : System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricAvailability> * Microsoft.Azure.Management.CosmosDB.Fluent.Models.PrimaryAggregationType * Microsoft.Azure.Management.CosmosDB.Fluent.Models.UnitType * string * Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricName -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.MetricDefinition
Public Sub New (Optional metricAvailabilities As IList(Of MetricAvailability) = Nothing, Optional primaryAggregationType As PrimaryAggregationType = Nothing, Optional unit As UnitType = Nothing, Optional resourceUri As String = Nothing, Optional name As MetricName = Nothing)
Parameters
- metricAvailabilities
- IList<MetricAvailability>
The list of metric availabilities for the account.
- primaryAggregationType
- PrimaryAggregationType
The primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last'
- unit
- UnitType
The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
- resourceUri
- String
The resource uri of the database.
- name
- MetricName
The name information for the metric.
Applies to
Azure SDK for .NET