mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Add new table components in alerts page: host; interface; mac; user; system;
This commit is contained in:
parent
7f41b2d4a7
commit
faa69f3c85
8 changed files with 323 additions and 4 deletions
53
httpdocs/tables_config/alert_user.json
Normal file
53
httpdocs/tables_config/alert_user.json
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"id": "alert_flow",
|
||||
"data_url": "lua/rest/v2/get/user/alert/list.lua",
|
||||
"use_current_page": false,
|
||||
"enable_search": true,
|
||||
"paging": true,
|
||||
"rsp_records_field": "records",
|
||||
"columns": [
|
||||
{
|
||||
"id": "actions",
|
||||
"title_i18n": "actions",
|
||||
"sortable": false,
|
||||
"sticky": true,
|
||||
"class": ["text-nowrap", "text-center"],
|
||||
"render_v_node_type": "button_list",
|
||||
"button_def_array": [
|
||||
{ "id": "info", "icon": "fas fa fa-search-plus", "class":["link-button"], "title_i18n": "info", "event_id": "click_button_info" },
|
||||
{ "id": "historical_data", "icon": "fas fa-stream", "title_i18n": "db_explorer.historical_data", "class":["link-button"], "event_id": "click_button_historical_flows" },
|
||||
{ "id": "acknowledge", "icon": "fas fa fa-user-check", "title_i18n": "acknowledge", "class":["link-button"], "event_id": "click_button_acknowledge" },
|
||||
{ "id": "disable", "icon": "fas fa fa-bell-slash", "title_i18n": "disable", "class":["link-button"], "event_id": "click_button_disable" },
|
||||
{ "id": "settings", "icon": "fas fa fa-cog", "title_i18n": "settings", "class":["link-button"], "event_id": "click_button_settings" },
|
||||
{ "id": "remove", "icon": "fas fa fa-trash", "title_i18n": "remove", "class":["link-button"], "event_id": "click_button_remove" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "show_alerts.alert_datetime",
|
||||
"data_field": "tstamp",
|
||||
"sortable": true,
|
||||
"render_type": "formatValueLabel",
|
||||
"class": ["text-center", "text-nowrap"]
|
||||
},
|
||||
{
|
||||
"title_i18n": "score",
|
||||
"data_field": "score",
|
||||
"sortable": true,
|
||||
"render_type": "formatValueLabel",
|
||||
"class": ["text-center"]
|
||||
},
|
||||
{
|
||||
"title_i18n": "alerts_dashboard.alert",
|
||||
"data_field": "msg",
|
||||
"sortable": false,
|
||||
"render_type": "formatNameDescription",
|
||||
"class": ["text-nowrap"]
|
||||
},
|
||||
{
|
||||
"title_i18n": "description",
|
||||
"data_field": "description",
|
||||
"sortable": false,
|
||||
"class": ["text-nowrap"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue