class Rrddata extends PVEPathClassBase
...
public function get(): ?array
{
return $this->getPve()->getApi()->get($this->getPathAdditional());
}
Rrddata requires timeframe.
Timeframe is a required parameter for rrddata hour | day | week | month | year enum
Without timeframe null will always be returned here.
I tried to open a PR, but cannot commit to a branch, here's my changes in Proxmox/Api/Nodes/Node/Rrddata.php
/**
* Read node RRD statistics
* @link https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/rrddata
* @param array $params An array specifying the time intervals for which statistics should be retrieved.
* Supported keys:
* ['timeframe' =>
* - 'hour': Retrieve statistics for the last hour.
* - 'day': Retrieve statistics for the last day.
* - 'week': Retrieve statistics for the last week.
* - 'month': Retrieve statistics for the last month.
* - 'year': Retrieve statistics for the last year.
* ]
* @return array|null
*/
public function get(array $params = []): ?array
{
return $this->getPve()->getApi()->get($this->getPathAdditional(), $params);
}
https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/rrddata
Rrddata requires timeframe.
Timeframe is a required parameter for rrddata
hour | day | week | month | year
enumWithout timeframe null will always be returned here.
I tried to open a PR, but cannot commit to a branch, here's my changes in Proxmox/Api/Nodes/Node/Rrddata.php