Perfmon/sensors/{sensorName}: GET
Gets the configuration details of a specific performance monitoring sensor.
Availability
Available on all IBM Storage Scale editions.
Description
The GET perfmon/sensors/{sensorName} request gets details of a specific performance monitoring sensor that is configured in the cluster. For more information about the fields in the data structures that are returned, see the topic mmperfmon command.
Request URL
https://<IP address or host name of API server>:<port>/scalemgmt/v2/perfmon/sensors/{sensorName}
where- perfmon/sensors/{sensorName}
- Specifies a particular performance monitoring sensor as the resource of this GET call. Required.
Request headers
Content-Type: application/json
Accept: application/json
Request parameters
The following parameters can be used in the request URL to customize the
request:
Parameter name | Description and applicable keywords | Required/optional |
---|---|---|
fields | Comma separated list of fields to be included in response. ':all:' selects all available fields. | Optional. |
sensorName | Name of the performance monitoring sensor. | Required. |
Request data
No request data.
Response data
{
"status": {
"code":ReturnCode",
"message":"ReturnMessage"
},
"performanceData": {}
}
For
more information about the fields in the following data structures, see the links at the end of this
topic.- "status":
- Return status.
- "message": "ReturnMessage",
- The return message.
- "code": ReturnCode
- The return code.
- "performanceData":
- The configuration details of the performance monitoring sensor.
Examples
The following example shows how to use the API command to get the details of the performance monitoring sensor Netstat.
Request URL:
curl -k -u admin:admin001 -X GET --header 'accept:application/json'
'https://198.51.100.1:443/scalemgmt/v2/perfmon/sensors/TCTDebugLweDestroyStats'
Response data:
Note: In the JSON data that is returned, the return code indicates whether the
command is successful. The response code 200 indicates that the command successfully retrieved the
information. Error code 400 represents an
invalid request and 500 represents internal server error.
{
"sensorConfig" : [ {
"component" : "TCT",
"defaultPeriod" : 10,
"defaultRestriction" : "",
"description" : "",
"enabledPerDefault" : true,
"generic" : true,
"minimumPeriod" : 1,
"period" : 10,
"restrict" : [ ],
"restrictionType" : "USERNODECLASS",
"sensorName" : "TCTDebugLweDestroyStats"
} ],
"status" : {
"code" : 200,
"message" : "The request finished successfully."
}
}