Profile management¶
Profiles can be managed using Websocket API or REST API.
Profile creation¶
A new profile can be created with /api/profile/create
request:
API | Request | Response | Response status |
---|---|---|---|
WS API | 200 OK 400 Object not found 500 Persist exception | ||
REST API | 200 OK 400 Object not found 500 Persist exception |
Where
name
– profile namerate
– metric acquisition ratemetrics
– metric identifiers listrules
– rule identifiers list
Profile changing¶
A profile can be changed with /api/profile/update
request:
API | Request | Response | Response status |
---|---|---|---|
WS API | 200 OK 400 Object not found 500 Persist exception | ||
REST API | 200 OK 400 Object not found 500 Persist exception |
Where
id
– profile identifiername
– profile namerate
– metric acquisition ratemetric
s – metric identifiers listrules
– rule identifiers list
Profile deletion¶
A profile can be deleted with /api/profile/delete
request:
API | Request | Response | Response status |
---|---|---|---|
WS API | 200 OK 400 Object not found 500 Persist exception | ||
REST API | 200 OK 400 Object not found 500 Persist exception |
Where
id
– profile identifier
When a profile is deleted, its metrics acquisition is stopped on all nodes, for which that profile was set.
Obtaining profile information¶
A profile information can be obtained with /api/profile/list
request:
Where
id
– profile identifiername
– profile namerate
– metric acquisition ratemetrics
– metric identifiers listrules
– rule identifiers list
If profile Id is set, the response will contain only that profile information. If profile Id is not set, the response will contain information about all the profiles on backend server.
For every profile, the response contains the same fields as /api/profile/update
request.