Warp10 Concepts of "Attributes"

71 views
Skip to first unread message

Andrew Student

unread,
Jul 9, 2018, 7:20:08 AM7/9/18
to Warp 10 users
Hi everyone!

I'm actually asking myself a question about one of the data-structure concepts into warp10.

We can read:
"GTS can also have attributes which are another set of key/values, the only difference with labels is that attributes do not identify the GTS, they are simply there to provide additional information, and since they do not identify the GTS they can be modified during the lifetime of the Geo Time Series."

It's not really clear to me, did this attributes are only present for the time of the WarpScript? Or do they are persistent and stored on DB somewhere?


Because if they are, do we have any way to set them directly when calling /update endpoint with our data? Because to me, GTS is:

ts/long/lat/ classname{labelK=labelV...} value

So how do we put the 'attributes' information inside that format?


Can someone provide me some example/context where using attributes are meaningful? It will probably help me to understand better this concept.

Mathias Herberts

unread,
Jul 9, 2018, 8:11:01 AM7/9/18
to Warp 10 users
Attributes are persisted either via the META WarpScript™ function or via the Warp 10™ /meta endpoint (http://www.warp10.io/apis/meta/).

For now you cannot set them while updating the data, but there is a yet unmerged PR for doing just that (https://github.com/cityzendata/warp10-platform/pull/260).
Reply all
Reply to author
Forward
0 new messages