Source code for azure.mgmt.containerregistry.v2018_09_01.models.operation_metric_specification_definition_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 OperationMetricSpecificationDefinition(Model): """The definition of Azure Monitoring metric. :param name: Metric name. :type name: str :param display_name: Metric display name. :type display_name: str :param display_description: Metric description. :type display_description: str :param unit: Metric unit. :type unit: str :param aggregation_type: Metric aggregation type. :type aggregation_type: str :param internal_metric_name: Internal metric name. :type internal_metric_name: str """ _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'}, 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, } def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, internal_metric_name: str=None, **kwargs) -> None: super(OperationMetricSpecificationDefinition, 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.internal_metric_name = internal_metric_name