Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Latest commit

 

History

History
147 lines (137 loc) · 4.74 KB

File metadata and controls

147 lines (137 loc) · 4.74 KB

Summary Object

Overview

The summary object is a twin reported json object that summarizes the state of the device. Such summaries are very efficient in finding devices based on summarized properties. For more details, see the Twin Aggregation page.

Schema

Sub-Group Properties
Deployment List

Desired: n/a
Reported: Yes

Indicates what deployments affect this device.
`deployments` Typestring
Desiredn/a
ReportedYes
DescriptionHold a list of deployment ids separated by semicolons.
Failed Count

Desired: n/a
Reported: Yes

Indicates the number of failed configuration sub-groups.
`failedCount` Typeinteger
Desiredn/a
ReportedYes
DescriptionThe number of failed configuration sub-groups.
Failed Groups

Desired: n/a
Reported: Yes

Indicates a list of configuration group identifiers with failures.
`failedGroups` Typestring
Desiredn/a
ReportedYes
DescriptionA semicolon separate list of configuration group identifiers where errors are reported.
Pending Count

Desired: n/a
Reported: Yes

Indicates the number of pending configuration sub-groups.
`pendingCount` Typeinteger
Desiredn/a
ReportedYes
DescriptionThe number of pending configuration sub-groups.
Pending Groups

Desired: n/a
Reported: Yes

Indicates a list of configuration group identifiers with failures.
`pendingGroups` Typestring
Desiredn/a
ReportedYes
DescriptionA semicolon separate list of configuration group identifiers where errors are reported.
Time Stamp

Desired: n/a
Reported: Yes

Indicates the time stamp of when the summary object was last updated.
`time` Typestring
Desiredn/a
ReportedYes
DescriptionTime in ISO 8601 format (i.e. 2016-10-10T17:00:00Z).

Sample

  "__summary": {
    "deployments": "",
    "failedCount": 1,
    "failedGroups": "deviceInfo",
    "pendingCount": 0,
    "pendingGroups": "",
    "time": "2018-11-21T11:16:30Z"
  }

Code

This object is represetned in the code with the ReportedSummary type. An instance of this type is created and owned by the handlers host (AzureDMClient). When a handler changes its deployment state or reports, the device agent intercepts those calls and updates the summary object, and then aggregates its json representation with the json coming from the handler and reports them as one chunk. This is important to maintain the integrity of the data in the twin.


Home | Device Agent | Reference