Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teamviewer Api does not accept microsecond precision parameters #301

Open
dpsenner opened this issue Aug 29, 2022 · 2 comments
Open

Teamviewer Api does not accept microsecond precision parameters #301

dpsenner opened this issue Aug 29, 2022 · 2 comments

Comments

@dpsenner
Copy link

While attempting to fetch data from the Teamviewer endpoint https://webapi.teamviewer.com/api/v1/reports/devices it is currently not possible to filter with the parameters from_date and to_date because the parameters do not accept microsecond precision timestamps. This does mean that it is not possible to use the macros $__isoFrom() and $__isoTo() in this situation.

The api accepts the parameters from_date and to_date in the following format:

from_date=2021-08-01T05:14:32Z

This instead is generated by $__isoFrom():

from_date=2021-08-01T05:14:32.442Z

Please add macros that generate timestamps which:

  1. Omit the subsecond fraction, i.e. 2021-08-01T05:14:32Z
  2. Are just plain dates without time component, i.e. 2021-08-01
@Rablacan
Copy link

Rablacan commented Sep 3, 2022

Hi!
Try use Grafana system variables to parameter, and string concatenate. ;) Its work for me
${__from:date:YYYY-MM-DDTHH}:${__from:date:mm}:${__from:date:ss}Z => 2022-08-27T07:07:12Z

@gabor
Copy link
Contributor

gabor commented May 24, 2024

hi @dpsenner , did @Rablacan 's solution work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting Response
Development

No branches or pull requests

3 participants