pmgsh get /statistics/mail concept

MartinH

Active Member
Aug 28, 2019
17
1
43
Hello,

i don't understand the API statistics concept. :(

Now = 1569500365

So: " pmgsh get /statistics/mail -starttime 1569500365 " should be zero. But it isn't :(.

I would like to see the mail statistic for last five minutes. So 1569500365 - 300, but it show the same data.

What am I doing wrong?

Thanks for help.
 
for that purpose this api endpoint is probably not the right one as the resolution is though for daily/monthly/yearly statistics

but check the '/statistics/recent' endpoint, i believe this is more what you want
 
for that purpose this api endpoint is probably not the right one as the resolution is though for daily/monthly/yearly statistics

but check the '/statistics/recent' endpoint, i believe this is more what you want

Thanks for quick answer.

That's looks like what I need, but maybe to many informations :)

pmgsh get /statistics/recent -hours 1 -timespan 300

The last element in array is what I need.

Is there a way to get only statistic for last five minutes?

The API Viewer is great ;)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!