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

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

    • PDF

    Article Summary

    CAポッドのリソース(CPU、メモリ、ストレージ)の使用状況を表示する

    リクエスト

    リクエスト URL

    GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/cas/{caId}/usage
    

    リクエストパラメーター

    Parameter NameRequired statusTypeRestrictionDescription
    networkIdYeslongPath ParameterNetwork ID
    caIdYesStringPath Parameter CA ID
    startTimeYesIntegerQuery Parameterquery start time (timestamp)
    endTimeYesIntegerQuery Parameterquery end time(timestamp)

    リクエストの例

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

    レスポンス

    レスポンス Body

    CategoryTypeDescription
    statusStringIndicates whether response was successful
    content.networkIdLongNetwork ID
    content.nodeIdString CA ID
    content.containerNoString Container No(usless)
    content.cpuUsageMap CPU usage per half hour
    content.memUsageMap Memory usage per half hour
    content.diskUsageMap Storage usage per half hour

    レスポンスボディ

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

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

    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.