京东云

This commit is contained in:
“wanyongkang”
2024-05-28 17:04:50 +08:00
parent f644932afb
commit f3c7432100
672 changed files with 209344 additions and 6593 deletions

View File

@@ -0,0 +1,11 @@
# 更新历史 #
API版本3.0.0
|发布时间| 版本号 | 更新 | 说明 |
|---|-------|-----------------|-------------------------------------------------------------|
|2022-12-02 | 3.0.0 | 新版云拨测增加查询监测结果接口 | 新增协议类型及网络类型任务拨测结果查询该版本不兼容旧版云拨测请使用2.0版本 |
|2020-04-09| 2.0.3 | 增加接口别名 | discribeProbes改为describeProbes |
|2020-03-12| 2.0.2 | 修改接口参数 | 报警规则相关接口增加dataOwner参数 |
|2019-11-19| 2.0.1 | 接口发布 | 站点监控、可用性监控相关接口对外部用户发布 |
|2019-11-07| 2.0.0 | 接口升级 | 站点监控、可用性监控任务、报警规则相关接口v1升v2。使用报警规则v1老接口不支持v2的新规则资源查询删除修改等操作。 |
|2019-05-27| 1.0.0 | 新增接口 | 新增查询可用性agent任务接口 |

View File

@@ -0,0 +1,58 @@
<?php
/**
* Detection
*
* @category Jdcloud
* @package Jdcloud\Detection
* @author Jdcloud <jdcloud-api@jd.com>
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
* @link https://www.jdcloud.com/help/faq
*/
namespace Jdcloud\Detection;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with detection.
*
* @method \Jdcloud\Result queryTasks(array $args = [])
* @method \GuzzleHttp\Promise\Promise queryTasksAsync(array $args = [])
* @method \Jdcloud\Result queryNetworkMonitorResults(array $args = [])
* @method \GuzzleHttp\Promise\Promise queryNetworkMonitorResultsAsync(array $args = [])
* @method \Jdcloud\Result queryProtocolMonitorResults(array $args = [])
* @method \GuzzleHttp\Promise\Promise queryProtocolMonitorResultsAsync(array $args = [])
* @method \Jdcloud\Result queryProtocolAvgMetrics(array $args = [])
* @method \GuzzleHttp\Promise\Promise queryProtocolAvgMetricsAsync(array $args = [])
* @method \Jdcloud\Result queryNetworkAvgMetrics(array $args = [])
* @method \GuzzleHttp\Promise\Promise queryNetworkAvgMetricsAsync(array $args = [])
* @method \Jdcloud\Result querySuccessRateMetric(array $args = [])
* @method \GuzzleHttp\Promise\Promise querySuccessRateMetricAsync(array $args = [])
*/
class DetectionClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'detection',
'presign_param' => 'PresignedUrl',
]
),
'detection'
);
};
parent::__construct($args);
}
}