# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class MetricAvailability(Model):
"""A metric availability value.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar retention: The length of retention for the database metric.
:vartype retention: str
:ivar time_grain: The granularity of the database metric.
:vartype time_grain: str
"""
_validation = {
'retention': {'readonly': True},
'time_grain': {'readonly': True},
}
_attribute_map = {
'retention': {'key': 'retention', 'type': 'str'},
'time_grain': {'key': 'timeGrain', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(MetricAvailability, self).__init__(**kwargs)
self.retention = None
self.time_grain = None