3 ms·
It might be a good idea to add more RESTful handling of ingestion. Something similar to the following POST /{account}/{series} [ { metrics
by gravypod 8y ago
It might be a good idea to add more RESTful handling of ingestion. Something similar to the following
POST /{account}/{series}
[
{
metrics: {
"a": 10,
"b": 20,
"c": [1, 2, 3, 4]
},
occurred: "2018-01-01 01:01:01"
},
{
metrics: {
"a": 20,
"b": 30,
"c": [2, 3, 4, 5]
},
occurred: "2018-01-01 01:01:02"
}
]
The overhead of an HTTP call of every data point submission might now work well in low bandwith situations. Also in cases where you have intermittent internet connections supplying a timestamp for when an event happens is helpful.
- rlonn 8y agoThere is an /api/timeseries end point where you can POST multiple data points with one single call. while putting that end point under /{email}/{series} may be more intuitive, I wanted to make it obvious that it is separate, as that end point is a premium feature. See https://speca.io/ragnarlonn/pushdata-io#extended-api https://speca.io/ragnarlonn/pushdata-io#extended-api