mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add default dashboard/report templates as JSON
This commit is contained in:
parent
14c22ef251
commit
ce961e5ce0
2 changed files with 330 additions and 0 deletions
186
scripts/templates/report/default.json
Normal file
186
scripts/templates/report/default.json
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
{
|
||||
"name" : "Default Report",
|
||||
"components" : [
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_local_talkers",
|
||||
"i18n_name" : "report.top_local_hosts",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_local_talkers",
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "ip", "data_type" : "host", "i18n_name" : "host_details.host" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_remote_hosts",
|
||||
"i18n_name" : "report.top_remote_hosts",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_remote_destinations",
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "ip", "data_type" : "host", "i18n_name" : "host_details.host" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_clients",
|
||||
"i18n_name" : "db_search.top_clients",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "clients",
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "cli_ip", "data_type" : "host", "i18n_name" : "host_details.host" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_receiver_networks",
|
||||
"i18n_name" : "report.top_receiver_networks",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_receiver_networks",
|
||||
"aggregated" : true,
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "network", "data_type" : "network", "i18n_name" : "network" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_sender_networks",
|
||||
"i18n_name" : "report.top_sender_networks",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_sender_networks",
|
||||
"aggregated" : true,
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "network", "data_type" : "network", "i18n_name" : "network" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_servers",
|
||||
"i18n_name" : "db_search.top_servers",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "servers",
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "srv_ip", "data_type" : "host", "i18n_name" : "host_details.host" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_receiver_as",
|
||||
"i18n_name" : "report.top_receiver_as",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_receiver_as",
|
||||
"aggregated" : true,
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : [
|
||||
{ "id" : "asn", "data_type" : "asn", "i18n_name" : "as" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"component" : "simple-table",
|
||||
"id" : "top_sender_as",
|
||||
"i18n_name" : "report.top_sender_as",
|
||||
"width" : 4,
|
||||
"height" : 4,
|
||||
"time_window" : "day",
|
||||
"time_offset" : "",
|
||||
"params" : {
|
||||
"url" : "/lua/pro/rest/v2/get/db/historical_db_search.lua",
|
||||
"url_params" : {
|
||||
"query_preset" : "top_sender_as",
|
||||
"aggregated" : true,
|
||||
"start" : 0,
|
||||
"length" : 20
|
||||
},
|
||||
"table_type" : "db_search",
|
||||
"columns" : {
|
||||
{ "id" : "asn", "data_type" : "asn", "i18n_name" : "as" },
|
||||
{ "id" : "total_bytes", "data_type" : "bytes", "i18n_name" : "volume" }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue