You need to enable JavaScript to run this app.
导航
客户状态监控
最近更新时间:2024.12.05 18:30:54首次发布时间:2024.12.05 18:30:54

阅读本文,您可以获取 PHP SDK 客户状态监控的接口调用示例,实现快速开发。

说明

本文的调用示例包含接口的部分参数。由于参数间可能存在互斥关系,在调用时,请您参考注释,进行调整。

调用说明

  • 本文提供的接口调用示例均通过 AK 和 SK 初始化实例。
  • 接口的参数说明和错误码等信息可通过接口文档查看。

前提条件

调用接口前,请先完成 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);

查询 SDK 版本变化趋势

您可以调用 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);

查询文件大小 TOP URL

您可以调用 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);

查询降级率 TOP URL

您可以调用 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);

查询黑白屏 TOP URL

您可以调用 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);