From: Franciszek Gorski Date: Fri, 26 Jul 2019 09:30:48 +0000 (+0200) Subject: [731-Kea_statistics_enhancements] X-Git-Tag: Kea-1.6.1~10^2~10 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=88ab289e7033570de10dfeffa94cbec5fb179a44;p=thirdparty%2Fkea.git [731-Kea_statistics_enhancements] --- diff --git a/doc/api/statistic-set-max-sample-age-all.json b/doc/api/statistic-set-max-sample-age-all.json new file mode 100644 index 0000000000..6a4513d172 --- /dev/null +++ b/doc/api/statistic-set-max-sample-age-all.json @@ -0,0 +1,14 @@ +{ + "name": "statistic-set-max-sample-age-all", + "brief": "The statistic-set-max-sample-age-all command sets time based limit for all statistics. It takes a single integer parameter called duration.", + "description": "See ", + "support": [ "kea-dhcp4", "kea-dhcp6" ], + "avail": "1.6.0", + "cmd-syntax": "{ + \"command\": \"statistic-set-max-sample-age-all\", + \"arguments\": { + \"duration\": 1245 + } +}", + "cmd-comment": "The server will respond with message about successfully setted limits for all statistics, with a result set to 0 indicating success and an empty parameters field." +} diff --git a/doc/api/statistic-set-max-sample-age.json b/doc/api/statistic-set-max-sample-age.json new file mode 100644 index 0000000000..eb8418e94e --- /dev/null +++ b/doc/api/statistic-set-max-sample-age.json @@ -0,0 +1,15 @@ +{ + "name": "statistic-set-max-sample-age", + "brief": "The statistic-set-max-sample-age command sets time based limit for single statistic. It takes two parameters: a string called name and an integer value called duration.", + "description": "See ", + "support": [ "kea-dhcp4", "kea-dhcp6" ], + "avail": "1.6.0", + "cmd-syntax": "{ + \"command\": \"statistic-set-max-sample-age\", + \"arguments\": { + \"name\": \"pkt4-received\", + \"duration\": 1245 + } +}", + "cmd-comment": "The server will respond with message about successfully setted limit for the given statistic, with a result set to 0 indicating success and an empty parameters field." +} diff --git a/doc/api/statistic-set-max-sample-count-all.json b/doc/api/statistic-set-max-sample-count-all.json new file mode 100644 index 0000000000..3b62140e02 --- /dev/null +++ b/doc/api/statistic-set-max-sample-count-all.json @@ -0,0 +1,14 @@ +{ + "name": "statistic-set-max-sample-count-all", + "brief": "The statistic-set-max-sample-count-all command sets size based limit for all statistics. It takes a single integer parameter called max-samples.", + "description": "See ", + "support": [ "kea-dhcp4", "kea-dhcp6" ], + "avail": "1.6.0", + "cmd-syntax": "{ + \"command\": \"statistic-set-max-sample-count-all\", + \"arguments\": { + \"max-samples\": 100 + } +}", + "cmd-comment": "The server will respond with message about successfully setted limits for all statistics, with a result set to 0 indicating success and an empty parameters field." +} diff --git a/doc/api/statistic-set-max-sample-count.json b/doc/api/statistic-set-max-sample-count.json new file mode 100644 index 0000000000..d0ddefbece --- /dev/null +++ b/doc/api/statistic-set-max-sample-count.json @@ -0,0 +1,15 @@ +{ + "name": "statistic-set-max-sample-count", + "brief": "The statistic-set-max-sample-count command sets size based limit for single statistic. It takes two parameters: a string called name and an integer value called max-samples.", + "description": "See ", + "support": [ "kea-dhcp4", "kea-dhcp6" ], + "avail": "1.6.0", + "cmd-syntax": "{ + \"command\": \"statistic-set-max-sample-count\", + \"arguments\": { + \"name\": \"pkt4-received\", + \"max-samples\": 100 + } +}", + "cmd-comment": "The server will respond with message about successfully setted limit for the given statistic, with a result set to 0 indicating success and an empty parameters field." +} diff --git a/doc/sphinx/api/cmds-list b/doc/sphinx/api/cmds-list index 0289e4d431..aa8c08ad5f 100644 --- a/doc/sphinx/api/cmds-list +++ b/doc/sphinx/api/cmds-list @@ -37,7 +37,7 @@ lease6-get-all lease6-update lease6-wipe leases-reclaim -libreload +libreloadAle trzeba list-commands network4-add network4-del @@ -117,6 +117,10 @@ statistic-remove statistic-remove-all statistic-reset statistic-reset-all +statistic-set-max-sample-age +statistic-set-max-sample-age-all +statistic-set-max-sample-count +statistic-set-max-sample-count-all subnet4-add subnet4-del subnet4-get