mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Add rest/v1/get/timeseries/ts API
This commit is contained in:
parent
8ed40ee159
commit
ac24563f15
2 changed files with 219 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ rest_utils.consts_invalid_interface = -2
|
|||
rest_utils.consts_not_granted = -3
|
||||
rest_utils.consts_invalid_host = -4
|
||||
rest_utils.consts_invalid_args = -5
|
||||
rest_utils.consts_internal_error = -6
|
||||
|
||||
local rc_str_consts = {
|
||||
[rest_utils.consts_ok] = "OK",
|
||||
|
|
@ -25,6 +26,7 @@ local rc_str_consts = {
|
|||
[rest_utils.consts_not_granted] = "NOT_GRANTED",
|
||||
[rest_utils.consts_invalid_host] = "INVALID_HOST",
|
||||
[rest_utils.consts_invalid_args] = "INVALID_ARGUMENTS",
|
||||
[rest_utils.consts_internal_error] = "INTERNAL_ERROR",
|
||||
}
|
||||
|
||||
function rest_utils.rc(ret_code, response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue