你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmSqlModelFactory.SqlMetricDefinition Method

Definition

Overloads

SqlMetricDefinition(SqlMetricName, Nullable<SqlMetricPrimaryAggregationType>, String, Nullable<SqlMetricDefinitionUnitType>, IEnumerable<SqlMetricAvailability>)

Initializes a new instance of SqlMetricDefinition.

SqlMetricDefinition(SqlMetricName, Nullable<SqlMetricPrimaryAggregationType>, Uri, Nullable<SqlMetricDefinitionUnitType>, IEnumerable<SqlMetricAvailability>)

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.

unit
Nullable<SqlMetricDefinitionUnitType>

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

primaryAggregationType
Nullable<SqlMetricPrimaryAggregationType>
resourceUri
Uri
metricAvailabilities
IEnumerable<SqlMetricAvailability>

Returns

Applies to