Package version:
Optionalgranularitythe time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.
Optionalretentionthe retention period for the metric at the specified granularity. Expressed as a duration 'PT1M', 'P1D', etc.
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.