curl -X 'PUT' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/ \
-d '{"index" : [
{"/electricity" : "sum"},
{"/temperature" : ["avg", "max"]}
]}'
Data series with same class shares same index set and policies
curl -X 'POST' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/ \
-d '{"electricity" : 15, "temperature" : 20}'
curl -X 'PUT' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/2015.01.30T02:00:00.0000 \
-d '{"electricity" : 15, "temperature" : 20}'
curl -X 'POST' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/ \
-d '{"$from" : "2015.01.30T02:00:00",
"$to" : "2015.01.30T03:00:00",
"/electricity" : "sum",
"/temperature" : "avg"}'
{
"/electricity" : 15,
"/temperature" : 20
}
curl -X 'POST' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/ \
-d '{"$from" : "2015.01.30T02:00:00",
"$to" : "2015.01.30T03:00:00",
"$group" : "1h"
"/electricity" : "sum",
"/temperature" : "avg"}'
{
"2015.01.30T02:00:00": {
"/electricity" : 15,
"/temperature" : 20
}
}
curl -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/2015.01.30T02:00:00.0000
{
"electricity" : 15,
"temperature" : 20
}
curl -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/2015.01.30T02:00:00.0000-2015.01.30T02:00:00.0000
{"2015.01.30T02:00:00.0000": {
"electricity" : 15,
"temperature" : 20
}}
curl -X 'POST' -u 'id:secret' \
https://us0.eventdb.io/<your_id>/house/alice/?share=read,write
https://us0.eventdb.io/~jd0xmk8sL
curl -X 'POST' \
https://us0.eventdb.io/~jd0xmk8sL \
-d '{"electricity" : 15, "temperature" : 20}'
- Region in url?