Greetings everyone -- The Usergrid documentation says:
"To reset a counter, specify a value of 0 for the counter value in any of the above examples."
This does not appear to work. The events themselves register, but the aggregate value returned by the counter (without start_time, end_time, or resolution) is unaffected.
Here's a time series for a counter retrieved with minute resolution, after multiple attempts to reset it:
{"timestamp":1521120480000,"value":0},{"timestamp":1521120540000,"value":599},{"timestamp":1521123780000,"value":0},{"timestamp":1521123840000,"value":599},{"timestamp":1521124380000,"value":0},{"timestamp":1521124440000,"value":599},{"timestamp":1521124560000,"value":0},{"timestamp":1521124620000,"value":599},{"timestamp":1521135300000,"value":0},{"timestamp":1521135360000,"value":0},{"timestamp":1521135420000,"value":599},{"timestamp":1521137340000,"value":0},{"timestamp":1521137400000,"value":599},{"timestamp":1521137520000,"value":0},{"timestamp":1521137820000,"value":599},{"timestamp":1521137880000,"value":599},{"timestamp":1521180780000,"value":0}]
Here's the same counter, retrieved with a plain /counters?counter=(the
counter)
[{"timestamp":1,"value":4792}]
Since 4792 = 599 * 8 and there are 8 events where the value was
incremented by 599 in the series, it looks like the value:0's are
treated just like any other increments -- summed into the total --, i.e.
they appear to do nothing at all.
Is there something I'm missing or is this a bug in Usergrid? Best regards, Petteri Sulonen
smime.p7s
Description: S/MIME Cryptographic Signature
