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>
この記事は役に立ちましたか?