2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cat_client.ts 6.60 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-07-06 00:33 +08:00 . release 4.1.70
/* 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)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs.git
git@gitee.com:tencentcloud/tencentcloud-sdk-nodejs.git
tencentcloud
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
master

搜索帮助