ArmSqlModelFactory.RecommendedActionMetricInfo Method

Definition

Initializes a new instance of RecommendedActionMetricInfo.

public static Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo RecommendedActionMetricInfo (string metricName = default, string unit = default, string timeGrain = default, DateTimeOffset? startOn = default, double? value = default);
static member RecommendedActionMetricInfo : string * string * string * Nullable<DateTimeOffset> * Nullable<double> -> Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo
Public Shared Function RecommendedActionMetricInfo (Optional metricName As String = Nothing, Optional unit As String = Nothing, Optional timeGrain As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional value As Nullable(Of Double) = Nothing) As RecommendedActionMetricInfo

Parameters

metricName
String

Gets the name of the metric. e.g., CPU, Number of Queries.

unit
String

Gets the unit in which metric is measured. e.g., DTU, Frequency.

timeGrain
String

Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour).

startOn
Nullable<DateTimeOffset>

Gets the start time of time interval given by this MetricInfo.

value
Nullable<Double>

Gets the value of the metric in the time interval given by this MetricInfo.

Returns

A new RecommendedActionMetricInfo instance for mocking.

Applies to