how to edit timestamp at index 0

16 views
Skip to first unread message

eka...@gmail.com

unread,
Jan 30, 2018, 12:10:33 PM1/30/18
to Warp 10 users
hi all,

i want to edit the datapoint's timestamp at index 0 of a gts so that when feeding it to bucketizer i know exactly the last bucket end . (setting lastbucket value for BUCKETIZE function doesn't work for me because i need this value to be after 'younger' datapoint.

example:

NEWGTS
'test name'
RENAME
{ 'label0' '42' 'label1' 'foo' }
RELABEL


1100 NaN NaN NaN  10 ADDVALUE
1000 NaN NaN NaN  9 ADDVALUE
900  NaN NaN NaN  8 ADDVALUE
700  NaN NaN NaN  7 ADDVALUE
500  NaN NaN NaN  6 ADDVALUE
400  NaN NaN NaN  5 ADDVALUE
300  NaN NaN NaN  4 ADDVALUE
200  NaN NaN NaN  3 ADDVALUE
100  NaN NaN NaN 2 ADDVALUE

'gts' STORE
$gts

0 ATINDEX
'lastDataPoint' STORE
// Here i want to do something like:
$lastDataPoint
= 3000 NaN NaN NaN NaN //i need to only change the timestamp but keep the value
//and add this tick to $gts before bucketizing
???


Thanks,

Nils

Mathias Herberts

unread,
Jan 30, 2018, 12:14:15 PM1/30/18
to eka...@gmail.com, Warp 10 users
Can't you use 0 to automatically determine the 'lastbucket' value?

--
You received this message because you are subscribed to the Google Groups "Warp 10 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to warp10-users+unsubscribe@googlegroups.com.
To post to this group, send email to warp10...@googlegroups.com.
Visit this group at https://groups.google.com/group/warp10-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/warp10-users/59b5a4fd-9e3a-4a92-a669-4a403ca48ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

eka...@gmail.com

unread,
Jan 30, 2018, 12:20:43 PM1/30/18
to Warp 10 users
i can't because i need to bucketize it with bucketizer.last

eka...@gmail.com

unread,
Jan 30, 2018, 12:44:54 PM1/30/18
to Warp 10 users
 ok thanks, you take me on the right way. i have ADDVALUE to the initial gts with a timstamp of *wanted last bucket end* + *bucketspan*  so i get a fake bucket in addition with of the real buckets but all is sync
To unsubscribe from this group and stop receiving emails from it, send an email to warp10-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages