Skip to content

Commit 387c78c

Browse files
committed
DOCS-2732: Add tabular data to trigger request
1 parent 297e5b9 commit 387c78c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/configure/triggers.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ def trigger():
243243
"Method-Name": data.get('method_name', 'no value'),
244244
"Min-Time-Received": data.get('min_time_received', 'no value'),
245245
"Max-Time-Received": data.get('max_time_received', 'no value'),
246-
"Data-Type": data.get('data_type', 'no value')
246+
"Data-Type": data.get('data_type', 'no value'),
247+
"File-Id": data.get('file_id', 'no value'),
248+
"Data": data.get('data', 'no value')
247249
}
248250
print(payload)
249251

@@ -287,6 +289,8 @@ def hello_http(request):
287289
"Min-Time-Received": data.get("min_time_received", "no value"),
288290
"Max-Time-Received": data.get("max_time_received", "no value"),
289291
"Data-Type": data.get("data_type", "no value"),
292+
"File-Id": data.get('file_id', 'no value'),
293+
"Data": data.get('data', 'no value')
290294
}
291295
print(payload)
292296

@@ -334,6 +338,7 @@ The request body includes the following data:
334338
| `location_name` | The location of the machine that triggered the request. | `part_data_ingested` |
335339
| `org_name` | The name of the organization that triggered the request. | `part_data_ingested` |
336340
| `file_id` | The id of the file that was ingested. | `part_data_ingested` |
341+
| `data` | The ingested sensor data. | `part_data_ingested` (sensor data) |
337342

338343
## Next steps
339344

0 commit comments

Comments
 (0)