4 Star 81 Fork 15

tencentcloud/tencentcloud-sdk-java

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PtsClient.java 21.31 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-07-07 13:09 +08:00 . release 3.1.1294
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
/*
* 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.pts.v20210728;
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.pts.v20210728.models.*;
public class PtsClient extends AbstractClient{
private static String endpoint = "pts.tencentcloudapi.com";
private static String service = "pts";
private static String version = "2021-07-28";
public PtsClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public PtsClient(Credential credential, String region, ClientProfile profile) {
super(PtsClient.endpoint, PtsClient.version, credential, region, profile);
}
/**
*停止定时任务
* @param req AbortCronJobsRequest
* @return AbortCronJobsResponse
* @throws TencentCloudSDKException
*/
public AbortCronJobsResponse AbortCronJobs(AbortCronJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AbortCronJobs", AbortCronJobsResponse.class);
}
/**
*停止任务
* @param req AbortJobRequest
* @return AbortJobResponse
* @throws TencentCloudSDKException
*/
public AbortJobResponse AbortJob(AbortJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AbortJob", AbortJobResponse.class);
}
/**
*调整任务的目标RPS
* @param req AdjustJobSpeedRequest
* @return AdjustJobSpeedResponse
* @throws TencentCloudSDKException
*/
public AdjustJobSpeedResponse AdjustJobSpeed(AdjustJobSpeedRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AdjustJobSpeed", AdjustJobSpeedResponse.class);
}
/**
*复制场景
* @param req CopyScenarioRequest
* @return CopyScenarioResponse
* @throws TencentCloudSDKException
*/
public CopyScenarioResponse CopyScenario(CopyScenarioRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CopyScenario", CopyScenarioResponse.class);
}
/**
*创建告警通知接收组
* @param req CreateAlertChannelRequest
* @return CreateAlertChannelResponse
* @throws TencentCloudSDKException
*/
public CreateAlertChannelResponse CreateAlertChannel(CreateAlertChannelRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAlertChannel", CreateAlertChannelResponse.class);
}
/**
*创建定时任务
* @param req CreateCronJobRequest
* @return CreateCronJobResponse
* @throws TencentCloudSDKException
*/
public CreateCronJobResponse CreateCronJob(CreateCronJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCronJob", CreateCronJobResponse.class);
}
/**
*创建环境
* @param req CreateEnvironmentRequest
* @return CreateEnvironmentResponse
* @throws TencentCloudSDKException
*/
public CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateEnvironment", CreateEnvironmentResponse.class);
}
/**
*创建文件
* @param req CreateFileRequest
* @return CreateFileResponse
* @throws TencentCloudSDKException
*/
public CreateFileResponse CreateFile(CreateFileRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateFile", CreateFileResponse.class);
}
/**
*创建项目
* @param req CreateProjectRequest
* @return CreateProjectResponse
* @throws TencentCloudSDKException
*/
public CreateProjectResponse CreateProject(CreateProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateProject", CreateProjectResponse.class);
}
/**
*创建场景
* @param req CreateScenarioRequest
* @return CreateScenarioResponse
* @throws TencentCloudSDKException
*/
public CreateScenarioResponse CreateScenario(CreateScenarioRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateScenario", CreateScenarioResponse.class);
}
/**
*删除告警通知接收组
* @param req DeleteAlertChannelRequest
* @return DeleteAlertChannelResponse
* @throws TencentCloudSDKException
*/
public DeleteAlertChannelResponse DeleteAlertChannel(DeleteAlertChannelRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAlertChannel", DeleteAlertChannelResponse.class);
}
/**
*删除定时任务
* @param req DeleteCronJobsRequest
* @return DeleteCronJobsResponse
* @throws TencentCloudSDKException
*/
public DeleteCronJobsResponse DeleteCronJobs(DeleteCronJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCronJobs", DeleteCronJobsResponse.class);
}
/**
*删除环境
* @param req DeleteEnvironmentsRequest
* @return DeleteEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DeleteEnvironmentsResponse DeleteEnvironments(DeleteEnvironmentsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteEnvironments", DeleteEnvironmentsResponse.class);
}
/**
*删除文件
* @param req DeleteFilesRequest
* @return DeleteFilesResponse
* @throws TencentCloudSDKException
*/
public DeleteFilesResponse DeleteFiles(DeleteFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteFiles", DeleteFilesResponse.class);
}
/**
*删除任务
* @param req DeleteJobsRequest
* @return DeleteJobsResponse
* @throws TencentCloudSDKException
*/
public DeleteJobsResponse DeleteJobs(DeleteJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteJobs", DeleteJobsResponse.class);
}
/**
*删除项目
* @param req DeleteProjectsRequest
* @return DeleteProjectsResponse
* @throws TencentCloudSDKException
*/
public DeleteProjectsResponse DeleteProjects(DeleteProjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteProjects", DeleteProjectsResponse.class);
}
/**
*删除场景
* @param req DeleteScenariosRequest
* @return DeleteScenariosResponse
* @throws TencentCloudSDKException
*/
public DeleteScenariosResponse DeleteScenarios(DeleteScenariosRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteScenarios", DeleteScenariosResponse.class);
}
/**
*查询告警通知接收组
* @param req DescribeAlertChannelsRequest
* @return DescribeAlertChannelsResponse
* @throws TencentCloudSDKException
*/
public DescribeAlertChannelsResponse DescribeAlertChannels(DescribeAlertChannelsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAlertChannels", DescribeAlertChannelsResponse.class);
}
/**
*返回告警历史项的列表
* @param req DescribeAlertRecordsRequest
* @return DescribeAlertRecordsResponse
* @throws TencentCloudSDKException
*/
public DescribeAlertRecordsResponse DescribeAlertRecords(DescribeAlertRecordsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAlertRecords", DescribeAlertRecordsResponse.class);
}
/**
*查询系统支持的指标
* @param req DescribeAvailableMetricsRequest
* @return DescribeAvailableMetricsResponse
* @throws TencentCloudSDKException
*/
public DescribeAvailableMetricsResponse DescribeAvailableMetrics(DescribeAvailableMetricsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAvailableMetrics", DescribeAvailableMetricsResponse.class);
}
/**
*查询检查点汇总信息
* @param req DescribeCheckSummaryRequest
* @return DescribeCheckSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeCheckSummaryResponse DescribeCheckSummary(DescribeCheckSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCheckSummary", DescribeCheckSummaryResponse.class);
}
/**
*列出定时任务,非必填数组为空就默认全选
* @param req DescribeCronJobsRequest
* @return DescribeCronJobsResponse
* @throws TencentCloudSDKException
*/
public DescribeCronJobsResponse DescribeCronJobs(DescribeCronJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCronJobs", DescribeCronJobsResponse.class);
}
/**
*查看环境列表
* @param req DescribeEnvironmentsRequest
* @return DescribeEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentsResponse DescribeEnvironments(DescribeEnvironmentsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeEnvironments", DescribeEnvironmentsResponse.class);
}
/**
*查询错误详情汇总信息
* @param req DescribeErrorSummaryRequest
* @return DescribeErrorSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeErrorSummaryResponse DescribeErrorSummary(DescribeErrorSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeErrorSummary", DescribeErrorSummaryResponse.class);
}
/**
*查询文件列表
* @param req DescribeFilesRequest
* @return DescribeFilesResponse
* @throws TencentCloudSDKException
*/
public DescribeFilesResponse DescribeFiles(DescribeFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeFiles", DescribeFilesResponse.class);
}
/**
*查询任务列表
* @param req DescribeJobsRequest
* @return DescribeJobsResponse
* @throws TencentCloudSDKException
*/
public DescribeJobsResponse DescribeJobs(DescribeJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeJobs", DescribeJobsResponse.class);
}
/**
*查询标签内容
* @param req DescribeLabelValuesRequest
* @return DescribeLabelValuesResponse
* @throws TencentCloudSDKException
*/
public DescribeLabelValuesResponse DescribeLabelValues(DescribeLabelValuesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLabelValues", DescribeLabelValuesResponse.class);
}
/**
*查询指标所有的label及values值
* @param req DescribeMetricLabelWithValuesRequest
* @return DescribeMetricLabelWithValuesResponse
* @throws TencentCloudSDKException
*/
public DescribeMetricLabelWithValuesResponse DescribeMetricLabelWithValues(DescribeMetricLabelWithValuesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeMetricLabelWithValues", DescribeMetricLabelWithValuesResponse.class);
}
/**
*压测过程日志包括引擎输出日志及用户输出日志
* @param req DescribeNormalLogsRequest
* @return DescribeNormalLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeNormalLogsResponse DescribeNormalLogs(DescribeNormalLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNormalLogs", DescribeNormalLogsResponse.class);
}
/**
*查询项目列表
* @param req DescribeProjectsRequest
* @return DescribeProjectsResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectsResponse DescribeProjects(DescribeProjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjects", DescribeProjectsResponse.class);
}
/**
*查询地域列表
* @param req DescribeRegionsRequest
* @return DescribeRegionsResponse
* @throws TencentCloudSDKException
*/
public DescribeRegionsResponse DescribeRegions(DescribeRegionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRegions", DescribeRegionsResponse.class);
}
/**
*查询请求汇总信息
* @param req DescribeRequestSummaryRequest
* @return DescribeRequestSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeRequestSummaryResponse DescribeRequestSummary(DescribeRequestSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRequestSummary", DescribeRequestSummaryResponse.class);
}
/**
*批量查询指标,返回固定时间点指标内容
* @param req DescribeSampleBatchQueryRequest
* @return DescribeSampleBatchQueryResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleBatchQueryResponse DescribeSampleBatchQuery(DescribeSampleBatchQueryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleBatchQuery", DescribeSampleBatchQueryResponse.class);
}
/**
*查询采样日志
* @param req DescribeSampleLogsRequest
* @return DescribeSampleLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleLogsResponse DescribeSampleLogs(DescribeSampleLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleLogs", DescribeSampleLogsResponse.class);
}
/**
*批量查询指标矩阵
* @param req DescribeSampleMatrixBatchQueryRequest
* @return DescribeSampleMatrixBatchQueryResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleMatrixBatchQueryResponse DescribeSampleMatrixBatchQuery(DescribeSampleMatrixBatchQueryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleMatrixBatchQuery", DescribeSampleMatrixBatchQueryResponse.class);
}
/**
*查询指标矩阵
* @param req DescribeSampleMatrixQueryRequest
* @return DescribeSampleMatrixQueryResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleMatrixQueryResponse DescribeSampleMatrixQuery(DescribeSampleMatrixQueryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleMatrixQuery", DescribeSampleMatrixQueryResponse.class);
}
/**
*查询指标,返回固定时间点指标内容
* @param req DescribeSampleQueryRequest
* @return DescribeSampleQueryResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleQueryResponse DescribeSampleQuery(DescribeSampleQueryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleQuery", DescribeSampleQueryResponse.class);
}
/**
*查询场景配置并附带已经执行的任务内容
* @param req DescribeScenarioWithJobsRequest
* @return DescribeScenarioWithJobsResponse
* @throws TencentCloudSDKException
*/
public DescribeScenarioWithJobsResponse DescribeScenarioWithJobs(DescribeScenarioWithJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeScenarioWithJobs", DescribeScenarioWithJobsResponse.class);
}
/**
*查询场景列表
* @param req DescribeScenariosRequest
* @return DescribeScenariosResponse
* @throws TencentCloudSDKException
*/
public DescribeScenariosResponse DescribeScenarios(DescribeScenariosRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeScenarios", DescribeScenariosResponse.class);
}
/**
*生成临时COS凭证
* @param req GenerateTmpKeyRequest
* @return GenerateTmpKeyResponse
* @throws TencentCloudSDKException
*/
public GenerateTmpKeyResponse GenerateTmpKey(GenerateTmpKeyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GenerateTmpKey", GenerateTmpKeyResponse.class);
}
/**
*重启状态为已中止的定时任务
* @param req RestartCronJobsRequest
* @return RestartCronJobsResponse
* @throws TencentCloudSDKException
*/
public RestartCronJobsResponse RestartCronJobs(RestartCronJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RestartCronJobs", RestartCronJobsResponse.class);
}
/**
*创建并启动任务
* @param req StartJobRequest
* @return StartJobResponse
* @throws TencentCloudSDKException
*/
public StartJobResponse StartJob(StartJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "StartJob", StartJobResponse.class);
}
/**
*更新定时任务
* @param req UpdateCronJobRequest
* @return UpdateCronJobResponse
* @throws TencentCloudSDKException
*/
public UpdateCronJobResponse UpdateCronJob(UpdateCronJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateCronJob", UpdateCronJobResponse.class);
}
/**
*更新环境
* @param req UpdateEnvironmentRequest
* @return UpdateEnvironmentResponse
* @throws TencentCloudSDKException
*/
public UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateEnvironment", UpdateEnvironmentResponse.class);
}
/**
*更新关联文件场景
* @param req UpdateFileScenarioRelationRequest
* @return UpdateFileScenarioRelationResponse
* @throws TencentCloudSDKException
*/
public UpdateFileScenarioRelationResponse UpdateFileScenarioRelation(UpdateFileScenarioRelationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateFileScenarioRelation", UpdateFileScenarioRelationResponse.class);
}
/**
*更新任务
* @param req UpdateJobRequest
* @return UpdateJobResponse
* @throws TencentCloudSDKException
*/
public UpdateJobResponse UpdateJob(UpdateJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateJob", UpdateJobResponse.class);
}
/**
*更新项目
* @param req UpdateProjectRequest
* @return UpdateProjectResponse
* @throws TencentCloudSDKException
*/
public UpdateProjectResponse UpdateProject(UpdateProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateProject", UpdateProjectResponse.class);
}
/**
*更新场景
* @param req UpdateScenarioRequest
* @return UpdateScenarioResponse
* @throws TencentCloudSDKException
*/
public UpdateScenarioResponse UpdateScenario(UpdateScenarioRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateScenario", UpdateScenarioResponse.class);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-java.git
git@gitee.com:tencentcloud/tencentcloud-sdk-java.git
tencentcloud
tencentcloud-sdk-java
tencentcloud-sdk-java
master

搜索帮助