代码拉取完成,页面将自动刷新
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { AbstractClient } from "../../../common/abstract_client"
import { ClientConfig } from "../../../common/interface"
import {
NodeTree,
DescribeNodesRequest,
Label,
Field,
DescribeNodeGroupsResponse,
TaskResult,
SuspendProbeTaskResponse,
DescribeProbeNodesResponse,
ProbeTaskBasicConfiguration,
ProbeTask,
DescribeInstantTasksResponse,
DescribeDetailedSingleProbeDataRequest,
DescribeProbeTasksResponse,
UpdateProbeTaskAttributesResponse,
DescribeProbeMetricTagValuesRequest,
SingleInstantTask,
NodeInfoBase,
DeleteProbeTaskRequest,
DescribeDetailedSingleProbeDataResponse,
SuspendProbeTaskRequest,
DescribeProbeMetricDataRequest,
DescribeProbeMetricTagValuesResponse,
DescribeProbeTasksRequest,
DescribeInstantTasksRequest,
UpdateProbeTaskConfigurationListRequest,
CreateProbeTasksRequest,
UpdateProbeTaskAttributesRequest,
NodeLeaf,
DescribeNodeGroupsRequest,
ResumeProbeTaskResponse,
DeleteProbeTaskResponse,
CreateProbeTasksResponse,
ResumeProbeTaskRequest,
NodeDefineExt,
DescribeProbeNodesRequest,
NodeDefine,
Tag,
DistinctOrNetServiceInfo,
DescribeNodesResponse,
DescribeProbeMetricDataResponse,
KeyValuePair,
UpdateProbeTaskConfigurationListResponse,
DetailedSingleDataDefine,
} from "./cat_models"
/**
* cat client
* @class
*/
export class Client extends AbstractClient {
constructor(clientConfig: ClientConfig) {
super("cat.tencentcloudapi.com", "2018-04-09", clientConfig)
}
/**
* 暂停任务
*/
async SuspendProbeTask(
req: SuspendProbeTaskRequest,
cb?: (error: string, rep: SuspendProbeTaskResponse) => void
): Promise<SuspendProbeTaskResponse> {
return this.request("SuspendProbeTask", req, cb)
}
/**
* 查询云拨测指标数据,指标支持使用sum,avg,max,min聚合函数进行指标数据查询
拨测频率与groupby聚合时间设置关联,如拨测频率为 30 分钟,则 grouby 聚合时间建议设置为大于30分钟,避免出现查询数据为空的情况
*/
async DescribeProbeMetricData(
req: DescribeProbeMetricDataRequest,
cb?: (error: string, rep: DescribeProbeMetricDataResponse) => void
): Promise<DescribeProbeMetricDataResponse> {
return this.request("DescribeProbeMetricData", req, cb)
}
/**
* 查询拨测任务列表
*/
async DescribeProbeTasks(
req: DescribeProbeTasksRequest,
cb?: (error: string, rep: DescribeProbeTasksResponse) => void
): Promise<DescribeProbeTasksResponse> {
return this.request("DescribeProbeTasks", req, cb)
}
/**
* 更新探测任务属性
*/
async UpdateProbeTaskAttributes(
req: UpdateProbeTaskAttributesRequest,
cb?: (error: string, rep: UpdateProbeTaskAttributesResponse) => void
): Promise<UpdateProbeTaskAttributesResponse> {
return this.request("UpdateProbeTaskAttributes", req, cb)
}
/**
* 查询拨测节点
*/
async DescribeProbeNodes(
req: DescribeProbeNodesRequest,
cb?: (error: string, rep: DescribeProbeNodesResponse) => void
): Promise<DescribeProbeNodesResponse> {
return this.request("DescribeProbeNodes", req, cb)
}
/**
* 查询同个任务类型下的维度标签值,包括查询用户任务信息,具体任务下的多个维度标签信息。(通过为DescribeProbeMetricData接口的Filters参数添加维度筛选条件,可实现多维数据分析)
*/
async DescribeProbeMetricTagValues(
req: DescribeProbeMetricTagValuesRequest,
cb?: (error: string, rep: DescribeProbeMetricTagValuesResponse) => void
): Promise<DescribeProbeMetricTagValuesResponse> {
return this.request("DescribeProbeMetricTagValues", req, cb)
}
/**
* 获取拨测节点
*/
async DescribeNodes(
req: DescribeNodesRequest,
cb?: (error: string, rep: DescribeNodesResponse) => void
): Promise<DescribeNodesResponse> {
return this.request("DescribeNodes", req, cb)
}
/**
* 获取历史即时拨测任务
*/
async DescribeInstantTasks(
req: DescribeInstantTasksRequest,
cb?: (error: string, rep: DescribeInstantTasksResponse) => void
): Promise<DescribeInstantTasksResponse> {
return this.request("DescribeInstantTasks", req, cb)
}
/**
* 批量更新拨测任务配置
*/
async UpdateProbeTaskConfigurationList(
req: UpdateProbeTaskConfigurationListRequest,
cb?: (error: string, rep: UpdateProbeTaskConfigurationListResponse) => void
): Promise<UpdateProbeTaskConfigurationListResponse> {
return this.request("UpdateProbeTaskConfigurationList", req, cb)
}
/**
* 批量创建拨测任务
*/
async CreateProbeTasks(
req: CreateProbeTasksRequest,
cb?: (error: string, rep: CreateProbeTasksResponse) => void
): Promise<CreateProbeTasksResponse> {
return this.request("CreateProbeTasks", req, cb)
}
/**
* 获取拨测点组(可用性拨测点组、高级拨测点组、我的拨测点组)
*/
async DescribeNodeGroups(
req: DescribeNodeGroupsRequest,
cb?: (error: string, rep: DescribeNodeGroupsResponse) => void
): Promise<DescribeNodeGroupsResponse> {
return this.request("DescribeNodeGroups", req, cb)
}
/**
* 根据时间范围、任务ID、运营商等条件查询单次拨测详情数据
*/
async DescribeDetailedSingleProbeData(
req: DescribeDetailedSingleProbeDataRequest,
cb?: (error: string, rep: DescribeDetailedSingleProbeDataResponse) => void
): Promise<DescribeDetailedSingleProbeDataResponse> {
return this.request("DescribeDetailedSingleProbeData", req, cb)
}
/**
* 删除拨测任务
*/
async DeleteProbeTask(
req: DeleteProbeTaskRequest,
cb?: (error: string, rep: DeleteProbeTaskResponse) => void
): Promise<DeleteProbeTaskResponse> {
return this.request("DeleteProbeTask", req, cb)
}
/**
* 恢复拨测任务
*/
async ResumeProbeTask(
req: ResumeProbeTaskRequest,
cb?: (error: string, rep: ResumeProbeTaskResponse) => void
): Promise<ResumeProbeTaskResponse> {
return this.request("ResumeProbeTask", req, cb)
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。