View CA Pod's usage
- Print
- PDF
View CA Pod's usage
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
View the resource (CPU, Memory, Storage) usage of CA Pods
Request
Request URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/cas/{caId}/usage
Request Parameter
Parameter Name | Required status | Type | Restriction | Description |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | Network ID |
caId | Yes | String | Path Parameter | CA ID |
startTime | Yes | Integer | Query Parameter | query start time (timestamp) |
endTime | Yes | Integer | Query Parameter | query end time(timestamp) |
Example of Request
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/cas/{caId}/usage?startTime=1638181063514&endTime=1638195463515" \
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}" \
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}" \
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
Response
Response Body
Category | Type | Description |
---|---|---|
status | String | Indicates whether response was successful |
content.networkId | Long | Network ID |
content.nodeId | String | CA ID |
content.containerNo | String | Container No(usless) |
content.cpuUsage | Map | CPU usage per half hour |
content.memUsage | Map | Memory usage per half hour |
content.diskUsage | Map | Storage usage per half hour |
Example of Response
{
"content": {
"networkId": 228,
"nodeId": "2000001",
"containerNo": 0,
"cpuUsage": {
"1638189000000": 0.0008434209,
"1638187200000": 0.0010668788,
"1638185400000": 0.0007716762,
"1638190800000": 0.00085101766,
"1638183600000": 0.00091372314,
"1638194400000": 0.00067135337,
"1638192600000": 0.0008920122,
"1638181800000": 0.0009244505
},
"memUsage": {
"1638189000000": 15,
"1638187200000": 15,
"1638185400000": 15,
"1638190800000": 16,
"1638183600000": 15,
"1638194400000": 16,
"1638192600000": 16,
"1638181800000": 15
},
"diskUsage": {
"1638189000000": 0,
"1638187200000": 0,
"1638185400000": 0,
"1638190800000": 0,
"1638183600000": 0,
"1638194400000": 0,
"1638192600000": 0,
"1638181800000": 0
}
},
"totalElements": 0,
"totalPages": 0
}
Was this article helpful?