Description Arguments Examples
Insert data
Insert time series data into SiriDB. Requires a List with at least one series and a callback function to catch the result.
series |
A List containing the series to insert |
callback |
A callback function to catch the result.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | series = list(
list(name='series_i', points=list(
list(timestamp=1500000000L, value=0L),
list(timestamp=1500000900L, value=1L))),
list(name='series_f', points=list(
list(timestamp=1500000000L, value=0.1))),
list(name='series_s', points=list(
list(timestamp=1500000000L, value='blabla')))
)
s <- SiriDB(user="iris", password="siri", dbname="dbtest", server="localhost", port=9000L)
s$connect(function (err) {
if (is.null(err)) {
# s$insert(series, function (resp, status) {
# close the connection
s$close()
# })
}
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.