阅读本文,您可以获取 PHP SDK 客户状态监控的接口调用示例,实现快速开发。
说明
本文的调用示例包含接口的部分参数。由于参数间可能存在互斥关系,在调用时,请您参考注释,进行调整。
调用接口前,请先完成 PHP SDK 的安装及初始化操作。
本节为您介绍客户状态监控相关接口的功能和调用示例。
您可以调用 DescribeImageXClientErrorCodeByTime 接口查询错误码时序数据。详细的参数说明可参见 DescribeImageXClientErrorCodeByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientErrorCodeByTime($body); print_r($response);
您可以调用 DescribeImageXClientErrorCodeAll 接口查询错误码分布。详细的参数说明可参见 DescribeImageXClientErrorCodeAll 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientErrorCodeAll($body); print_r($response);
您可以调用 DescribeImageXClientDecodeSuccessRateByTime 接口查询解码成功率。详细的参数说明可参见 DescribeImageXClientDecodeSuccessRateByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientDecodeSuccessRateByTime($body); print_r($response);
您可以调用 DescribeImageXClientDecodeDurationByTime 接口查询解码耗时。详细的参数说明可参见 DescribeImageXClientDecodeDurationByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientDecodeDurationByTime($body); print_r($response);
您可以调用 DescribeImageXClientQueueDurationByTime 接口查询排队耗时。详细的参数说明可参见 DescribeImageXClientQueueDurationByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientQueueDurationByTime($body); print_r($response);
您可以调用 DescribeImageXClientLoadDurationAll 接口查询加载耗时分布。详细的参数说明可参见 DescribeImageXClientLoadDurationAll 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientLoadDurationAll($body); print_r($response);
您可以调用 DescribeImageXClientLoadDuration 接口查询加载耗时时序数据。详细的参数说明可参见 DescribeImageXClientLoadDuration 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientLoadDuration($body); print_r($response);
您可以调用 DescribeImageXClientFailureRate 接口查询用户感知失败率。详细的参数说明可参见 DescribeImageXClientFailureRate 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientFailureRate($body); print_r($response);
您可以调用 DescribeImageXClientSdkVerByTime 接口查询 SDK 版本变化趋势。详细的参数说明可参见 DescribeImageXClientSdkVerByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientSdkVerByTime($body); print_r($response);
您可以调用 DescribeImageXClientFileSize 接口查询文件大小分布。详细的参数说明可参见 DescribeImageXClientFileSize 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientFileSize($body); print_r($response);
您可以调用 DescribeImageXClientTopFileSize 接口查询文件大小 TOP URL。详细的参数说明可参见 DescribeImageXClientTopFileSize 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientTopFileSize($body); print_r($response);
您可以调用 DescribeImageXClientCountByTime 接口查询客户端上报量。详细的参数说明可参见 DescribeImageXClientCountByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientDecodeDurationByTime($body); print_r($response);
您可以调用 DescribeImageXClientScoreByTime 接口查询画质评估时序数据。详细的参数说明可参见 DescribeImageXClientScoreByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientScoreByTime($body); print_r($response);
您可以调用 DescribeImageXClientDemotionRateByTime 接口查询降级率时序数据。详细的参数说明可参见 DescribeImageXClientDemotionRateByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientDemotionRateByTime($body); print_r($response);
您可以调用 DescribeImageXClientTopDemotionURL 接口查询降级率 TOP URL。详细的参数说明可参见 DescribeImageXClientTopDemotionURL 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientTopDemotionURL($body); print_r($response);
您可以调用 DescribeImageXClientQualityRateByTime 接口查询黑白屏率时序数据。详细的参数说明可参见 DescribeImageXClientQualityRateByTime 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientQualityRateByTime($body); print_r($response);
您可以调用 DescribeImageXClientTopQualityURL 接口查询黑白屏 TOP URL。详细的参数说明可参见 DescribeImageXClientTopQualityURL 接口文档。
接口调用示例如下所示。
<?php include_once(__DIR__ . '/../../../../vendor/autoload.php'); use Volc\Service\ImageX\V2\Imagex; $client = Imagex::getInstance(); // call below method if you dont set ak and sk in ~/.volc/config $client->setAccessKey("ak"); $client->setSecretKey("sk"); $body = []; $response = $client->describeImageXClientTopQualityURL($body); print_r($response);