C chenym Member Oct 25, 2022 50 1 8 Oct 31, 2022 #1 Hello, I want to call the PVE API to calculate the same data as the chart storage on the PVE homepage, but I can't calculate it. Can you tell me how to calculate this data, or can you provide me with the front-end source code?
Hello, I want to call the PVE API to calculate the same data as the chart storage on the PVE homepage, but I can't calculate it. Can you tell me how to calculate this data, or can you provide me with the front-end source code?
fiona Proxmox Staff Member Staff member Aug 1, 2019 6,543 1,953 248 Oct 31, 2022 #2 Hi, it's calculated from the information from the /cluster/resources API endpoint. Here is the relevant code: https://git.proxmox.com/?p=pve-mana...91e4bfc7823258aa50ec9076c1c7cf3d;hb=HEAD#l145
Hi, it's calculated from the information from the /cluster/resources API endpoint. Here is the relevant code: https://git.proxmox.com/?p=pve-mana...91e4bfc7823258aa50ec9076c1c7cf3d;hb=HEAD#l145
C chenym Member Oct 25, 2022 50 1 8 Nov 1, 2022 #3 Thank you very much. My problem has been solved. fiona said: Hi, it's calculated from the information from the /cluster/resources API endpoint. Here is the relevant code: https://git.proxmox.com/?p=pve-mana...91e4bfc7823258aa50ec9076c1c7cf3d;hb=HEAD#l145 Click to expand...
Thank you very much. My problem has been solved. fiona said: Hi, it's calculated from the information from the /cluster/resources API endpoint. Here is the relevant code: https://git.proxmox.com/?p=pve-mana...91e4bfc7823258aa50ec9076c1c7cf3d;hb=HEAD#l145 Click to expand...