123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <?php
- include 'DemoBase.php';
- global $client;
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2022-04-13T00:00:00Z",
- "EndTime" => "2022-04-14T00:00:00Z",
- "Aggregation" => 300,
- ];
- $response = $client->describeLiveBandwidthData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2022-04-13T00:00:00Z",
- "EndTime" => "2022-04-14T00:00:00Z",
- "Aggregation" => 300,
- ];
- $response = $client->describeLiveTrafficData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "StartTime" => "2022-04-13T00:00:00Z",
- "EndTime" => "2022-04-14T00:00:00Z",
- "Aggregation" => 300,
- ];
- $response = $client->describeLiveP95PeakBandwidthData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2022-04-13T00:00:00Z",
- "EndTime" => "2022-04-13T00:10:00Z",
- "Aggregation" => 300,
- ];
- $response = $client->describeRecordData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2022-03-07T00:00:00+08:00",
- "EndTime" => "2022-03-08T00:00:00+08:00",
- "Aggregation" => 86400,
- ];
- $response = $client->describeTranscodeData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2022-03-07T00:00:00+08:00",
- "EndTime" => "2022-03-08T00:00:00+08:00",
- "Aggregation" => 86400,
- ];
- $response = $client->describeSnapshotData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => "example.com,example2.com",
- "StartTime" => "2022-04-21T14:00:00+08:00",
- "EndTime" => "2022-04-22T14:00:00+08:00",
- ];
- $response = $client->describeLiveDomainLog(['query' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "Domain" => "example.com",
- "App" => "example_app",
- "Stream" => "example_stream",
- "StartTime" => "2022-04-21T00:00:00Z",
- "EndTime" => "2022-04-23T23:59:59Z",
- "Aggregation" => 30,
- ];
- $response = $client->describePushStreamMetrics(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "Domain" => "example.com",
- "App" => "example",
- "Stream" => "example080601",
- "ProtocolList" => ["RTMP", "HTTP-FLV"],
- "StartTime" => "2022-04-21T00:00:00Z",
- "EndTime" => "2022-04-21T10:59:59Z",
- "Aggregation" => 60,
- ];
- $response = $client->describeLiveStreamSessions(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "StartTime" => "2021-08-16T00:00:00Z",
- "EndTime" => "2021-08-16T00:01:59Z",
- "Aggregation" => 60
- ];
- $response = $client->describePlayResponseStatusStat(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com"],
- "ProtocolList" => ["HTTP-FLV", "RTMP"],
- "ISPList" => ["telecom"],
- "IPList" => ["123.123.123.000"],
- "RegionList" => [
- [
- "Area" => "CN",
- "Country" => "CN",
- "Province" => "beijing",
- ],
- ],
- "StartTime" => "2022-04-13T00:00:00+08:00",
- "EndTime" => "2022-04-13T12:00:00+08:00",
- "Aggregation" => 300,
- "ShowDetail" => True,
- ];
- $response = $client->describeLiveMetricTrafficData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com"],
- "ProtocolList" => ["HTTP-FLV", "RTMP"],
- "ISPList" => ["telecom"],
- "IPList" => ["123.123.123.000"],
- "RegionList" => [
- [
- "Area" => "CN",
- "Country" => "CN",
- "Province" => "beijing",
- ]
- ],
- "StartTime" => "2021-04-13T00:00:00+08:00",
- "EndTime" => "2021-04-14T00:00:00+08:00",
- "Aggregation" => 300,
- "ShowDetail" => True,
- ];
- $response = $client->describeLiveMetricBandwidthData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "Domain" => "example.com",
- "StartTime" => "2022-04-13T00:00:00+08:00",
- "EndTime" => "2022-04-14T00:00:00+08:00",
- ];
- $response = $client->describePlayStreamList(['query' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com"],
- "DstAddrTypeList" => ["live","Third"],
- "StartTime" => "2021-04-13T00:00:00+08:00",
- "EndTime" => "2021-04-14T00:00:00+08:00",
- "Aggregation" => 300,
- "ShowDetail" => True,
- ];
- $response = $client->describePullToPushBandwidthData(['json' => $body]);
- echo $response;
- echo '<br>';
- $body = [
- "DomainList" => ["example.com", "example2.com"],
- "DetailField" => ["Domain"],
- "StartTime" => "2022-07-13T00:00:00+08:00",
- "EndTime" => "2022-07-14T00:00:00+08:00",
- "Aggregation" => 86400,
- ];
- $response = $client->describeLiveAuditData(['json' => $body]);
- echo $response;
- echo '<br>';
|