srv: notification/insert

Notifies the user about new device notification.

Server Message

Message Representation

{
    "action": {string},
    "subscriptionId": {guid},
    "notification": {
        "id": {integer},
        "notification": {string},
        "deviceId": {string},
        "timestamp": {datetime},
        "parameters": {object}
    }
}

Message Parameters

Property NameTypeDescription
actionstringAction name: notification/insert
subscriptionIdguidIdentifier of the associated subscription.
notificationobjectA DeviceNotification resource representing the notification.
notification.idintegerNotification identifier.
notification.notificationstringNotification name.
notification.deviceIdstringDevice unique identifier.
notification.timestampdatetimeNotification timestamp (UTC).
notification.parametersobjectNotification parameters, a JSON object with an arbitrary structure.