File tree Expand file tree Collapse file tree
docs/data-routing/4-destinations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : lightdb-state
3+ ---
4+
5+ | | |
6+ | ---| :---:|
7+ | __ Latest Version__ | ` v1.0.0 ` |
8+ | __ Input Content Type__ | ` application/json ` |
9+
10+ ::: usage
11+ Sending data to LightDB State incurs usage costs after exceeding the free tier.
12+ See [ Golioth pricing] ( https://golioth.io/pricing ) for more information.
13+ :::
14+
15+ The LightDB State destination sends data to [ LightDB
16+ State] ( /application-services/lightdb-state ) . Data must arrive as or be
17+ transformed into JSON in order to be successfully delivered to LightDB State.
18+
19+ If a ` path ` is specified, it will be used to nest the message data in the
20+ device's LightDB State JSON document. If the ` path ` parameter is omitted, the
21+ stream path will be used for nesting.
22+
23+ ### Parameters
24+
25+ | Parameter| Type| Description| Required|
26+ | ---| ---| ---| :---:|
27+ | ` path ` | ` string ` | A fixed path to nest the JSON object. | |
28+
29+ ### Example Usage
30+
31+ Because LightDB State is hosted by Golioth, no credentials are required to
32+ deliver data to the service.
33+
34+ ``` yaml
35+ destination :
36+ type : lightdb-state
37+ version : v1
38+ parameters :
39+ path : /latest/stream
40+ ` ` `
41+
42+ ### Example Input
43+
44+ ` ` ` json
45+ {
46+ " temp " : 32
47+ }
48+ ```
49+
50+ ### Example Output
51+
52+ ``` json
53+ {
54+ "latest" : {
55+ "stream" : {
56+ "temp" : 32
57+ }
58+ }
59+ }
60+ ```
You can’t perform that action at this time.
0 commit comments