-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Device Service System Events docs and update SDK APIs
also fix some broken links Signed-off-by: Ginny Guan <ginny@iotechsys.com>
- Loading branch information
1 parent
07cb080
commit a328c9a
Showing
8 changed files
with
115 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Device Service SDK - Device System Events | ||
--- | ||
|
||
# Device Service SDK - Device System Events | ||
|
||
The Device Service SDK offers [APIs](./api/GoDeviceSDK/GoDeviceSDKAPI.md) for publishing device system events, which provide updates on various device processes. | ||
A System Event DTO is published to the EdgeX MessageBus to provide updates on the status of the device (device discovery progress, profile scan progress, etc.). | ||
|
||
## System Event DTO | ||
|
||
!!! edgey - "Edgex 3.2" | ||
System Event actions `discovery`, and `profilescan` are new in EdgeX 3.2 | ||
|
||
The System Event DTO for the Device Service SDK APIs has the following properties: | ||
|
||
| Property | Description | Value | | ||
| --------- |-----------------------------------------------------------------------|--------------------------------------------------------------------------------------| | ||
| Type | Type of System Event | `device` | | ||
| Action | System Event action | `discovery`, `profilescan`, or or any custom user-defined actions | | ||
| Source | Source of the System Event | the name of the device service | | ||
| Owner | Owner of the data in the System Event | the name of the device service that owns the device | | ||
| Details | The data object representing the device's status or the event details | the progress percentage (0 to 100) in this case. A value of `-1` indicates an error. | | ||
| Timestamp | Date and time of the System Event | timestamp in nanoseconds | | ||
|
||
## Publish Topic | ||
|
||
The Device System Events is published to the topic specified by the `MessageQueue.PublishTopicPrefix` configuration setting above, which has a default of `edgex/system-events`, plus the following data items, which are added to allow receivers to filter by subscription. | ||
|
||
- source = [device service name] | ||
- type = device | ||
- action = discovery/profilescan | ||
- owner = [device service name which owns the device] | ||
|
||
!!! example - "Example Device System Event publish topics" | ||
``` | ||
edgex/system-events/device-simple/device/discovery/device-simple | ||
edgex/system-events/device-simple/device/profilescan/device-simple | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters