Status Monitoring APIs
- 1 Listing all registered workers
- 2 Adding a worker
- 3 Deleting a worker
- 4 Fetching the general details of a worker
- 5 Testing the connection of a worker
- 6 Fetching the history statistics details of a worker
- 7 Fetching the details of all the Siddhi applications of a specific worker
- 8 Getting the text view and the flow of a Siddhi application
- 9 Enabling/disabling Siddhi application statistics
- 10 Fetching the history statistics details of a Siddhi application
- 11 Fetching the component list and the component current metrics
- 12 Fetching the history statistics details of a Siddhi application component
- 13 Fetching the user roles of a specific user
- 14 Reading dashboard configuration details of the currently running dashboard server
- 15 Fetching the HA status
Listing all registered workers
Overview
Description | Lists all the workers registered in the Status Dashboard. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format | application/json |
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers" -H "accept: application/json" -u admin:admin -kSample output
Response
Adding a worker
Overview
Description | Adds a worker node to the Status Dashboard. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
curl command syntax
Sample curl command
curl -X POST "https://localhost:9643/monitoring/apis/workers" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"host\": \"localhost\", \"port\": \"9443\"}" -u admin:admin -kSample output
Response
Deleting a worker
Overview
Description | Deletes the specified worker from the Status Dashboard. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node that needs to be removed from the Status Dashboard. |
curl command syntax
Sample curl command
curl -X DELETE "https://localhost:9643/monitoring/apis/workers/localhost_9095" -H "accept: application/json" -u admin:admin -kSample output
Response
Fetching the general details of a worker
Overview
Description | Fetches the general details of the specified worker. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node of which the general details need to be fetched. |
curl command syntax
Sample curl command
curl -X POST "https://localhost:9643/monitoring/apis/workers/localhost_9444/system-details" -H "accept: application/json" -u admin:admin -kSample output
Response
Testing the connection of a worker
Overview
Description | Tests the connection of the specified user. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node of which the connection needs to be tested. |
curl command syntax
Sample curl command
curl -X POST "https://localhost:9643/monitoring/apis/workers/localhost_9444/status" -H "accept: application/json" -u admin:admin -kSample output
Response
Fetching the history statistics details of a worker
Overview
Description | Fetches the history statistics details of the specified worker. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node of which the history statistics details need to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers/localhost_9444/history?period=5min" -H "accept: application/json" -u admin:admin -k Sample output
Response
Fetching the details of all the Siddhi applications of a specific worker
Overview
Description | Fetches details relating to all the Siddhi applications of a specific worker. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node for which the details of the Siddhi applications assigned need to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers/localhost_9444/siddhi-apps" -H "accept: application/json" -u admin:admin -kSample output
Response
Getting the text view and the flow of a Siddhi application
Overview
Description | Fetches the text view and the flow of a specified Siddhi application. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers/localhost_9095/siddhi-apps/TestSiddhiApp" -H "accept: application/json" -u admin:admin -kSample output
Response
Enabling/disabling Siddhi application statistics
Overview
Description | Enables/disables statistics for the Siddhi applications of a specified worker node. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node with the Siddhi applications for which statistics need to be enabled/disabled. |
curl command syntax
Sample curl command
curl -X PUT "https://localhost:9643/monitoring/apis/workers/localhost_9444/siddhi-apps/TestSiddhiApp/statistics" -H "accept: application/json" -H "Content-Type:application/json" -d "{statsEnable: false}" -u admin:admin -k -vSample output
Response
Fetching the history statistics details of a Siddhi application
Overview
Description | Fetches the history statistics details of a specified Siddhi application. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node with the Siddhi application of which the history statistics details need to be fetched. |
| The name of the Siddhi application of which the history statistics details need to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers/localhost_9444/siddhi-apps/TestSiddhiApp/history?period=5min" -H "accept: application/json" -u admin:admin -kSample output
Response
Fetching the component list and the component current metrics
Overview
Description | Fetches the component list and component current metrics of a specified Siddhi application. |
|---|---|
API Context |
|
HTTP Method | GET |
Request/Response format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter Description
Parameter | Description |
|---|---|
| The ID of the worker node with the Siddhi application of which the component list and component current metrics need to be fetched. |
| The Siddhi application of which the component list and component current metrics need to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/monitoring/apis/workers/localhost_9444/siddhi-apps/TestSiddhiApp/components" -H "accept: application/json" -u admin:admin -k -vSample output
Response
Fetching the history statistics details of a Siddhi application component
Overview
Description | Fetches the history statistics details for a specified component of a specified Siddhi application. |
|---|---|
API Context |
|
HTTP Method |
|