MonitorQueryModelFactory.MetricAvailability Method

Definition

Initializes a new instance of MetricAvailability.

public static Azure.Monitor.Query.Models.MetricAvailability MetricAvailability (TimeSpan? granularity = default, TimeSpan? retention = default);
static member MetricAvailability : Nullable<TimeSpan> * Nullable<TimeSpan> -> Azure.Monitor.Query.Models.MetricAvailability
Public Shared Function MetricAvailability (Optional granularity As Nullable(Of TimeSpan) = Nothing, Optional retention As Nullable(Of TimeSpan) = Nothing) As MetricAvailability

Parameters

granularity
Nullable<TimeSpan>

The time grain specifies a supported aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.

retention
Nullable<TimeSpan>

The retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.

Returns

A new MetricAvailability instance for mocking.

Applies to