Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_bandwidth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeBandwidth($domains, '1day', array('global'), 'all', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_hitmiss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeHitmiss($domains, '1hour', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_ispreqcount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeIspreqcount($domains, '1hour', 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_isptraffic.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeIsptraffic($domains, array('china', 'oversea'), '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_pageview.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzePageview($domains, '1day', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_reqcount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeReqcount($domains, '1hour', 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_statuscode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeStatuscode($domains, '1hour', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_topcountip.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeTopcountip($domains, 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_topcounturl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeTopcounturl($domains, 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_toptrafficip.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeToptrafficip($domains, 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_toptrafficurl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeToptrafficurl($domains, 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_traffic.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeTraffic($domains, '1day', array('global'), 'all', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
24 changes: 24 additions & 0 deletions examples/cdn_get_loganalyze_uniquevisitor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require_once __DIR__ . '/../autoload.php';

use \Qiniu\Cdn\CdnManager;

$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');

$auth = new Qiniu\Auth($accessKey, $secretKey);
$cdnManager = new CdnManager($auth);

$domains = array(
"javasdk.qiniudn.com",
"phpsdk.qiniudn.com"
);

list($logListData, $getLogErr) = $cdnManager->getCdnLoganalyzeUniquevisitor($domains, 'global', '2018-08-01', '2018-08-03');
if ($getLogErr != null) {
var_dump($getLogErr);
} else {
echo "get cdn log analyze top count url success\n";
print_r($logListData);
}
Loading