Profiles can be managed using REST API.
Profile creation
A new profile can be created with REST API query /api/profile/create
https://hostname:8090/api/profile/create { "name": "profile1", "rate": "1", "metrics": ["4", "11"], "rules": ["13"] }
Where
- name – profile name
- rate – metric acquisition rate
- metrics – metric identifiers list
- rules – rule identifiers list
Profile changing
A profile can be changed with REST API query /api/profile/update
https://hostname:8090/api/profile/update { "id": "18", "name": "profile1", "rate": "1", "metrics": ["4", "11"], "rules": ["13"] }
Where
- id – profile identifier
- name – profile name
- rate – metric acquisition rate
- metrics – metric identifiers list
- rules – rule identifiers list
Profile deletion
A profile can be deleted with REST API query /api/profile/delete
https://hostname:8090/api/profile/delete { "id": "18" }
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 REST API query /api/profile/list
https://hostname:8090/api/profile/list { "id": "18" }
Where
- id – profile identifier
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 query.