代码拉取完成,页面将自动刷新
/*
* Copyright (c) 2017-2025 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.
*/
package com.tencentcloudapi.cat.v20180409;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.cat.v20180409.models.*;
public class CatClient extends AbstractClient{
private static String endpoint = "cat.tencentcloudapi.com";
private static String service = "cat";
private static String version = "2018-04-09";
public CatClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public CatClient(Credential credential, String region, ClientProfile profile) {
super(CatClient.endpoint, CatClient.version, credential, region, profile);
}
/**
*批量创建拨测任务
* @param req CreateProbeTasksRequest
* @return CreateProbeTasksResponse
* @throws TencentCloudSDKException
*/
public CreateProbeTasksResponse CreateProbeTasks(CreateProbeTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateProbeTasks", CreateProbeTasksResponse.class);
}
/**
*删除拨测任务
* @param req DeleteProbeTaskRequest
* @return DeleteProbeTaskResponse
* @throws TencentCloudSDKException
*/
public DeleteProbeTaskResponse DeleteProbeTask(DeleteProbeTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteProbeTask", DeleteProbeTaskResponse.class);
}
/**
*根据时间范围、任务ID、运营商等条件查询单次拨测详情数据
* @param req DescribeDetailedSingleProbeDataRequest
* @return DescribeDetailedSingleProbeDataResponse
* @throws TencentCloudSDKException
*/
public DescribeDetailedSingleProbeDataResponse DescribeDetailedSingleProbeData(DescribeDetailedSingleProbeDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDetailedSingleProbeData", DescribeDetailedSingleProbeDataResponse.class);
}
/**
*获取历史即时拨测任务
* @param req DescribeInstantTasksRequest
* @return DescribeInstantTasksResponse
* @throws TencentCloudSDKException
*/
public DescribeInstantTasksResponse DescribeInstantTasks(DescribeInstantTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstantTasks", DescribeInstantTasksResponse.class);
}
/**
*获取拨测点组(可用性拨测点组、高级拨测点组、我的拨测点组)
* @param req DescribeNodeGroupsRequest
* @return DescribeNodeGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeNodeGroupsResponse DescribeNodeGroups(DescribeNodeGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNodeGroups", DescribeNodeGroupsResponse.class);
}
/**
*获取拨测节点
* @param req DescribeNodesRequest
* @return DescribeNodesResponse
* @throws TencentCloudSDKException
*/
public DescribeNodesResponse DescribeNodes(DescribeNodesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNodes", DescribeNodesResponse.class);
}
/**
*查询云拨测指标数据,指标支持使用sum,avg,max,min聚合函数进行指标数据查询
拨测频率与groupby聚合时间设置关联,如拨测频率为 30 分钟,则 grouby 聚合时间建议设置为大于30分钟,避免出现查询数据为空的情况
* @param req DescribeProbeMetricDataRequest
* @return DescribeProbeMetricDataResponse
* @throws TencentCloudSDKException
*/
public DescribeProbeMetricDataResponse DescribeProbeMetricData(DescribeProbeMetricDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProbeMetricData", DescribeProbeMetricDataResponse.class);
}
/**
*查询同个任务类型下的维度标签值,包括查询用户任务信息,具体任务下的多个维度标签信息。(通过为DescribeProbeMetricData接口的Filters参数添加维度筛选条件,可实现多维数据分析)
* @param req DescribeProbeMetricTagValuesRequest
* @return DescribeProbeMetricTagValuesResponse
* @throws TencentCloudSDKException
*/
public DescribeProbeMetricTagValuesResponse DescribeProbeMetricTagValues(DescribeProbeMetricTagValuesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProbeMetricTagValues", DescribeProbeMetricTagValuesResponse.class);
}
/**
*查询拨测节点
* @param req DescribeProbeNodesRequest
* @return DescribeProbeNodesResponse
* @throws TencentCloudSDKException
*/
public DescribeProbeNodesResponse DescribeProbeNodes(DescribeProbeNodesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProbeNodes", DescribeProbeNodesResponse.class);
}
/**
*查询拨测任务列表
* @param req DescribeProbeTasksRequest
* @return DescribeProbeTasksResponse
* @throws TencentCloudSDKException
*/
public DescribeProbeTasksResponse DescribeProbeTasks(DescribeProbeTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProbeTasks", DescribeProbeTasksResponse.class);
}
/**
*恢复拨测任务
* @param req ResumeProbeTaskRequest
* @return ResumeProbeTaskResponse
* @throws TencentCloudSDKException
*/
public ResumeProbeTaskResponse ResumeProbeTask(ResumeProbeTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResumeProbeTask", ResumeProbeTaskResponse.class);
}
/**
*暂停任务
* @param req SuspendProbeTaskRequest
* @return SuspendProbeTaskResponse
* @throws TencentCloudSDKException
*/
public SuspendProbeTaskResponse SuspendProbeTask(SuspendProbeTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SuspendProbeTask", SuspendProbeTaskResponse.class);
}
/**
*更新探测任务属性
* @param req UpdateProbeTaskAttributesRequest
* @return UpdateProbeTaskAttributesResponse
* @throws TencentCloudSDKException
*/
public UpdateProbeTaskAttributesResponse UpdateProbeTaskAttributes(UpdateProbeTaskAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateProbeTaskAttributes", UpdateProbeTaskAttributesResponse.class);
}
/**
*批量更新拨测任务配置
* @param req UpdateProbeTaskConfigurationListRequest
* @return UpdateProbeTaskConfigurationListResponse
* @throws TencentCloudSDKException
*/
public UpdateProbeTaskConfigurationListResponse UpdateProbeTaskConfigurationList(UpdateProbeTaskConfigurationListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateProbeTaskConfigurationList", UpdateProbeTaskConfigurationListResponse.class);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。