Skip to content

Commit bc92a2c

Browse files
authored
Merge pull request #95379 from KingdomOfEnds/adt-refresh-two
updated JSON
2 parents da71eef + ab0ef34 commit bc92a2c

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

articles/digital-twins/concepts-user-defined-functions.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: bertvanhoof
77
ms.service: digital-twins
88
services: digital-twins
99
ms.topic: conceptual
10-
ms.date: 09/17/2019
10+
ms.date: 11/07/2019
1111
---
1212

1313
# Data processing and user-defined functions
@@ -37,35 +37,40 @@ Matchers define a set of conditions that evaluate what actions take place based
3737

3838
- All sensors of datatype **Temperature** represented by the escaped String value `\"Temperature\"`
3939
- Having `01` in their port
40-
- Which belong to devices with the extended property key **Manufacturer** set to the escaped String value `\"GoodCorp\"`
40+
- Which belong to devices with the extended property key **Manufacturer** set to the escaped String value `\"Contoso\"`
4141
- Which belong to spaces of the type specified by the escaped String `\"Venue\"`
4242
- Which are descendants of parent **SpaceId** `DE8F06CA-1138-4AD7-89F4-F782CC6F69FD`
4343

4444
```JSON
4545
{
46-
"SpaceId": "DE8F06CA-1138-4AD7-89F4-F782CC6F69FD",
47-
"Name": "My custom matcher",
48-
"Description": "All sensors of datatype Temperature with 01 in their port that belong to devices with the extended property key Manufacturer set to the value GoodCorp and that belong to spaces of type Venue that are somewhere below space Id DE8F06CA-1138-4AD7-89F4-F782CC6F69FD",
49-
"Conditions": [
46+
"id": "23535afafd-f39b-46c0-9b0c-0dd3892a1c30",
47+
"name": "My custom matcher",
48+
"spaceId": "DE8F06CA-1138-4AD7-89F4-F782CC6F69FD",
49+
"description": "All sensors of datatype Temperature with 01 in their port that belong to devices with the extended property key Manufacturer set to the value Contoso and that belong to spaces of type Venue that are somewhere below space Id DE8F06CA-1138-4AD7-89F4-F782CC6F69FD",
50+
"conditions": [
5051
{
52+
"id": "43898sg43-e15a-4e9c-abb8-2gw464364",
5153
"target": "Sensor",
5254
"path": "$.dataType",
5355
"value": "\"Temperature\"",
5456
"comparison": "Equals"
5557
},
5658
{
59+
"id": "wt3th44-e15a-35sg-seg3-235wf3ga463",
5760
"target": "Sensor",
5861
"path": "$.port",
5962
"value": "01",
6063
"comparison": "Contains"
6164
},
6265
{
66+
"id": "735hs33-e15a-37jj-23532-db901d550af5",
6367
"target": "SensorDevice",
6468
"path": "$.properties[?(@.name == 'Manufacturer')].value",
65-
"value": "\"GoodCorp\"",
69+
"value": "\"Contoso\"",
6670
"comparison": "Equals"
6771
},
6872
{
73+
"id": "222325-e15a-49fg-5744-463643644",
6974
"target": "SensorSpace",
7075
"path": "$.type",
7176
"value": "\"Venue\"",

articles/digital-twins/how-to-user-defined-functions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: bertvanhoof
77
ms.service: digital-twins
88
services: digital-twins
99
ms.topic: conceptual
10-
ms.date: 10/02/2019
10+
ms.date: 11/07/2019
1111
ms.custom: seodec18
1212
---
1313

@@ -49,16 +49,18 @@ With JSON body:
4949

5050
```JSON
5151
{
52-
"Name": "Temperature Matcher",
53-
"Conditions": [
52+
"id": "3626464-f39b-46c0-d9b0c-436aysj55",
53+
"name": "Temperature Matcher",
54+
"spaceId": "YOUR_SPACE_IDENTIFIER",
55+
"conditions": [
5456
{
57+
"id": "ag7gq35cfu3-e15a-4e9c-6437-sj6w68sy44s",
5558
"target": "Sensor",
5659
"path": "$.dataType",
5760
"value": "\"Temperature\"",
5861
"comparison": "Equals"
5962
}
60-
],
61-
"SpaceId": "YOUR_SPACE_IDENTIFIER"
63+
]
6264
}
6365
```
6466

0 commit comments

Comments
 (0)