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 Name

Type

Description

action

string

Action name: notification/insert

subscriptionId

guid

Identifier of the associated subscription.

notification

object

A DeviceNotification resource representing the notification.

notification.id

integer

Notification identifier.

notification.notification

string

Notification name.

notification.deviceId

string

Device unique identifier.

notification.timestamp

datetime

Notification timestamp (UTC).

notification.parameters

object

Notification parameters, a JSON object with an arbitrary structure.