Share via


MetricAvailability Class

  • java.lang.Object
    • com.azure.monitor.query.models.MetricAvailability

public final class MetricAvailability

Metric availability specifies the granularity and the retention period for that granularity.

Constructor Summary

Constructor Description
MetricAvailability()

Creates an instance of MetricAvailability.

Method Summary

Modifier and Type Method and Description
Duration getGranularity()

Returns the granularity specifies the aggregation interval for the metric.

Duration getRetention()

Returns the retention period for the metric at the specified granularity.

Methods inherited from java.lang.Object

Constructor Details

MetricAvailability

public MetricAvailability()

Creates an instance of MetricAvailability.

Method Details

getGranularity

public Duration getGranularity()

Returns the granularity specifies the aggregation interval for the metric.

Returns:

the granularity specifies the aggregation interval for the metric.

getRetention

public Duration getRetention()

Returns the retention period for the metric at the specified granularity.

Returns:

the retention period for the metric at the specified granularity.

Applies to