ArmMonitorModelFactory.MonitorMetricAvailability 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.
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.
public static Azure.ResourceManager.Monitor.Models.MonitorMetricAvailability MonitorMetricAvailability(TimeSpan? timeGrain = default, TimeSpan? retention = default);
static member MonitorMetricAvailability : Nullable<TimeSpan> * Nullable<TimeSpan> -> Azure.ResourceManager.Monitor.Models.MonitorMetricAvailability
Public Shared Function MonitorMetricAvailability (Optional timeGrain As Nullable(Of TimeSpan) = Nothing, Optional retention As Nullable(Of TimeSpan) = Nothing) As MonitorMetricAvailability
Parameters
The time grain specifies a supported aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.
The retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.
Returns
A new MonitorMetricAvailability instance for mocking.