Skip to content

Commit

Permalink
Eiot sensors type alignment for new provider (#13780)
Browse files Browse the repository at this point in the history
* change boolean to enum

* align new provider with new sensor field

* eiot-sensor-type-align

Co-authored-by: Gal Moshe <gamoshe@microsoft.com>
  • Loading branch information
galmoshe and gamoshe authored Apr 6, 2021
1 parent a80895f commit 2065a4f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
Expand All @@ -44,7 +45,8 @@
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"sensorModel": {
"properties": {
"tiAutomaticUpdates": true,
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
}
}
},
Expand All @@ -25,7 +26,8 @@
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
}
}
},
Expand All @@ -43,7 +45,8 @@
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name"
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,27 @@
"type": "string",
"description": "Zone of the IoT sensor",
"example": "A12"
},
"sensorType": {
"description": "Type of sensor",
"example": "Ot",
"type": "string",
"enum": [
"Ot",
"Enterprise"
],
"x-ms-enum": {
"name": "sensorType",
"modelAsString": true,
"values": [
{
"value": "Ot"
},
{
"value": "Enterprise"
}
]
}
}
}
},
Expand Down

0 comments on commit 2065a4f

Please sign in to comment.