You can obtain a list of metrics for a selected component type, such as STORAGE_CACHE.
Execution permission
Admin, Modify
Request line
GET baseURL/v1/objects/PerformanceComponent?$query={HQL}&type={E2ENodeType}&basePointNodeID={nodeID}&basePointNodeType={E2ENodeType}&pointTimeRange={range}&page={page}&pageSize={size}&baseTime={dateTime}&conflict={conflict}
Query parameters
The following table describes the values for the supported parameters of a query string:
|
Parameter |
Description |
|---|---|
|
$query={HQL} |
(Required) Using HQL. Specify the following parameters. MetricType ((Required) Only one value can be specified.) componentID ((Optional) Multiple values can be specified.) Filtering conditions: Specify using HQL standard. |
|
type={E2ENodeType} |
(Required) Specify the E2E node type. Filtering conditions: Checks whether the comparison target is equal to the value |
|
basePointNodeID={nodeID} |
(Required) Specify 1 or more base IDs. Filtering conditions: Checks whether the value is included in the comparison target. Multiple values separated by a comma (,) can be specified. |
|
basePointNodeType={E2ENodeType} |
(Required) Specify the E2E node type. Filtering conditions: Checks whether the comparison target is equal to the value |
|
pointTimeRange={range} |
(Required) Specify the time period to be displayed. Filtering conditions: Checks whether the comparison target is equal to the value |
|
page={page} |
(Optional) Specify the paging information (page to be obtained). Filtering conditions: Checks whether the comparison target is equal to the value |
|
pageSize={size} |
(Optional) Specify the number of items that can be displayed on 1 page. Filtering conditions: Checks whether the comparison target is equal to the value |
|
baseTime={dateTime} |
(Optional) Specify the display start time. Filtering conditions: Checks whether the comparison target is equal to the value |
|
conflict={conflict} |
(Optional) Specify the method used for calculating the aggregation value ("null" or "peak" or "average"). Filtering conditions: Checks whether the comparison target is equal to the value |
Request body
Not applicable.
Response body
The structure of the response body and the object attributes is as follows:Collections
{
"data":["...", ...],
"pagination":{
"page":"...",
"pageSize":"...",
"numPages":"...",
"totalCount":"..."
},
"count":"..."
}
Collections (Type: Collections)
|
Attribute |
Type |
Description |
|---|---|---|
|
data |
anyType[] |
A list of PerformanceComponent objects. For details, see the table below. |
|
pagination |
Pagination |
Page information. This parameter is displayed only when the relevant resource exists. |
|
count |
int |
Number of data items that meet the conditions related to this query(API). |
pagination (Type: Pagination)
|
Attribute |
Type |
Description |
|---|---|---|
|
page |
integer |
Page. |
|
pageSize |
integer |
Size of page. |
|
numPages |
integer |
Number of pages. |
|
totalCount |
integer |
Number of objects. |
PerformanceComponent
{
"instanceID":"...",
"componentID":"...",
"componentName":"...",
"metricType":"...",
"status":"...",
"parentNodeID":"...",
"parentNodeName":"...",
"clusterName":"...",
"description":"...",
"thresholdProfileName":"...",
"performancePeakLatest":"...",
"performancePeakWorst":"...",
"performanceAverageLatest":"...",
"performanceAverageWorst":"..."
}
PerformanceComponent (Type: PerformanceComponent)
|
Attribute |
Type |
Description |
|---|---|---|
|
instanceID |
string |
ID of the performance information of the component |
|
componentID |
string |
ID of a component that has performance information |
|
componentName |
string |
Name of a component that has performance information |
|
metricType |
enum |
ID of the metric (For details about the valid values, see the table MetricType in List of enumerators.) |
|
status |
enum |
Status of the performance information (For details about the valid values, see the table ElementStatusType in List of enumerators.)
|
|
parentNodeID |
string |
ID of the device that a component belongs to |
|
parentNodeName |
string |
Name of the device that a component belongs to |
|
clusterName |
string |
Name of the cluster |
|
description |
string |
Description |
|
thresholdProfileName |
string |
Name of the threshold profile |
|
performancePeakLatest |
float |
Latest peak performance value within the specified period |
|
performancePeakWorst |
float |
Peak performance value that is closest to the abnormality line within the specified period |
|
performanceAverageLatest |
float |
Latest average performance value within the specified period |
|
performanceAverageWorst |
float |
Average performance value that is closest to the abnormality line within the specified period |
Status codes
|
Status code |
Reason phrase |
Description |
|---|---|---|
|
200 |
OK |
Success. |
|
400 |
Bad Request |
A query parameter is invalid. |
|
401 |
Unauthorized |
No login privilege. |
|
412 |
Precondition Failed |
The server is not available. |
|
500 |
Internal Server Error |
Server processing error. |
|
503 |
Service Unavailable |
Analyzer detail view server communication error. |
Example code
[Request Header]
GET /Analytics/v1/objects/PerformanceComponent?%24query=metricType%20eq%20%27RAID_STORAGE_RAIDPORT_TRANSFERRATE%27&componentID%20eq%20%27raidPort%23470182-CL7-D%27&type=STORAGE_PORT&basePointNodeID=raidPort%23470182-CL7-D&basePointNodeType=STORAGE_PORT&pointTimeRange=86400000
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
Host: localhost:22015
Accept: application/json
Content-Type: application/json
[Response Header]
HTTP/1.1 200 OK
Date: Wed, 10 Aug 2016 03:54:15 GMT
Server: Cosminexus HTTP Server
Cache-Control: no-cache
WWW-Authenticate: HSSO 3ee59bb16b5aa61a596112ff8f602692d799e75d_YXZvNFIMehp3UB4jbmVyPGUgT3Q=_V0810
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
Content-Type: application/json
[Response Body]
{
"data" : [ {
"instanceID" : "raidPort#470182-CL7-D#RAID_STORAGE_RAIDPORT_TRANSFERRATE",
"componentID" : "raidPort#470182-CL7-D",
"componentName" : "CL7-D",
"metricType" : "RAID_STORAGE_RAIDPORT_TRANSFERRATE",
"status" : "Unknown",
"parentNodeID" : "raidStorage#470182",
"parentNodeName" : "470182",
"thresholdProfileName" : Default Profile for Volume",
"performancePeakLatest" : 135.0,
"performancePeakWorst" : 416.0,
"performanceAverageLatest" : 135.0,
"performanceAverageWorst" : 416.0
} ],
"count" : 1
}