View Orderer Pod's usage
    • PDF

    View Orderer Pod's usage

    • PDF

    Article Summary

    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 nameRequiredtypeRestrictionsDescription
    networkIdYeslongPath ParameterNetwork ID
    ordererIdYeslongPath ParameterOrderer ID
    containerNoYeslongPath Parametercontainer number (RAFT_1 : 1, RAFT_5 : From 1 to 5 )
    startTimeYesIntegerQuery ParametersQuery start time (timestamp)
    endTimeYesIntegerQuery ParametersQuery 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

    ItemtypeDescription
    statusStringResponse Success
    content.networkIdLongNetwork ID
    content.nodeIdStringOrder ID
    content.containerNoStringContainer No (not applicable for CA)
    content.cpuUsageMapCPU usage by hour
    content.memUsageMapMemory usage by time period
    content.diskUsageMapStorage 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?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.