Viewing endpoint level statistics by using REST Monitoring APIs
System administrators can view monitoring statistics by using REST Monitoring APIs.
System administrators can view endpoint level statistics by using the Amlen WebUI, by using a REST Monitoring API, or by using an external monitoring application. For more information about using the Amlen WebUI to view endpoint level statistics, see Viewing endpoint level statistics by using the GUI. For more information about using an external application to view endpoint level statistics, see Viewing endpoint level statistics by using an external application.
-
- Name
- String
-
- IPAddr
- String
-
- Enabled
- Boolean
-
- Total
- Numeric
-
- Active
- Numeric
-
- Messages
- Numeric
-
- Bytes
- Numeric
-
- LastErrorCode
- Numeric
-
- ConfigTime
- Numeric
-
- BadConnections
- Numeric
The following example uses cURL to show how a GET method is used to create the most recent statistics for all endpoints:
curl -X GET http://127.0.0.1:9089/ima/v1/monitor/Endpoint?SubType=Current
The following example shows a successful example response to the GET method that was used to create the most recent statistics for all endpoints:
{
"Version":"v1",
"Endpoint": [
{
"Name":"DemoEndpoint","IPAddr":"ALL","Enabled":false,"Total":0,"Active":0,
"Messages":0,"Bytes":0,"LastErrorCode":0,
"ConfigTime":"2015-12-11T18:29:15.519Z","ResetTime":null,"BadConnections":0
},
{
"Name":"DemoMqttEndpoint","IPAddr":"ALL","Enabled":false,"Total":0,"Active":0,
"Messages":0,"Bytes":0,"LastErrorCode":0,
"ConfigTime":"2015-12-11T18:29:15.519Z","ResetTime":null,"BadConnections":0
},
{
"Name":"!MQConnectivityEndpoint","IPAddr":"/var/messagesight/data/MQConnectivityEndpoint_34109b4a50a7",
"Enabled":true, "Total":0,"Active":0,"Messages":0,"Bytes":0,"LastErrorCode":0,
"ConfigTime":"2016-04-27T16:42:33.464-05:00","ResetTime":null,"BadConnections":0
}
] }
!MQConnectivityEndpoint
is displayed even if MQConnectivity is
not enabled. !MQConnectivityEndpoint
is an internal pre-configured
endpoint that cannot be changed. The following example uses cURL to show how a GET method is used to create the most recent statistics about an endpoint called DemoEndpoint:
curl -X GET http://127.0.0.1:9089/ima/v1/monitor/Endpoint?Name=DemoEndpoint%26SubType=Current
The following example shows a successful example response to the GET method that was used to create the most recent statistics about an endpoint called DemoEndpoint:
{ "Version":"v1", "Endpoint": [ {
"Name":"DemoEndpoint","IPAddr":"ALL","Enabled":false,"Total":0,"Active":0,"Messages":0,"Bytes":0,"LastErrorCode":0,
"ConfigTime":"2015-12-11T18:29:15.519Z","ResetTime":null,"BadConnections":0 } ]
The following example uses cURL to show how a GET method is used to create statistics
about an internal pre-configured endpoint,
!MQConnectivityEndpoint
:
curl -X GET http://127.0.0.1:9089/ima/v1/monitor/Endpoint?Name=%21MQConnectivityEndpoint
The following example shows a successful example response to the GET method that was
used to create statistics about !MQConnectivityEndpoint
:
{
"Version":"v1", "Endpoint": [ { "Name":"!MQConnectivityEndpoint","IPAddr":"127.0.0.1",
"Enabled":true,"Total":0,"Active":0,"Messages":0,"Bytes":0,"LastErrorCode":0,"ConfigTime":"2016-04-27T16:42:33.464-05:00",
"ResetTime":null,"BadConnections":0 }]
}