ArmSqlModelFactory.SqlMetric 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.
Initializes a new instance of SqlMetric.
public static Azure.ResourceManager.Sql.Models.SqlMetric SqlMetric(DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, string timeGrain = default, Azure.ResourceManager.Sql.Models.SqlMetricUnitType? unit = default, Azure.ResourceManager.Sql.Models.SqlMetricName name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.SqlMetricValue> metricValues = default);
static member SqlMetric : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.Sql.Models.SqlMetricUnitType> * Azure.ResourceManager.Sql.Models.SqlMetricName * seq<Azure.ResourceManager.Sql.Models.SqlMetricValue> -> Azure.ResourceManager.Sql.Models.SqlMetric
Public Shared Function SqlMetric (Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional timeGrain As String = Nothing, Optional unit As Nullable(Of SqlMetricUnitType) = Nothing, Optional name As SqlMetricName = Nothing, Optional metricValues As IEnumerable(Of SqlMetricValue) = Nothing) As SqlMetric
Parameters
- startOn
- Nullable<DateTimeOffset>
The start time for the metric (ISO-8601 format).
- endOn
- Nullable<DateTimeOffset>
The end time for the metric (ISO-8601 format).
- timeGrain
- String
The time step to be used to summarize the metric values.
- unit
- Nullable<SqlMetricUnitType>
The unit of the metric.
- name
- SqlMetricName
The name information for the metric.
- metricValues
- IEnumerable<SqlMetricValue>
The metric values for the specified time window and timestep.
Returns
A new SqlMetric instance for mocking.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET