ArmSqlModelFactory.SqlMetricDefinition 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.
Overloads
SqlMetricDefinition(SqlMetricName, Nullable<SqlMetricPrimaryAggregationType>, String, Nullable<SqlMetricDefinitionUnitType>, IEnumerable<SqlMetricAvailability>)
- Source:
- ArmSqlModelFactory.cs
Initializes a new instance of SqlMetricDefinition.
public static Azure.ResourceManager.Sql.Models.SqlMetricDefinition SqlMetricDefinition (Azure.ResourceManager.Sql.Models.SqlMetricName name = default, Azure.ResourceManager.Sql.Models.SqlMetricPrimaryAggregationType? primaryAggregationType = default, string resourceUriString = default, Azure.ResourceManager.Sql.Models.SqlMetricDefinitionUnitType? unit = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.SqlMetricAvailability> metricAvailabilities = default);
static member SqlMetricDefinition : Azure.ResourceManager.Sql.Models.SqlMetricName * Nullable<Azure.ResourceManager.Sql.Models.SqlMetricPrimaryAggregationType> * string * Nullable<Azure.ResourceManager.Sql.Models.SqlMetricDefinitionUnitType> * seq<Azure.ResourceManager.Sql.Models.SqlMetricAvailability> -> Azure.ResourceManager.Sql.Models.SqlMetricDefinition
Public Shared Function SqlMetricDefinition (Optional name As SqlMetricName = Nothing, Optional primaryAggregationType As Nullable(Of SqlMetricPrimaryAggregationType) = Nothing, Optional resourceUriString As String = Nothing, Optional unit As Nullable(Of SqlMetricDefinitionUnitType) = Nothing, Optional metricAvailabilities As IEnumerable(Of SqlMetricAvailability) = Nothing) As SqlMetricDefinition
Parameters
- name
- SqlMetricName
The name information for the metric.
- primaryAggregationType
- Nullable<SqlMetricPrimaryAggregationType>
The primary aggregation type defining how metric values are displayed.
- resourceUriString
- String
The resource uri of the database.
The unit of the metric.
- metricAvailabilities
- IEnumerable<SqlMetricAvailability>
The list of database metric availabilities for the metric.
Returns
A new SqlMetricDefinition instance for mocking.
Applies to
SqlMetricDefinition(SqlMetricName, Nullable<SqlMetricPrimaryAggregationType>, Uri, Nullable<SqlMetricDefinitionUnitType>, IEnumerable<SqlMetricAvailability>)
- Source:
- ArmSqlModelFactory.cs
public static Azure.ResourceManager.Sql.Models.SqlMetricDefinition SqlMetricDefinition (Azure.ResourceManager.Sql.Models.SqlMetricName name = default, Azure.ResourceManager.Sql.Models.SqlMetricPrimaryAggregationType? primaryAggregationType = default, Uri resourceUri = default, Azure.ResourceManager.Sql.Models.SqlMetricDefinitionUnitType? unit = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.SqlMetricAvailability> metricAvailabilities = default);
static member SqlMetricDefinition : Azure.ResourceManager.Sql.Models.SqlMetricName * Nullable<Azure.ResourceManager.Sql.Models.SqlMetricPrimaryAggregationType> * Uri * Nullable<Azure.ResourceManager.Sql.Models.SqlMetricDefinitionUnitType> * seq<Azure.ResourceManager.Sql.Models.SqlMetricAvailability> -> Azure.ResourceManager.Sql.Models.SqlMetricDefinition
Public Shared Function SqlMetricDefinition (Optional name As SqlMetricName = Nothing, Optional primaryAggregationType As Nullable(Of SqlMetricPrimaryAggregationType) = Nothing, Optional resourceUri As Uri = Nothing, Optional unit As Nullable(Of SqlMetricDefinitionUnitType) = Nothing, Optional metricAvailabilities As IEnumerable(Of SqlMetricAvailability) = Nothing) As SqlMetricDefinition
Parameters
- name
- SqlMetricName
- primaryAggregationType
- Nullable<SqlMetricPrimaryAggregationType>
- resourceUri
- Uri
- metricAvailabilities
- IEnumerable<SqlMetricAvailability>