Class MetricAvailability
java.lang.Object
com.microsoft.azure.management.monitor.MetricAvailability
Metric availability specifies the time grain (aggregation interval or
frequency) and the retention period for that time grain.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.Period
Get the retention period for the metric at the specified timegrain.org.joda.time.Period
Get the time grain specifies the aggregation interval for the metric.withRetention
(org.joda.time.Period retention) Set the retention period for the metric at the specified timegrain.withTimeGrain
(org.joda.time.Period timeGrain) Set the time grain specifies the aggregation interval for the metric.
-
Constructor Details
-
MetricAvailability
public MetricAvailability()
-
-
Method Details
-
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
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
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.
-