mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Handles REST responses when require ing datasource classes
This commit is contained in:
parent
a449d43359
commit
013122482d
5 changed files with 98 additions and 89 deletions
19
scripts/lua/rest/v1/get/datasource/datasource_keys.lua
Normal file
19
scripts/lua/rest/v1/get/datasource/datasource_keys.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--
|
||||
-- (C) 2021 - ntop.org
|
||||
--
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Every datasource must be keyed using one of the following keys
|
||||
-- NOTE: integer IDs must be unique
|
||||
|
||||
local datasource_keys = {
|
||||
-- Keys for interface datasources coded in datasources/interface, datasources/host, etc
|
||||
interface_packet_distro = 0,
|
||||
}
|
||||
|
||||
-- ##############################################
|
||||
|
||||
return datasource_keys
|
||||
|
||||
-- ##############################################
|
||||
Loading…
Add table
Add a link
Reference in a new issue