Class MetricAvailability
- java.lang.Object
-
- com.microsoft.azure.management.monitor.MetricAvailability
-
public class MetricAvailability extends Object
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.
-
-
Constructor Summary
Constructors Constructor Description MetricAvailability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.Periodretention()Get the retention period for the metric at the specified timegrain.org.joda.time.PeriodtimeGrain()Get the time grain specifies the aggregation interval for the metric.MetricAvailabilitywithRetention(org.joda.time.Period retention)Set the retention period for the metric at the specified timegrain.MetricAvailabilitywithTimeGrain(org.joda.time.Period timeGrain)Set the time grain specifies the aggregation interval for the metric.
-
-
-
Method Detail
-
timeGrain
public org.joda.time.Period timeGrain()
Get the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.- Returns:
- the timeGrain value
-
withTimeGrain
public MetricAvailability withTimeGrain(org.joda.time.Period timeGrain)
Set the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.- Parameters:
timeGrain- the timeGrain value to set- Returns:
- the MetricAvailability object itself.
-
retention
public org.joda.time.Period retention()
Get the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.- Returns:
- the retention value
-
withRetention
public MetricAvailability withRetention(org.joda.time.Period retention)
Set the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.- Parameters:
retention- the retention value to set- Returns:
- the MetricAvailability object itself.
-
-