public final class MetricAvailability extends Object
| Constructor and Description |
|---|
MetricAvailability() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
retention()
Get the retention property: the retention period for the metric at the specified timegrain.
|
Duration |
timeGrain()
Get the timeGrain property: the time grain specifies the aggregation interval for the metric.
|
void |
validate()
Validates the instance.
|
MetricAvailability |
withRetention(Duration retention)
Set the retention property: the retention period for the metric at the specified timegrain.
|
MetricAvailability |
withTimeGrain(Duration timeGrain)
Set the timeGrain property: the time grain specifies the aggregation interval for the metric.
|
public Duration timeGrain()
public MetricAvailability withTimeGrain(Duration timeGrain)
timeGrain - the timeGrain value to set.public Duration retention()
public MetricAvailability withRetention(Duration retention)
retention - the retention value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.