Source code for azure.mgmt.web.models.metric_specification_py3

# 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 MetricSpecification(Model): """Definition of a single resource metric. :param name: :type name: str :param display_name: :type display_name: str :param display_description: :type display_description: str :param unit: :type unit: str :param aggregation_type: :type aggregation_type: str :param supports_instance_level_aggregation: :type supports_instance_level_aggregation: bool :param enable_regional_mdm_account: :type enable_regional_mdm_account: bool :param source_mdm_account: :type source_mdm_account: str :param source_mdm_namespace: :type source_mdm_namespace: str :param metric_filter_pattern: :type metric_filter_pattern: str :param fill_gap_with_zero: :type fill_gap_with_zero: bool :param is_internal: :type is_internal: bool :param dimensions: :type dimensions: list[~azure.mgmt.web.models.Dimension] :param category: :type category: str :param availabilities: :type availabilities: list[~azure.mgmt.web.models.MetricAvailability] """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'display_description': {'key': 'displayDescription', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, 'supports_instance_level_aggregation': {'key': 'supportsInstanceLevelAggregation', 'type': 'bool'}, 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'bool'}, 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, 'metric_filter_pattern': {'key': 'metricFilterPattern', 'type': 'str'}, 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, 'is_internal': {'key': 'isInternal', 'type': 'bool'}, 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, 'category': {'key': 'category', 'type': 'str'}, 'availabilities': {'key': 'availabilities', 'type': '[MetricAvailability]'}, } def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, supports_instance_level_aggregation: bool=None, enable_regional_mdm_account: bool=None, source_mdm_account: str=None, source_mdm_namespace: str=None, metric_filter_pattern: str=None, fill_gap_with_zero: bool=None, is_internal: bool=None, dimensions=None, category: str=None, availabilities=None, **kwargs) -> None: super(MetricSpecification, self).__init__(**kwargs) self.name = name self.display_name = display_name self.display_description = display_description self.unit = unit self.aggregation_type = aggregation_type self.supports_instance_level_aggregation = supports_instance_level_aggregation self.enable_regional_mdm_account = enable_regional_mdm_account self.source_mdm_account = source_mdm_account self.source_mdm_namespace = source_mdm_namespace self.metric_filter_pattern = metric_filter_pattern self.fill_gap_with_zero = fill_gap_with_zero self.is_internal = is_internal self.dimensions = dimensions self.category = category self.availabilities = availabilities