View Orderer Pod's usage
- Print
- PDF
View Orderer Pod's usage
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Query the orderer pod usage of the blockchain network.
request
Request URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/orderers/{ordererId}/{containerNo}/usage
request parameter
parameter name | Required | type | Restrictions | Description |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | Network ID |
ordererId | Yes | long | Path Parameter | Orderer ID |
containerNo | Yes | long | Path Parameter | container number (RAFT_1 : 1, RAFT_5 : From 1 to 5 ) |
startTime | Yes | Integer | Query Parameters | Query start time (timestamp) |
endTime | Yes | Integer | Query Parameters | Query end time (timestamp) |
Example request
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/orderers/{ordererId}/{containerNo}/usage?startTime={startTime}&endTime={endTime}" \
-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}"
reply
response body
Item | type | Description |
---|---|---|
status | String | Response Success |
content.networkId | Long | Network ID |
content.nodeId | String | Order ID |
content.containerNo | String | Container No (not applicable for CA) |
content.cpuUsage | Map | CPU usage by hour |
content.memUsage | Map | Memory usage by time period |
content.diskUsage | Map | Storage Usage by Time |
Example response
{
"networkId": 100,
"nodeId": "2000001",
"containerNo": 1,
"cpuUsage": {
"1638189000000": 0.0034168884,
"1638187200000": 0.0034069463,
"1638185400000": 0.0032034998,
"1638190800000": 0.0033367977,
"1638183600000": 0.0030549457,
"1638194400000": 0.0033948403,
"1638192600000": 0.0033056226,
"1638181800000": 0.0034838002
},
"memUsage": {
"1638189000000": 19,
"1638187200000": 19,
"1638185400000": 19,
"1638190800000": 19,
"1638183600000": 19,
"1638194400000": 19,
"1638192600000": 19,
"1638181800000": 19
},
"diskUsage": {
"1638189000000": 2,
"1638187200000": 2,
"1638185400000": 2,
"1638190800000": 2,
"1638183600000": 2,
"1638194400000": 2,
"1638192600000": 2,
"1638181800000": 2
}
}
Was this article helpful?