getCdnPlusUsageData
- 인쇄
- PDF
getCdnPlusUsageData
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
개요
CDN 인스턴스 사용량 데이터 조회
설명
CDN 인스턴스의 사용량 정보를 조회하는 API를 제공합니다.
요청 파라미터
파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 |
---|---|---|---|---|
cdnInstanceNoList.N | Yes | List<String> | - | CDN 인스턴스 번호 리스트 |
startDate | Yes | String | 형식은 'yyyyMMdd' | 조회시작일시 |
endDate | Yes | String | 형식은 '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>
이 문서가 도움이 되었습니까?