Source code for azure.eventgrid.models.signal_rservice_client_connection_disconnected_event_data

# 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 SignalRServiceClientConnectionDisconnectedEventData(Model): """Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionDisconnected event. :param timestamp: The time at which the event occurred. :type timestamp: datetime :param hub: The hub of connected client connection. :type hub: str :param connection_id: The connection Id of connected client connection. :type connection_id: str :param user_id: The user Id of connected client connection. :type user_id: str :param error_message: The message of error that cause the client connection disconnected. :type error_message: str """ _attribute_map = { 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'hub': {'key': 'hub', 'type': 'str'}, 'connection_id': {'key': 'connectionId', 'type': 'str'}, 'user_id': {'key': 'userId', 'type': 'str'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, } def __init__(self, **kwargs): super(SignalRServiceClientConnectionDisconnectedEventData, self).__init__(**kwargs) self.timestamp = kwargs.get('timestamp', None) self.hub = kwargs.get('hub', None) self.connection_id = kwargs.get('connection_id', None) self.user_id = kwargs.get('user_id', None) self.error_message = kwargs.get('error_message', None)