DemoDescribeInfo.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. include 'DemoBase.php';
  3. global $client;
  4. $body = [
  5. "DomainList" => ["example.com", "example2.com"],
  6. "StartTime" => "2022-04-13T00:00:00Z",
  7. "EndTime" => "2022-04-14T00:00:00Z",
  8. "Aggregation" => 300,
  9. ];
  10. $response = $client->describeLiveBandwidthData(['json' => $body]);
  11. echo $response;
  12. echo '<br>';
  13. $body = [
  14. "DomainList" => ["example.com", "example2.com"],
  15. "StartTime" => "2022-04-13T00:00:00Z",
  16. "EndTime" => "2022-04-14T00:00:00Z",
  17. "Aggregation" => 300,
  18. ];
  19. $response = $client->describeLiveTrafficData(['json' => $body]);
  20. echo $response;
  21. echo '<br>';
  22. $body = [
  23. "StartTime" => "2022-04-13T00:00:00Z",
  24. "EndTime" => "2022-04-14T00:00:00Z",
  25. "Aggregation" => 300,
  26. ];
  27. $response = $client->describeLiveP95PeakBandwidthData(['json' => $body]);
  28. echo $response;
  29. echo '<br>';
  30. $body = [
  31. "DomainList" => ["example.com", "example2.com"],
  32. "StartTime" => "2022-04-13T00:00:00Z",
  33. "EndTime" => "2022-04-13T00:10:00Z",
  34. "Aggregation" => 300,
  35. ];
  36. $response = $client->describeRecordData(['json' => $body]);
  37. echo $response;
  38. echo '<br>';
  39. $body = [
  40. "DomainList" => ["example.com", "example2.com"],
  41. "StartTime" => "2022-03-07T00:00:00+08:00",
  42. "EndTime" => "2022-03-08T00:00:00+08:00",
  43. "Aggregation" => 86400,
  44. ];
  45. $response = $client->describeTranscodeData(['json' => $body]);
  46. echo $response;
  47. echo '<br>';
  48. $body = [
  49. "DomainList" => ["example.com", "example2.com"],
  50. "StartTime" => "2022-03-07T00:00:00+08:00",
  51. "EndTime" => "2022-03-08T00:00:00+08:00",
  52. "Aggregation" => 86400,
  53. ];
  54. $response = $client->describeSnapshotData(['json' => $body]);
  55. echo $response;
  56. echo '<br>';
  57. $body = [
  58. "DomainList" => "example.com,example2.com",
  59. "StartTime" => "2022-04-21T14:00:00+08:00",
  60. "EndTime" => "2022-04-22T14:00:00+08:00",
  61. ];
  62. $response = $client->describeLiveDomainLog(['query' => $body]);
  63. echo $response;
  64. echo '<br>';
  65. $body = [
  66. "Domain" => "example.com",
  67. "App" => "example_app",
  68. "Stream" => "example_stream",
  69. "StartTime" => "2022-04-21T00:00:00Z",
  70. "EndTime" => "2022-04-23T23:59:59Z",
  71. "Aggregation" => 30,
  72. ];
  73. $response = $client->describePushStreamMetrics(['json' => $body]);
  74. echo $response;
  75. echo '<br>';
  76. $body = [
  77. "Domain" => "example.com",
  78. "App" => "example",
  79. "Stream" => "example080601",
  80. "ProtocolList" => ["RTMP", "HTTP-FLV"],
  81. "StartTime" => "2022-04-21T00:00:00Z",
  82. "EndTime" => "2022-04-21T10:59:59Z",
  83. "Aggregation" => 60,
  84. ];
  85. $response = $client->describeLiveStreamSessions(['json' => $body]);
  86. echo $response;
  87. echo '<br>';
  88. $body = [
  89. "DomainList" => ["example.com", "example2.com"],
  90. "StartTime" => "2021-08-16T00:00:00Z",
  91. "EndTime" => "2021-08-16T00:01:59Z",
  92. "Aggregation" => 60
  93. ];
  94. $response = $client->describePlayResponseStatusStat(['json' => $body]);
  95. echo $response;
  96. echo '<br>';
  97. $body = [
  98. "DomainList" => ["example.com"],
  99. "ProtocolList" => ["HTTP-FLV", "RTMP"],
  100. "ISPList" => ["telecom"],
  101. "IPList" => ["123.123.123.000"],
  102. "RegionList" => [
  103. [
  104. "Area" => "CN",
  105. "Country" => "CN",
  106. "Province" => "beijing",
  107. ],
  108. ],
  109. "StartTime" => "2022-04-13T00:00:00+08:00",
  110. "EndTime" => "2022-04-13T12:00:00+08:00",
  111. "Aggregation" => 300,
  112. "ShowDetail" => True,
  113. ];
  114. $response = $client->describeLiveMetricTrafficData(['json' => $body]);
  115. echo $response;
  116. echo '<br>';
  117. $body = [
  118. "DomainList" => ["example.com"],
  119. "ProtocolList" => ["HTTP-FLV", "RTMP"],
  120. "ISPList" => ["telecom"],
  121. "IPList" => ["123.123.123.000"],
  122. "RegionList" => [
  123. [
  124. "Area" => "CN",
  125. "Country" => "CN",
  126. "Province" => "beijing",
  127. ]
  128. ],
  129. "StartTime" => "2021-04-13T00:00:00+08:00",
  130. "EndTime" => "2021-04-14T00:00:00+08:00",
  131. "Aggregation" => 300,
  132. "ShowDetail" => True,
  133. ];
  134. $response = $client->describeLiveMetricBandwidthData(['json' => $body]);
  135. echo $response;
  136. echo '<br>';
  137. $body = [
  138. "Domain" => "example.com",
  139. "StartTime" => "2022-04-13T00:00:00+08:00",
  140. "EndTime" => "2022-04-14T00:00:00+08:00",
  141. ];
  142. $response = $client->describePlayStreamList(['query' => $body]);
  143. echo $response;
  144. echo '<br>';
  145. $body = [
  146. "DomainList" => ["example.com"],
  147. "DstAddrTypeList" => ["live","Third"],
  148. "StartTime" => "2021-04-13T00:00:00+08:00",
  149. "EndTime" => "2021-04-14T00:00:00+08:00",
  150. "Aggregation" => 300,
  151. "ShowDetail" => True,
  152. ];
  153. $response = $client->describePullToPushBandwidthData(['json' => $body]);
  154. echo $response;
  155. echo '<br>';
  156. $body = [
  157. "DomainList" => ["example.com", "example2.com"],
  158. "DetailField" => ["Domain"],
  159. "StartTime" => "2022-07-13T00:00:00+08:00",
  160. "EndTime" => "2022-07-14T00:00:00+08:00",
  161. "Aggregation" => 86400,
  162. ];
  163. $response = $client->describeLiveAuditData(['json' => $body]);
  164. echo $response;
  165. echo '<br>';