Skip to content

Commit

Permalink
DOCS-2732: Add tabular data to trigger request (#3196)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Aug 6, 2024
1 parent 81ce499 commit da70b93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/configure/triggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def trigger():
"Method-Name": data.get('method_name', 'no value'),
"Min-Time-Received": data.get('min_time_received', 'no value'),
"Max-Time-Received": data.get('max_time_received', 'no value'),
"Data-Type": data.get('data_type', 'no value')
"Data-Type": data.get('data_type', 'no value'),
"File-Id": data.get('file_id', 'no value'),
"Data": data.get('data', 'no value')
}
print(payload)

Expand Down Expand Up @@ -287,6 +289,8 @@ def hello_http(request):
"Min-Time-Received": data.get("min_time_received", "no value"),
"Max-Time-Received": data.get("max_time_received", "no value"),
"Data-Type": data.get("data_type", "no value"),
"File-Id": data.get('file_id', 'no value'),
"Data": data.get('data', 'no value')
}
print(payload)

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

## Next steps

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,4 @@ sudo systemctl disable brltty.service

You may also need to reboot your system, and/or unplug the cable from the computer and re-plug it in.

See this [blog post](https://koen.vervloesem.eu/blog/how-to-stop-brltty-from-claiming-your-usb-uart-interface-on-linux/) and [Ubuntu bug report](https://bugs.launchpad.net/ubuntu/+source/brltty/+bug/1958224) for more.
See this [blog post](https://koen.vervloesem.eu/blog/how-to-stop-brltty-from-claiming-your-usb-uart-interface-on-linux/) and [Ubuntu bug report](https://bugs.launchpad.net/ubuntu/+source/brltty/+bug/1958224) for more.

0 comments on commit da70b93

Please sign in to comment.