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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET