database

clean_db: clear out DB items like logs, metrics and traces

MethodPath
POST/api/v1/db/clean

Body Fields

FieldType
checkbool
timestampTimestamp

get_traffic: summary of metrics subsystem traffic

MethodPath
GET/api/v1/db/traffic

get_trace_list: list all executed traces and their timestamps

MethodPath
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

MethodPath
POST/api/v1/traces/remove/id:u32/check:bool

Params

ParamType
idu32
checkbool

Examples

cURL

curl -X POST -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/traces/remove/4/false

Output

true