database
clean_db: clear out DB items like logs, metrics and traces
Method | Path |
POST | /api/v1/db/clean |
Body Fields
Field | Type |
check | bool |
timestamp | Timestamp |
get_traffic: summary of metrics subsystem traffic
Method | Path |
GET | /api/v1/db/traffic |
get_trace_list: list all executed traces and their timestamps
Method | Path |
GET | /api/v1/traces/list |
Examples
cURL
curl -X GET -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/traces/list
Output
[{"trace_id":4,"tstamp":1582703837},{"trace_id":5,"tstamp":1582721073}]
trace_remove: remove a trace, returns true if succeeded
Method | Path |
POST | /api/v1/traces/remove/id:u32/check:bool |
Params
Param | Type |
id | u32 |
check | bool |
Examples
cURL
curl -X POST -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/traces/remove/4/false
Output
true