You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-manage-twin.md
+7-15Lines changed: 7 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,18 +117,10 @@ The result of calling `object result = await client.GetDigitalTwinAsync("my-moon
117
117
"$metadata": {
118
118
"$model":"dtmi:example:Moon;1",
119
119
"radius": {
120
-
"desiredValue":1737.1,
121
-
"desiredVersion":5,
122
-
"ackVersion":4,
123
-
"ackCode":200,
124
-
"ackDescription":"OK"
120
+
"lastUpdateTime":"2022-12-06T20:00:32.8209188Z"
125
121
},
126
122
"mass": {
127
-
"desiredValue":0.0734,
128
-
"desiredVersion":8,
129
-
"ackVersion":8,
130
-
"ackCode":200,
131
-
"ackDescription":"OK"
123
+
"lastUpdateTime":"2022-12-04T12:04:43.3859361Z"
132
124
}
133
125
}
134
126
}
@@ -137,12 +129,12 @@ The result of calling `object result = await client.GetDigitalTwinAsync("my-moon
137
129
Thedefinedpropertiesofthedigitaltwinarereturnedastop-levelpropertiesonthedigitaltwin. Metadataorsysteminformationthatisn't part of the DTDL definition is returned with a `$` prefix. Metadata properties include the following values:
* `$etag`:AstandardHTTPfieldassignedbythewebserver. Thisisupdatedtoanewvalueeverytimethetwinisupdated, whichcanbeusefultodeterminewhetherthetwin's data has been updated on the server since a previous check. You can use `If-Match` to perform updates and deletes that only complete if the entity'setagmatchestheetagprovided. Formoreinformationontheseoperations, seethedocumentationfor [DigitalTwinsUpdate](/rest/api/digital-twins/dataplane/twins/digitaltwins_update) and [DigitalTwinsDelete](/rest/api/digital-twins/dataplane/twins/digitaltwins_delete).
140
-
* `$metadata`:Asetofotherproperties, including:
141
-
-TheDTMIofthemodelofthedigitaltwin.
142
-
-Synchronizationstatusforeachwritableproperty. Thisismostusefulfordevices, whereit's possible that the service and the device have diverging statuses (for example, when a device is offline). Currently, this property only applies to physical devices connected to IoT Hub. With the data in the metadata section, it'spossibletounderstandthefullstatusofaproperty, aswellasthelastmodifiedtimestamps. Formoreinformationaboutsyncstatus, seethis [IoTHubtutorial](../iot-hub/tutorial-device-twins.md) onsynchronizingdevicestate.
Youcanreadmoreabouttheserializationhelperclasseslike `BasicDigitalTwin` in [AzureDigitalTwinsAPIsandSDKs](concepts-apis-sdks.md#serialization-helpers).
137
+
Youcanreadmoreaboutthefieldscontainedinadigitaltwinin [DigitaltwinJSONformat](concepts-twins-graph.md#digital-twin-json-format). Youcanreadmoreabouttheserializationhelperclasseslike `BasicDigitalTwin` in [AzureDigitalTwinsAPIsandSDKs](concepts-apis-sdks.md#serialization-helpers).
0 commit comments