Commit graph

315 commits

Author SHA1 Message Date
Alfredo Cardigliano
8625f2db47 Comment fix 2020-06-16 10:24:01 +02:00
Alfredo Cardigliano
d5453fe972 Fix rest/v1/get/host/l7/stats content type 2020-06-09 13:07:55 +02:00
Simone Mainardi
1d22c3c232 Adjusts naming conventions for rest/v1/get/alert/type/counters.lua 2020-05-29 18:05:35 +02:00
Simone Mainardi
f780152f89 Adjusts naming conventions for rest/v1/get/alert/severity/counters.lua 2020-05-29 18:02:29 +02:00
Simone Mainardi
6ea0531be0 Adjusts types and severities returned by rest/v1/get/alert/data.lua 2020-05-29 17:52:55 +02:00
Simone Mainardi
0d8012d9ec Adjusts naming convention for rest/v1/get/flow/l7/counters.lua 2020-05-29 17:42:31 +02:00
Alfredo Cardigliano
6eec119083 Return a standard json format for arrays 2020-05-29 12:47:22 +02:00
Alfredo Cardigliano
b56b14b534 Alert ts endpoint fixes 2020-05-29 11:20:45 +02:00
Alfredo Cardigliano
49ac0c498a Comment 2020-05-29 09:14:53 +02:00
Alfredo Cardigliano
522fc65b55 Add rest/v1/get/host/active.lua REST API (#3954) 2020-05-28 19:02:19 +02:00
Simone Mainardi
e2d5497d52 Implement endpoint to list all interfaces of an host
Implements #3955
2020-05-28 18:57:08 +02:00
Simone Mainardi
fba483b869 Implement getter for protocol constants
Implements ##3945
2020-05-28 17:13:19 +02:00
Simone Mainardi
3afb189336 Shortens category_id to cat_id in a rest json response 2020-05-28 17:01:04 +02:00
Simone Mainardi
38067e4ef8 Adds category id to the rest application consts getter
Implements #3944
2020-05-28 16:58:19 +02:00
Simone Mainardi
04945cc72f Implement getter for categories constants
Implements #3944
2020-05-28 16:51:57 +02:00
Simone Mainardi
8b85f0dd9e Implement getter for application constants
Implements #3944
2020-05-28 16:44:59 +02:00
Simone Mainardi
63628af5bd Simplifies getter for alert constants 2020-05-28 15:54:07 +02:00
Alfredo Cardigliano
1dffd35f59 Add rest/v1/get/interface/address.lua REST API (#3956) 2020-05-28 15:53:35 +02:00
Simone Mainardi
699ec1e2fb Implement getter for alert severity constants
Implements #3946
2020-05-28 15:51:39 +02:00
Alfredo Cardigliano
1674137782 Add rest/v1/get/flow/active.lua REST API (#3951) 2020-05-28 15:07:32 +02:00
Alfredo Cardigliano
192a043ae5 Remove iface_ndpi_stats.lua (use the REST API) 2020-05-28 11:21:43 +02:00
Alfredo Cardigliano
9348e51924 Add rest/v1/get/host/l7/stats.lua REST API (#3953) 2020-05-28 10:44:07 +02:00
Alfredo Cardigliano
00ca63bc71 Add rest/v1/get/interface/l7/stats.lua REST API (#3953) 2020-05-28 10:12:57 +02:00
Alfredo Cardigliano
e888188c64 Return NOT_FOUND if host not found (fix #3994) 2020-05-27 17:45:56 +02:00
Simone Mainardi
073a8c3dd1 Implement getter for alert constants
Implements #3946
2020-05-27 15:26:58 +02:00
Alfredo Cardigliano
3e5eca0ee5 Filter rest/v1/get/alert/data.lua based on epoch_begin/epoch_end/alert_type/alert_severity (#3952) 2020-05-27 12:53:28 +02:00
Alfredo Cardigliano
97046a8a97 Add rest/v1/get/alert/severity/counters.lua REST API 2020-05-27 11:05:59 +02:00
Alfredo Cardigliano
9814c91bfb Add filters to rest/v1/get/alert/type/counters.lua REST API 2020-05-27 10:53:07 +02:00
Alfredo Cardigliano
7c977a3ebc Add rest/v1/get/alert/type/counters.lua API REST (implement #3948) 2020-05-27 10:47:33 +02:00
Alfredo Cardigliano
dcaadc7a3d Add rest/v1/get/flow/l4/counters.lua rest/v1/get/flow/l7/counters.lua (implement #3947 #3950) 2020-05-26 15:13:37 +02:00
Alfredo Cardigliano
21fe9aa490 Add v1/get/alert/ts.lua REST API (implement #3943 2020-05-26 12:28:33 +02:00
Alfredo Cardigliano
09ea665c9b Improve v1/get/alert/data.lua endpoint 2020-05-26 11:11:20 +02:00
Alfredo Cardigliano
c24ea73dec Add rest/v1/set/pool/config rest/v1/set/scripts/config REST API 2020-05-20 14:51:02 +02:00
Alfredo Cardigliano
ac24563f15 Add rest/v1/get/timeseries/ts API 2020-05-20 14:36:21 +02:00
Alfredo Cardigliano
e45ae9bf7a Add missing interface select 2020-05-20 13:04:00 +02:00
Alfredo Cardigliano
5a753d8727 Add v1/get/alert/data rest API, alert_consts optimization 2020-05-20 11:02:44 +02:00
Alfredo Cardigliano
2f4d47f064 Add v1/get/pcap/live_extraction.lua API 2020-05-18 19:28:30 +02:00
Alfredo Cardigliano
7335b3b2c9 Add v1/get/pool/config v1/get/scripts/config REST API 2020-05-18 18:54:58 +02:00
Alfredo Cardigliano
b266ab9335 Add v1/get/system/stats v1/get/host/mud REST API 2020-05-18 17:46:50 +02:00
Alfredo Cardigliano
5ebd5ad5c1 Add v1/get/interface REST API 2020-05-18 17:15:17 +02:00
Simone Mainardi
3258fa074e Additional fixes for interface validation 2020-05-18 13:02:56 +02:00
Luca Deri
ccf76ca54d Added "real" intefaceId validation
Initial work towards REST API
2020-05-17 20:47:46 +02:00
Simone Mainardi
77a32cb19b Updates ts.lua for queries with different timezones
Fixes #3924
2020-05-13 16:39:37 +02:00
emanuele-f
af842e4aa6 Cleanup unnecessary CSRF tokens passed 2020-05-08 12:56:58 +02:00
emanuele-f
947fee33b2 Write 0 in timeseries for unreachable monitored hosts 2020-04-17 16:19:56 +02:00
emanuele-f
35be58ede9 Fix speed test alerts not generated 2020-04-17 12:22:45 +02:00
Simone Mainardi
e487427aab Refactors alert_utils and enterprise_alert_utils
Addresses #3720

Alerts Refactor: alert_utils as module

Alerts Refactor: notify_ntopng_start and notify_ntopng_stop

Alerts Refactor: processAlertNotifications

Alerts Refactor: checkStoreAlertsFromC

Alerts Refactor: formatAlertNotification

Alerts Refactor: notification_timestamp_rev

Alerts Refactor: formatAlertMessage

Alerts Refactor: getConfigsetAlertLink

Alerts Refactor: alertNotificationActionToLabel

Alerts Refactor: flushAlertsData

Alerts Refactor: disableAlertsGeneration

Alerts Refactor: newAlertsWorkingStatus and other

Alerts Refactor: drawAlerts

Alerts Refactor: drawAlertTables

Alerts Refactor: printAlertTables

Alerts Refactor: checkDeleteStoredAlerts

Alerts Refactor: getUnpagedAlertOptions

Alerts Refactor: getTabParameters

Alerts Refactor: getAlerts

Alerts Refactor: getNumAlerts

Alerts Refactor: performAlertsQuery

Alerts Refactor: sec2granularity

Alerts Refactor: granularity2id

Alerts Refactor: granularity2sec

Alerts Refactor: alertEngineLabel

Alerts Refactor: alertEngine

Alerts Refactor: alertEngineRaw

Alerts Refactor: alertTypeDescription

Alerts Refactor: alertType

Alerts Refactor: alertTypeLabel

Alerts Refactor: alertTypeRaw

Alerts Refactor: alertSeverity

Alerts Refactor: alertSeverityLabel

Alerts Refactor: alertSeverityRaw

Alerts Refactor: get_make_room_keys

Alerts Refactor: enterprise_alert_utils
2020-04-10 14:03:20 +02:00
Simone Mainardi
3744ace4f8 Refactors graph_utils and nv_graph_utils
Addresses #3720

Refactor: create module graph_utils

Refactor: get_timeseries_layout

Refactor: get_default_timeseries

Refactor: getDeviceCommonTimeseries

Refactor: printCategoryDropdownButton

Refactor: printPoolChangeDropdown

Refactor: poolDropdown

Refactor: printProtocolQuota

Refactor: printGraphTopFlows

Refactor: drawGraphs

Refactor: printNotes

Refactor: getMinZoomResolution

Refactor: printSeries

Refactor: zoom_vals

Refactor: getZoomDuration

Refactor: getZoomAtPos

Refactor: stackedProgressBars

Refactor: percentageBar

Refactor: breakdownBar

Refactor: getProtoVolume

Refactor: normalizeSeriesPoints

Refactor: nv_graph_utils

Refactor: extendLabels

Refactor: getAlertGraphLink

Refactor: performCustomQuery

Refactor: drawProGraph

Refactor: unifies nv_graph_utils and graph_utils
2020-04-10 09:47:32 +02:00
Simone Mainardi
53a4d796f5 Fixes wrong response of REST endpoint when no host is found
Fixes #3709
2020-04-08 18:24:06 +02:00
gabryon99
ce0e3d2d11 fix for system view 2020-03-24 12:39:08 +01:00