getCdnPlusUsageData
    • PDF

    getCdnPlusUsageData

    • PDF

    Article Summary

    개요

    CDN 인스턴스 사용량 데이터 조회

    설명

    CDN 인스턴스의 사용량 정보를 조회하는 API를 제공합니다.

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    cdnInstanceNoList.NYesList<String>-CDN 인스턴스 번호 리스트
    startDateYesString형식은 'yyyyMMdd'조회시작일시
    endDateYesString형식은 'yyyyMMdd'조회종료일시

    응답 데이터 타입

    • CdnPlusUsageData 타입
    CdnPlusUsageData extends CommonResponse
    private String startDate;
    private String endDate;
    private Long startDateEpoch;
    private Long endDateEpoch;
    private Long interval;
    private String bandwidthDataUnit;
    private List<List<Double>> bandwidthDataRecordList;
    private String volumeDataUnit;
    private List<List<Long>> volumeDataRecordList;
    private String requestDataUnit;
    private List<List<Long>> requestDataRecordList;
    private Double maxBandwidth;
    private Long totalVolume;
    private Long totalRequest;

    예시

    호출

    ncloud cdn getCdnPlusUsageData --cdnInstanceNoList 456400 --startDate 20220320 --endDate 20220325
    

    응답

    {"getCdnPlusUsageDataResponse": {
      "requestId": "6eaf4f7f-011a-46a1-85f0-298c462f1df2",
      "returnCode": "0",
      "returnMessage": "success",
      "startDate": "20220320",
      "endDate": "20220325",
      "startDateEpoch": 1647702000000,
      "endDateEpoch": 1648134000000,
      "interval": 86400000,
      "bandwidthDataUnit": "Mbps",
      "bandwidthDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "volumeDataUnit": "byte",
      "volumeDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "requestDataUnit": "count",
      "requestDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "maxBandwidth": 0.0,
      "totalVolume": 0,
      "totalRequest": 0
    }}
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <getCdnPlusUsageDataResponse>
    <requestId>deeeafc0-9432-4cee-adf6-3e970cbb35c0</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <startDate>20220320</startDate>
    <endDate>20220325</endDate>
    <startDateEpoch>1647702000000</startDateEpoch>
    <endDateEpoch>1648134000000</endDateEpoch>
    <interval>86400000</interval>
    <bandwidthDataUnit>Mbps</bandwidthDataUnit>
    <bandwidthDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <int>0</int>
    </list>
    </bandwidthDataRecordList>
    <volumeDataUnit>byte</volumeDataUnit>
    <volumeDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <int>0</int>
    </list>
    </volumeDataRecordList>
    <requestDataUnit>count</requestDataUnit>
    <requestDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <int>0</int>
    </list>
    </requestDataRecordList>
    <maxBandwidth>0.0</maxBandwidth>
    <totalVolume>0</totalVolume>
    <totalRequest>0</totalRequest>
    </getCdnPlusUsageDataResponse>
    

    이 문서가 도움이 되었습니까?
    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.