Class MetricAvailability
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.MetricAvailability
Retention policy of a resource metric.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the blobDuration property: The blobDuration property.Get the timeGrain property: The timeGrain property.void
validate()
Validates the instance.withBlobDuration
(String blobDuration) Set the blobDuration property: The blobDuration property.withTimeGrain
(String timeGrain) Set the timeGrain property: The timeGrain property.
-
Constructor Details
-
MetricAvailability
public MetricAvailability()Creates an instance of MetricAvailability class.
-
-
Method Details
-
timeGrain
Get the timeGrain property: The timeGrain property.- Returns:
- the timeGrain value.
-
withTimeGrain
Set the timeGrain property: The timeGrain property.- Parameters:
timeGrain
- the timeGrain value to set.- Returns:
- the MetricAvailability object itself.
-
blobDuration
Get the blobDuration property: The blobDuration property.- Returns:
- the blobDuration value.
-
withBlobDuration
Set the blobDuration property: The blobDuration property.- Parameters:
blobDuration
- the blobDuration value to set.- Returns:
- the MetricAvailability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-