Skip to content

Commit a230373

Browse files
committed
test live apis and fix bugs
1 parent f31c35b commit a230373

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

examples/cdn.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
DataType String 数据类型, 取值为edge:边缘数据; origin:回源数据; 支持多类型选择,多个类型用逗号(半角)分隔,缺省为 edge
256256
257257
'''
258-
#res = client.get_bandwidth_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',Regions='CN',DataType='origin')
258+
#res = client.get_bandwidth_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='1',Regions='CN',DataType='origin')
259259

260260

261261
'''
@@ -277,7 +277,7 @@
277277
DataType String 数据类型, 取值为edge:边缘数据; origin:回源数据; 支持多类型选择,多个类型用逗号(半角)分隔,缺省为 edge
278278
279279
'''
280-
#res = client.get_flow_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',Regions='CN',DataType='origin')
280+
#res = client.get_flow_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='1',Regions='CN',DataType='origin')
281281

282282

283283
'''
@@ -302,7 +302,7 @@
302302
DataType String 数据类型, 取值为edge:边缘数据; origin:回源数据; 支持多类型选择,多个类型用逗号(半角)分隔,缺省为 edge
303303
304304
'''
305-
#res = client.get_pv_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',Regions='CN',DataType='origin')
305+
#res = client.get_pv_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',Regions='CN',DataType='origin')
306306

307307

308308
'''
@@ -324,7 +324,7 @@
324324
HitType String 数据类型, 取值为flowhitrate:流量命中率; reqhitrate:请求数命中率; 支持多类型选择,多个类型用逗号(半角)分隔,缺省为reqhitrate
325325
326326
'''
327-
#res = client.get_hit_rate_detailed_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',HitType='flowhitrate')
327+
#res = client.get_hit_rate_detailed_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',Granularity='240',ResultType='0',HitType='flowhitrate')
328328

329329

330330
'''
@@ -346,7 +346,7 @@
346346
DomainIds String 域名ID,缺省为当前产品类型下的全部域名,可输入需要查询的域名ID,支持批量域名查询,多个域名ID用逗号(半角)分隔
347347
348348
'''
349-
#res = client.get_hit_rate_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
349+
#res = client.get_hit_rate_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
350350

351351

352352
'''
@@ -371,7 +371,7 @@
371371
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
372372
373373
'''
374-
#res = client.get_province_and_isp_flow_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',ResultType='0')
374+
#res = client.get_province_and_isp_flow_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',ResultType='1', Granularity='1440')
375375

376376

377377
'''
@@ -397,7 +397,7 @@
397397
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
398398
399399
'''
400-
#res = client.get_province_and_isp_bandwidth_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',ResultType='0')
400+
#res = client.get_province_and_isp_bandwidth_data(DomainIds='2D09VK5',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download',ResultType='0', Granularity='1440')
401401

402402

403403
'''
@@ -452,7 +452,7 @@
452452
LimitN String 热门Url条数,取值为1-200,最大200,默认100
453453
454454
'''
455-
#res = client.get_top_url_data(DomainIds='2D09NSH',LimitN='100',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
455+
#res = client.get_top_url_data(DomainIds='2D09RW5',LimitN='100',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
456456

457457

458458
'''
@@ -491,7 +491,7 @@
491491
DomainIds String 域名ID,缺省为当前产品类型下的全部域名,可输入需要查询的域名ID,支持批量域名查询,多个域名ID用逗号(半角)分隔
492492
493493
'''
494-
#res = client.get_isp_data(DomainIds='2D09NSH',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
494+
#res = client.get_isp_data(StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',CdnType='download')
495495

496496

497497
'''
@@ -529,7 +529,7 @@
529529
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
530530
531531
'''
532-
#res = client.get_live_flow_data_by_stream(StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ffea40ea2f8e4a5e95096e0f89227092',ResultType='0',Regions='CN',Granularity='1440')
532+
#res = client.get_live_flow_data_by_stream(StartTime='2016-12-18T08:00+0800',EndTime='2016-12-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ce781fecb2f6447d82d03590e520872f',ResultType='1',Regions='CN',Granularity='1440')
533533

534534

535535
'''
@@ -550,7 +550,7 @@
550550
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
551551
552552
'''
553-
#res = client.get_live_bandwidth_data_by_stream(StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ffea40ea2f8e4a5e95096e0f89227092',ResultType='0',Regions='CN',Granularity='1440')
553+
#res = client.get_live_bandwidth_data_by_stream(StartTime='2016-12-19T08:00+0800',EndTime='2016-12-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ce781fecb2f6447d82d03590e520872f',ResultType='1',Regions='CN',Granularity='1440')
554554

555555

556556
'''
@@ -572,7 +572,7 @@
572572
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
573573
574574
'''
575-
#res = client.get_live_online_user_data_by_domain(DomainIds='2D09STT,',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',Regions='CN',Granularity='1440',ResultType='0')
575+
#res = client.get_live_online_user_data_by_domain(DomainIds='2D09W0V',StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',Regions='CN',Granularity='1440',ResultType='1')
576576

577577

578578
'''
@@ -595,7 +595,7 @@
595595
Granularity String 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度
596596
597597
'''
598-
#res = client.get_live_online_user_data_by_stream(StartTime='2016-11-19T08:00+0800',EndTime='2016-11-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ffea40ea2f8e4a5e95096e0f89227092',ResultType='0',Regions='CN',Granularity='1440')
598+
#res = client.get_live_online_user_data_by_stream(StartTime='2016-12-19T08:00+0800',EndTime='2016-12-20T08:00+0800',StreamUrl='rtmp://realflv3.plu.cn/live/ce781fecb2f6447d82d03590e520872f',ResultType='0',Regions='CN',Granularity='5')
599599

600600

601601
'''
@@ -614,7 +614,7 @@
614614
ResultType String 取值为0:多域名多省份区域多运营商数据做合并;1:每个域名每个省份区域的每个运营商数据分别返回
615615
LimitN 否 Int Top条数,取值为1-200,最大200,默认100
616616
'''
617-
res = client.get_live_top_online_user_data(StartTime='2016-11-19T08:00+0800',ResultType='0',Regions='CN',LimitN='100')
617+
#res = client.get_live_top_online_user_data(StartTime='2016-11-19T08:00+0800',ResultType='1',Regions='CN',LimitN='100')
618618

619619

620620

kscore/data/cdn/2016-09-01/service-2.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ shapes:
19511951
DomainOnlineUserDataByRegionList:
19521952
type: list
19531953
member:
1954-
shape: DMOnlineUserDataByByRegion
1954+
shape: DomainOnlineUserDataByRegion
19551955

19561956
DomainOnlineUserDataByDomain:
19571957
type: structure
@@ -2097,10 +2097,11 @@ shapes:
20972097

20982098
TopOnlineUserDataByByRegion:
20992099
type: structure
2100-
Region:
2101-
shape: String
2102-
OnlineUser:
2103-
shape: Long
2100+
members:
2101+
Region:
2102+
shape: String
2103+
OnlineUser:
2104+
shape: Long
21042105
TopOnlineUserDataByByRegionList:
21052106
type: list
21062107
member:

0 commit comments

Comments
 (0)