Ordererポッドの使用状況を表示する
    • PDF

    Ordererポッドの使用状況を表示する

    • PDF

    Article Summary

    ブロックチェーンネットワークの注文者ポッドの使用状況を照会します。

    リクエスト

    リクエストURL

    GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/orderers/{ordererId}/{containerNo}/usage
    

    リクエストパラメータ

    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)

    リクエストの例

    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}" 
    

    応答

    応答本文

    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

    応答の例

    {
      "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
      }
    }
    

    この記事は役に立ちましたか?

    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.