Add default dashboard/report templates as JSON

This commit is contained in:
Alfredo Cardigliano 2023-08-14 10:40:54 +02:00
parent 14c22ef251
commit ce961e5ce0
2 changed files with 330 additions and 0 deletions

View 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" }
}
}
}
]
}