This entity contains a harmonised description of a generic device operation entity. The device operation entity contains dynamic data reported by a device and is therefore applicable to all IoT segments and related IoT applications.
<DeviceOperation><Generic Attributes>
Attribute Name | Attribute Type | Description | Mandatory /Optional | May be Null |
---|---|---|---|---|
id | Text | Unique id of this instance of this entity. | M | N |
type | Text | Must be equal to "DeviceOperation". | M | N |
dateCreated | DateTime | Entity creation timestamp. | M | N |
dateModified | DateTime | Timestamp of the last modification of the entity. | M | Y |
source | Text | A sequence of characters giving the source of the entity data as a URL. | M | Y |
dataProvider | Text | A sequence of characters identifying the originator of the harmonised entity. | M | Y |
<DeviceOperation><Entity Specific Attributes>
Attribute Name | Attribute Type | Description | Mandatory /Optional | May be Null |
---|---|---|---|---|
refDevice | Reference | The unique entity Id of the device to which this device operation relates. | M | N |
operationType | Array of Text | Choice form an enumerated list including: event, maintenance, fault, installation, upgrade,other. |
O | Y |
description | Text | A description of the operation. | O | Y |
result | Text | A description of the results of the operation. One of (“ok”, “aborted”). | O | Y |
startDate | DateTime | The planned start date for the operation. | M | Y |
endDate | DateTime | The planned end date for the operation. | M | Y |
status | Text | A choice from an enumerated list describing the status. One of: planned, ongoing, finished, scheduled, cancelled. |
O | Y |
operator | Person | The operator performing this action encoded as a Schema.org person. https://schema.org/Person |
O | Y |
dateStarted | DateTime | Timestamp when the operation actually started to be performed. | O | Y |
dateFinished | DateTime | Timestamp when the operation actually finished. | O | Y |
dateReported | DateTime | The timestamp when the device event or fault was reported. | O | Y |
dateAddressed | DateTime | The timestamp when the event or fault was addressed or cleared. | O | Y |
The JSON code can be downloaded from:
https://gist.github.com/GSMADeveloper/581d2de918e01fb05efd35f27686f361
{
"id": "27577638-bd8a-4732-b418-fc8b949a0b0f",
"type": "DeviceOperation",
"dateCreated": {
"value": "2016-08-08T10:18:16Z",
"type": "DateTime"
},
"dateModified": {
"value": "2016-08-08T10:18:16Z",
"type": "DateTime"
},
"source": {
"value": "http://www.example.com",
"type": "URL"
},
"dataProvider": {
"value": "OperatorA",
"type": "Text"
},
"refDevice": {
"value": "2033a7c7-d31b-48e7-91c2-014dc426c29e",
"type": "Reference"
},
"operationType": [
"fault"
],
"description": {
"value": "Backup battery needs replacement",
"type": "Text"
},
"result": {
"value": "ok",
"type": "Text"
},
"startDate": {
"value": "2016-08-20T10:18:16Z",
"type": "DateTime"
},
"endDate": {
"value": "2016-08-18T14:18:16Z",
"type": "DateTime"
},
"status": {
"value": "ongoing",
"type": "Text"
},
"operator": {
"value": {
"givenName": "John Dee"
},
"type": "Person"
},
"dateStarted": {
"value": "2016-08-20T10:18:16Z",
"type": "DateTime"
},
"dateFinished": {
"value": "2016-08-18T10:18:16Z",
"type": "DateTime"
},
"dateReported": {
"value": "2016-08-18T10:18:16Z",
"type": "DateTime"
},
"dateAddressed": {
"value": "2016-08-18T10:18:16Z",
"type": "DateTime"
}
}