Way to find out correct timeframe

FG413

New Member
Apr 21, 2025
3
0
1
Hello, I'm writing a script that collect data from all nodes by - /api2/json/nodes/{node}/rrddata

the problem is that the source I work with is inconsistent when it comes to timeframe query. Sometime 'hour' is a right one, sometime - 'day'.

Is there any way to collect timeframes supported by each specific nodes by api? I looked at this https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/rrddata api reference and didn't didn't find anything.

Or enumerate every option is all I can do?
 
the problem is that the source I work with is inconsistent when it comes to timeframe query. Sometime 'hour' is a right one, sometime - 'day'.
what do you mean by this exactly?

the timeframe specifies from which timeframe the data is returned that we have...

also 'hour' and 'day' is both supported since a long time
 
what do you mean by this exactly?

the timeframe specifies from which timeframe the data is returned that we have...

also 'hour' and 'day' is both supported since a long time
status code: 500, reason phrase: got wrong time resolution (60 != 1800) - this is example of error I get if I use "wrong" timeframes. I guess it mean that source is just broken?

by the way it also can be status code: 500, reason phrase: got wrong time resolution (1800 != 60)
 
This source from other team. If this is an error on their side, I would like to know what should they fix.
version - 8.2.4
 
it would be interesting what the exact api call is with all parameters, otherwise it's hard to say what exactly is wrong here