mirror of
https://github.com/Telecominfraproject/wlan-cloud-analytics.git
synced 2026-01-27 10:22:33 +00:00
Adding WifiClientHistory.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "RESTAPI/RESTAPI_board_handler.h"
|
||||
#include "RESTAPI/RESTAPI_board_devices_handler.h"
|
||||
#include "RESTAPI/RESTAPI_board_timepoint_handler.h"
|
||||
#include "RESTAPI/RESTAPI_wificlienthistory_handler.h"
|
||||
|
||||
namespace OpenWifi {
|
||||
|
||||
@@ -18,7 +19,8 @@ namespace OpenWifi {
|
||||
RESTAPI_board_devices_handler,
|
||||
RESTAPI_board_timepoint_handler,
|
||||
RESTAPI_board_handler,
|
||||
RESTAPI_board_list_handler
|
||||
RESTAPI_board_list_handler,
|
||||
RESTAPI_wificlienthistory_handler
|
||||
>(Path,Bindings,L, S, TransactionId);
|
||||
}
|
||||
|
||||
@@ -30,7 +32,8 @@ namespace OpenWifi {
|
||||
RESTAPI_board_devices_handler,
|
||||
RESTAPI_board_timepoint_handler,
|
||||
RESTAPI_board_handler,
|
||||
RESTAPI_board_list_handler
|
||||
RESTAPI_board_list_handler,
|
||||
RESTAPI_wificlienthistory_handler
|
||||
>(Path, Bindings, L, S, TransactionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -221,11 +221,12 @@ tree() {
|
||||
}
|
||||
|
||||
createboard() {
|
||||
payload="{ \"name\" : \"MegaLab\", \"venueList\" : [ { \"id\" : \"$1\" , \"name\" : \"MegaLab Venue\" , \"retention\" : 86000 , \"interval\" : 60, \"monitorSubVenues\" : true } ] }"
|
||||
payload="{ \"name\" : \"Demo\", \"venueList\" : [ { \"id\" : \"$1\" , \"name\" : \"Demo\" , \"retention\" : 86000 , \"interval\" : 60, \"monitorSubVenues\" : true } ] }"
|
||||
curl ${FLAGS} -X POST "https://${OWANALYTICS}/api/v1/board/0" \
|
||||
-H "Accept: application/json" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" > ${result_file}
|
||||
-H "Authorization: Bearer ${token}" \
|
||||
-d "$payload" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user