]> git.proxmox.com Git - pmg-api.git/commit
api: statistics: add common method for details
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 2 Feb 2021 13:03:15 +0000 (14:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Feb 2021 09:42:38 +0000 (10:42 +0100)
commite89b61c5190e3e374c2c3bcb3dce444c64c718cf
tree50c51513dc6d820ab660e48536421187f75c2b9e
parentd865dfba11fe7a8a3a3f3ebb6ad7f08c1479c956
api: statistics: add common method for details

This patch changes adds a new method, which yields the detail statistics
for a particular address.

Depending on the provided type argument it returns the same information as
the contact/sender/receiver detail calls.

This allows the statistics to be displayed for addresses containing
'/' in their localpart, once this is permitted in our api schema.

the idea follows a similar change for the user blocklists in
e8d909c11faeb5a4f84f39ef50e0eaf8ea65046d

By adding a new API method we can eventually drop the old methods with 7.0

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/API2/Statistics.pm