ntopng/httpdocs/tables_config/alert_interface.json
2025-05-21 17:11:17 +02:00

75 lines
2.3 KiB
JSON

{
"id": "alert_interface",
"data_url": "lua/rest/v2/get/interface/alert/list.lua",
"use_current_page": false,
"enable_search": false,
"paging": true,
"rsp_records_field": "records",
"rsp_query_info_field": "stats",
"display_empty_rows": true,
"columns": [
{
"id": "actions",
"title_i18n": "actions",
"sortable": false,
"sticky": true,
"class": ["text-nowrap", "text-center"],
"render_v_node_type": "button_list",
"min-width" : "80px",
"button_def_array": [
{ "id": "info", "icon": "fas fa fa-search-plus", "title_i18n": "info", "event_id": "click_button_info" },
{ "id": "historical_data", "icon": "fas fa-stream", "title_i18n": "db_explorer.historical_data", "event_id": "click_button_historical_flows" },
{ "id": "acknowledge", "icon": "fas fa fa-user-check", "title_i18n": "acknowledge", "event_id": "click_button_acknowledge" },
{ "id": "disable", "icon": "fas fa fa-bell-slash", "title_i18n": "disable", "event_id": "click_button_disable" },
{ "id": "settings", "icon": "fas fa fa-cog", "title_i18n": "settings", "event_id": "click_button_settings" },
{ "id": "remove", "icon": "fas fa fa-trash", "title_i18n": "remove", "event_id": "click_button_remove" }
]
},
{
"title_i18n": "show_alerts.alert_datetime",
"data_field": "tstamp",
"min-width" : "115px",
"sortable": true,
"render_type": "formatValueLabelEngaged",
"class": ["text-center", "text-nowrap"]
},
{
"title_i18n": "score",
"data_field": "score",
"min-width" : "80px",
"sortable": true,
"render_type": "formatValueLabel",
"class": ["text-center"]
},
{
"title_i18n": "duration",
"data_field": "duration",
"min-width" : "95px",
"sortable": true,
"render_type": "secondsToTime",
"class": ["text-center", "text-nowrap"]
},
{
"title_i18n": "alerts_dashboard.alert",
"data_field": "msg",
"sortable": false,
"min-width" : "155px",
"render_type": "formatNameDescription",
"class": ["text-nowrap"]
},
{
"title_i18n": "interface",
"data_field": "subtype",
"min-width" : "155px",
"sortable": true,
"render_type": "formatSubtypeValueLabel",
"class": ["text-nowrap"]
},
{
"title_i18n": "description",
"data_field": "description",
"sortable": false,
"class": ["text-nowrap"]
}
]
}