text: # 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 .resource_py3 import Resource
  
  
  class Alert(Resource):
      """An alert created in alert management service.
  
      Variables are only populated by the server, and will be ignored when
      sending a request.
  
      :ivar id: Azure resource Id
      :vartype id: str
      :ivar type: Azure resource type
      :vartype type: str
      :ivar name: Azure resource name
      :vartype name: str
      :param properties:
      :type properties: ~azure.mgmt.alertsmanagement.models.AlertProperties
      """
  
      _validation = {
          'id': {'readonly': True},
          'type': {'readonly': True},
          'name': {'readonly': True},
      }
  
      _attribute_map = {
          'id': {'key': 'id', 'type': 'str'},
          'type': {'key': 'type', 'type': 'str'},
          'name': {'key': 'name', 'type': 'str'},
          'properties': {'key': 'properties', 'type': 'AlertProperties'},
      }
  
      def __init__(self, *, properties=None, **kwargs) -> None:
          super(Alert, self).__init__(**kwargs)
          self.properties = properties
  