Resource Events

Get resource events from selected device

Get all resource events that occurred on the device with given deviceId. Alternative is to call 'Get resource events' with deviceIdFilter query parameter.

get/api/v1/devices/{deviceId}/events

Query parameters

timestampinteger

Filter by Unix nanoseconds timestamp

Response

Stream of events or error

Example response

[
  {
    "result": {
      "resourceLinksPublished": {
        "resources": [
          {
            "href": "/switches/1",
            "deviceId": "4629b3cb-3a6e-477c-5d50-ccb28ad7c349",
            "resourceTypes": [
              "oic.r.switch.binary"
            ],
            "interfaces": [
              "oic.if.a",
              "oic.if.baseline"
            ],
            "anchor": "",
            "title": "",
            "supportedContentTypes": [],
            "validUntil": "0",
            "policy": {
              "bitFlags": 3
            },
            "endpointInformations": []
          }
        ],
        "deviceId": "4629b3cb-3a6e-477c-5d50-ccb28ad7c349",
        "auditContext": {
          "userId": "9772fcff-dcfb-4db8-a6c9-1b75f2165eb1",
          "correlationId": "ef007f88-6073-4af1-8951-971578bf6803"
        },
        "eventMetadata": {
          "connectionId": "194.1.25.111:61692",
          "sequence": "4",
          "version": "0",
          "timestamp": "1625432924483895839"
        }
      },
      "resourceLinksUnpublished": {
        "hrefs": [
          "/light/1",
          "/light/2"
        ],
        "deviceId": "4629b3cb-3a6e-477c-5d50-ccb28ad7c349",
        "auditContext": {
          "userId": "9772fcff-dcfb-4db8-a6c9-1b75f2165eb1",
          "correlationId": "ef007f88-6073-4af1-8951-971578bf6803"
        },
        "eventMetadata": {
          "connectionId": "194.1.25.111:61692",
          "sequence": "4",
          "version": "0",
          "timestamp": "1625432924483895839"
        }
      }
    }
  }
]

Changes

Changed in 6 of the 42 revisions of this API.11114

    • added the new NOT_MODIFIED enum value to the items/result/resourceChanged/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceCreated/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceDeleted/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceLinksSnapshotTaken/resources/additionalProperties/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceRetrieved/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceStateSnapshotTaken/latestResourceChange/status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_MODIFIED enum value to the items/result/resourceUpdated/status response property for the response status 200

      response-property-enum-value-added

    • removed the optional property items/result/deviceMetadataSnapshotTaken/deviceMetadataUpdated/shadowSynchronization from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/result/deviceMetadataSnapshotTaken/updatePendings/items/shadowSynchronization from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/result/deviceMetadataUpdatePending/shadowSynchronization from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/result/deviceMetadataUpdated/shadowSynchronization from the response with the 200 status

      response-optional-property-removed

    • added the optional property items/result/deviceMetadataSnapshotTaken/deviceMetadataUpdated/twinEnabled to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/deviceMetadataSnapshotTaken/deviceMetadataUpdated/twinSynchronization to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/deviceMetadataSnapshotTaken/updatePendings/items/twinEnabled to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/deviceMetadataUpdatePending/twinEnabled to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/deviceMetadataUpdated/twinEnabled to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/deviceMetadataUpdated/twinSynchronization to the response with the 200 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property error/details/items/typeUrl to the response with the 400 status

      response-optional-property-added

    • added the optional property error/details/items/typeUrl to the response with the 401 status

      response-optional-property-added

    • added the optional property error/details/items/value to the response with the 400 status

      response-optional-property-added

    • added the optional property error/details/items/value to the response with the 401 status

      response-optional-property-added

    • added the optional property items/error/details/items/typeUrl to the response with the 200 status

      response-optional-property-added

    • added the optional property items/error/details/items/value to the response with the 200 status

      response-optional-property-added

    • added the optional property items/result/resourceLinksSnapshotTaken/auditContext to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 55 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 42 revisions, 3 have no diff computed.