grafana-toolbox / grafanimate

Animate timeseries data with Grafana.
https://community.panodata.org/t/grafanimate/205
GNU Affero General Public License v3.0
47 stars 6 forks source link

When parsing timestamps, allow ISO8801/RFC3339 and Epoch time #10

Closed amotl closed 3 years ago

amotl commented 3 years ago

Hi there,

@msweef asked at [1] for another detail:

Start- und Endtime in Unix Epoch oder sogar gemischt.

this patch implements this feature. The built-in scenarios.py outlines what is possible now:

https://github.com/panodata/grafanimate/blob/7efec10c2eccf26557bfcc25b38dbc311bccf086/grafanimate/scenarios.py#L64-L87

With kind regards, Andreas.

[1] https://community.hiveeyes.org/t/improving-time-range-control-for-grafanimate/1783/2


P.S.: Within this example, you will also recognize another two new features coming from other patches:

  1. Choosing SequencingMode.CUMULATIVE was unlocked by #7 and 62541a9.
  2. Making it possible to put grafana_url and dashboard_uid into the scenario description itself was unlocked by #8.