public class ClsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
ClsClient(Credential credential,
String region) |
ClsClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
AddMachineGroupInfoResponse |
AddMachineGroupInfo(AddMachineGroupInfoRequest req)
This API is used to add machine group information.
|
ApplyConfigToMachineGroupResponse |
ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest req)
This API is used to apply the collection configuration to the specified machine group.
|
CloseKafkaConsumerResponse |
CloseKafkaConsumer(CloseKafkaConsumerRequest req)
This API is used to disable Kafka consumption.
|
CreateAlarmResponse |
CreateAlarm(CreateAlarmRequest req)
This API is used to create an alarm policy.
|
CreateAlarmNoticeResponse |
CreateAlarmNotice(CreateAlarmNoticeRequest req)
This API is used to create a notification group.
|
CreateConfigResponse |
CreateConfig(CreateConfigRequest req)
This API is used to create a collection rule configuration.
|
CreateConsumerResponse |
CreateConsumer(CreateConsumerRequest req)
This API is used to create a shipping task.
|
CreateCosRechargeResponse |
CreateCosRecharge(CreateCosRechargeRequest req)
This API is used to create a COS import task.
|
CreateExportResponse |
CreateExport(CreateExportRequest req)
This API is used to create a download task.
|
CreateIndexResponse |
CreateIndex(CreateIndexRequest req)
This API is used to create an index.
|
CreateLogsetResponse |
CreateLogset(CreateLogsetRequest req)
This API is used to create a logset.
|
CreateMachineGroupResponse |
CreateMachineGroup(CreateMachineGroupRequest req)
This API is used to create a machine group.
|
CreateShipperResponse |
CreateShipper(CreateShipperRequest req)
This API is used to create a task to ship to COS.
|
CreateTopicResponse |
CreateTopic(CreateTopicRequest req)
This API is used to create a log topic.
|
DeleteAlarmResponse |
DeleteAlarm(DeleteAlarmRequest req)
This API is used to delete an alarm policy.
|
DeleteAlarmNoticeResponse |
DeleteAlarmNotice(DeleteAlarmNoticeRequest req)
This API is used to delete a notification group.
|
DeleteConfigResponse |
DeleteConfig(DeleteConfigRequest req)
This API is used to delete a collection rule configuration.
|
DeleteConfigFromMachineGroupResponse |
DeleteConfigFromMachineGroup(DeleteConfigFromMachineGroupRequest req)
This API is used to delete the collection configuration applied to a machine group.
|
DeleteConsumerResponse |
DeleteConsumer(DeleteConsumerRequest req)
This API is used to delete a shipping task.
|
DeleteExportResponse |
DeleteExport(DeleteExportRequest req)
This API is used to delete a log download task.
|
DeleteIndexResponse |
DeleteIndex(DeleteIndexRequest req)
This API is used to delete the index configuration of a log topic.
|
DeleteLogsetResponse |
DeleteLogset(DeleteLogsetRequest req)
This API is used to delete a logset.
|
DeleteMachineGroupResponse |
DeleteMachineGroup(DeleteMachineGroupRequest req)
This API is used to delete a machine group.
|
DeleteMachineGroupInfoResponse |
DeleteMachineGroupInfo(DeleteMachineGroupInfoRequest req)
This API is used to delete machine group information.
|
DeleteShipperResponse |
DeleteShipper(DeleteShipperRequest req)
This API is used to delete a shipping rule.
|
DeleteTopicResponse |
DeleteTopic(DeleteTopicRequest req)
This API is used to delete a log topic.
|
DescribeAlarmNoticesResponse |
DescribeAlarmNotices(DescribeAlarmNoticesRequest req)
This API is used to get the notification group list.
|
DescribeAlarmsResponse |
DescribeAlarms(DescribeAlarmsRequest req)
This API is used to get the alarm policy list.
|
DescribeAlertRecordHistoryResponse |
DescribeAlertRecordHistory(DescribeAlertRecordHistoryRequest req)
This API is used to get alarm records, such as today's uncleared alarms.
|
DescribeConfigMachineGroupsResponse |
DescribeConfigMachineGroups(DescribeConfigMachineGroupsRequest req)
This API is used to get the machine group bound to a collection rule configuration.
|
DescribeConfigsResponse |
DescribeConfigs(DescribeConfigsRequest req)
This API is used to get a collection rule configuration.
|
DescribeConsumerResponse |
DescribeConsumer(DescribeConsumerRequest req)
This API is used to query a shipping task.
|
DescribeCosRechargesResponse |
DescribeCosRecharges(DescribeCosRechargesRequest req)
This API is used to get COS import configuration.
|
DescribeExportsResponse |
DescribeExports(DescribeExportsRequest req)
This API is used to get the list of log download tasks.
|
DescribeIndexResponse |
DescribeIndex(DescribeIndexRequest req)
This API is used to get the index configuration information.
|
DescribeLogContextResponse |
DescribeLogContext(DescribeLogContextRequest req)
This API is used to search for content in the log context.
|
DescribeLogHistogramResponse |
DescribeLogHistogram(DescribeLogHistogramRequest req)
This API is used to get a log count histogram.
|
DescribeLogsetsResponse |
DescribeLogsets(DescribeLogsetsRequest req)
This API is used to get the list of logsets.
|
DescribeMachineGroupConfigsResponse |
DescribeMachineGroupConfigs(DescribeMachineGroupConfigsRequest req)
This API is used to get the collection rule configuration bound to a machine group.
|
DescribeMachineGroupsResponse |
DescribeMachineGroups(DescribeMachineGroupsRequest req)
This API is used to get the list of machine groups.
|
DescribeMachinesResponse |
DescribeMachines(DescribeMachinesRequest req)
This API is used to get the machine status in the specified machine group.
|
DescribePartitionsResponse |
DescribePartitions(DescribePartitionsRequest req)
This API is used to get the list of topic partitions.
|
DescribeShippersResponse |
DescribeShippers(DescribeShippersRequest req)
This API is used to get the configuration of the task of shipping to COS.
|
DescribeShipperTasksResponse |
DescribeShipperTasks(DescribeShipperTasksRequest req)
This API is used to get the list of shipping tasks.
|
DescribeTopicsResponse |
DescribeTopics(DescribeTopicsRequest req)
This API is used to get the list of log topics and supports pagination.
|
GetAlarmLogResponse |
GetAlarmLog(GetAlarmLogRequest req)
This API is used to get the records of alarm tasks.
|
MergePartitionResponse |
MergePartition(MergePartitionRequest req)
This API is used to merge a topic partition in read/write state.
|
ModifyAlarmResponse |
ModifyAlarm(ModifyAlarmRequest req)
This API is used to modify an alarm policy.
|
ModifyAlarmNoticeResponse |
ModifyAlarmNotice(ModifyAlarmNoticeRequest req)
This API is used to modify a notification group.
|
ModifyConfigResponse |
ModifyConfig(ModifyConfigRequest req)
This API is used to modify a collection rule configuration.
|
ModifyConsumerResponse |
ModifyConsumer(ModifyConsumerRequest req)
This API is used to modify a shipping task.
|
ModifyCosRechargeResponse |
ModifyCosRecharge(ModifyCosRechargeRequest req)
This API is used to modify a COS import task.
|
ModifyIndexResponse |
ModifyIndex(ModifyIndexRequest req)
This API is used to modify the index configuration.
|
ModifyLogsetResponse |
ModifyLogset(ModifyLogsetRequest req)
This API is used to modify a logset.
|
ModifyMachineGroupResponse |
ModifyMachineGroup(ModifyMachineGroupRequest req)
This API is used to modify a machine group.
|
ModifyShipperResponse |
ModifyShipper(ModifyShipperRequest req)
This API is used to modify an existing shipping rule.
|
ModifyTopicResponse |
ModifyTopic(ModifyTopicRequest req)
This API is used to modify a log topic.
|
OpenKafkaConsumerResponse |
OpenKafkaConsumer(OpenKafkaConsumerRequest req)
This API is used to enable the Kafka consumption feature.
|
RetryShipperTaskResponse |
RetryShipperTask(RetryShipperTaskRequest req)
This API is used to retry a failed shipping task.
|
SearchLogResponse |
SearchLog(SearchLogRequest req)
This API is used to search logs.
|
SplitPartitionResponse |
SplitPartition(SplitPartitionRequest req)
This API is used to split a topic partition.
|
UploadLogResponse |
UploadLog(UploadLogRequest req)
## Note
To ensure log data reliability and help you use CLS more efficiently, we recommend you use the optimized API to upload logs.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public ClsClient(Credential credential, String region)
public ClsClient(Credential credential, String region, ClientProfile profile)
public AddMachineGroupInfoResponse AddMachineGroupInfo(AddMachineGroupInfoRequest req) throws TencentCloudSDKException
req
- AddMachineGroupInfoRequestTencentCloudSDKException
public ApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest req) throws TencentCloudSDKException
req
- ApplyConfigToMachineGroupRequestTencentCloudSDKException
public CloseKafkaConsumerResponse CloseKafkaConsumer(CloseKafkaConsumerRequest req) throws TencentCloudSDKException
req
- CloseKafkaConsumerRequestTencentCloudSDKException
public CreateAlarmResponse CreateAlarm(CreateAlarmRequest req) throws TencentCloudSDKException
req
- CreateAlarmRequestTencentCloudSDKException
public CreateAlarmNoticeResponse CreateAlarmNotice(CreateAlarmNoticeRequest req) throws TencentCloudSDKException
req
- CreateAlarmNoticeRequestTencentCloudSDKException
public CreateConfigResponse CreateConfig(CreateConfigRequest req) throws TencentCloudSDKException
req
- CreateConfigRequestTencentCloudSDKException
public CreateConsumerResponse CreateConsumer(CreateConsumerRequest req) throws TencentCloudSDKException
req
- CreateConsumerRequestTencentCloudSDKException
public CreateCosRechargeResponse CreateCosRecharge(CreateCosRechargeRequest req) throws TencentCloudSDKException
req
- CreateCosRechargeRequestTencentCloudSDKException
public CreateExportResponse CreateExport(CreateExportRequest req) throws TencentCloudSDKException
req
- CreateExportRequestTencentCloudSDKException
public CreateIndexResponse CreateIndex(CreateIndexRequest req) throws TencentCloudSDKException
req
- CreateIndexRequestTencentCloudSDKException
public CreateLogsetResponse CreateLogset(CreateLogsetRequest req) throws TencentCloudSDKException
req
- CreateLogsetRequestTencentCloudSDKException
public CreateMachineGroupResponse CreateMachineGroup(CreateMachineGroupRequest req) throws TencentCloudSDKException
req
- CreateMachineGroupRequestTencentCloudSDKException
public CreateShipperResponse CreateShipper(CreateShipperRequest req) throws TencentCloudSDKException
req
- CreateShipperRequestTencentCloudSDKException
public CreateTopicResponse CreateTopic(CreateTopicRequest req) throws TencentCloudSDKException
req
- CreateTopicRequestTencentCloudSDKException
public DeleteAlarmResponse DeleteAlarm(DeleteAlarmRequest req) throws TencentCloudSDKException
req
- DeleteAlarmRequestTencentCloudSDKException
public DeleteAlarmNoticeResponse DeleteAlarmNotice(DeleteAlarmNoticeRequest req) throws TencentCloudSDKException
req
- DeleteAlarmNoticeRequestTencentCloudSDKException
public DeleteConfigResponse DeleteConfig(DeleteConfigRequest req) throws TencentCloudSDKException
req
- DeleteConfigRequestTencentCloudSDKException
public DeleteConfigFromMachineGroupResponse DeleteConfigFromMachineGroup(DeleteConfigFromMachineGroupRequest req) throws TencentCloudSDKException
req
- DeleteConfigFromMachineGroupRequestTencentCloudSDKException
public DeleteConsumerResponse DeleteConsumer(DeleteConsumerRequest req) throws TencentCloudSDKException
req
- DeleteConsumerRequestTencentCloudSDKException
public DeleteExportResponse DeleteExport(DeleteExportRequest req) throws TencentCloudSDKException
req
- DeleteExportRequestTencentCloudSDKException
public DeleteIndexResponse DeleteIndex(DeleteIndexRequest req) throws TencentCloudSDKException
req
- DeleteIndexRequestTencentCloudSDKException
public DeleteLogsetResponse DeleteLogset(DeleteLogsetRequest req) throws TencentCloudSDKException
req
- DeleteLogsetRequestTencentCloudSDKException
public DeleteMachineGroupResponse DeleteMachineGroup(DeleteMachineGroupRequest req) throws TencentCloudSDKException
req
- DeleteMachineGroupRequestTencentCloudSDKException
public DeleteMachineGroupInfoResponse DeleteMachineGroupInfo(DeleteMachineGroupInfoRequest req) throws TencentCloudSDKException
req
- DeleteMachineGroupInfoRequestTencentCloudSDKException
public DeleteShipperResponse DeleteShipper(DeleteShipperRequest req) throws TencentCloudSDKException
req
- DeleteShipperRequestTencentCloudSDKException
public DeleteTopicResponse DeleteTopic(DeleteTopicRequest req) throws TencentCloudSDKException
req
- DeleteTopicRequestTencentCloudSDKException
public DescribeAlarmNoticesResponse DescribeAlarmNotices(DescribeAlarmNoticesRequest req) throws TencentCloudSDKException
req
- DescribeAlarmNoticesRequestTencentCloudSDKException
public DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest req) throws TencentCloudSDKException
req
- DescribeAlarmsRequestTencentCloudSDKException
public DescribeAlertRecordHistoryResponse DescribeAlertRecordHistory(DescribeAlertRecordHistoryRequest req) throws TencentCloudSDKException
req
- DescribeAlertRecordHistoryRequestTencentCloudSDKException
public DescribeConfigMachineGroupsResponse DescribeConfigMachineGroups(DescribeConfigMachineGroupsRequest req) throws TencentCloudSDKException
req
- DescribeConfigMachineGroupsRequestTencentCloudSDKException
public DescribeConfigsResponse DescribeConfigs(DescribeConfigsRequest req) throws TencentCloudSDKException
req
- DescribeConfigsRequestTencentCloudSDKException
public DescribeConsumerResponse DescribeConsumer(DescribeConsumerRequest req) throws TencentCloudSDKException
req
- DescribeConsumerRequestTencentCloudSDKException
public DescribeCosRechargesResponse DescribeCosRecharges(DescribeCosRechargesRequest req) throws TencentCloudSDKException
req
- DescribeCosRechargesRequestTencentCloudSDKException
public DescribeExportsResponse DescribeExports(DescribeExportsRequest req) throws TencentCloudSDKException
req
- DescribeExportsRequestTencentCloudSDKException
public DescribeIndexResponse DescribeIndex(DescribeIndexRequest req) throws TencentCloudSDKException
req
- DescribeIndexRequestTencentCloudSDKException
public DescribeLogContextResponse DescribeLogContext(DescribeLogContextRequest req) throws TencentCloudSDKException
req
- DescribeLogContextRequestTencentCloudSDKException
public DescribeLogHistogramResponse DescribeLogHistogram(DescribeLogHistogramRequest req) throws TencentCloudSDKException
req
- DescribeLogHistogramRequestTencentCloudSDKException
public DescribeLogsetsResponse DescribeLogsets(DescribeLogsetsRequest req) throws TencentCloudSDKException
req
- DescribeLogsetsRequestTencentCloudSDKException
public DescribeMachineGroupConfigsResponse DescribeMachineGroupConfigs(DescribeMachineGroupConfigsRequest req) throws TencentCloudSDKException
req
- DescribeMachineGroupConfigsRequestTencentCloudSDKException
public DescribeMachineGroupsResponse DescribeMachineGroups(DescribeMachineGroupsRequest req) throws TencentCloudSDKException
req
- DescribeMachineGroupsRequestTencentCloudSDKException
public DescribeMachinesResponse DescribeMachines(DescribeMachinesRequest req) throws TencentCloudSDKException
req
- DescribeMachinesRequestTencentCloudSDKException
public DescribePartitionsResponse DescribePartitions(DescribePartitionsRequest req) throws TencentCloudSDKException
req
- DescribePartitionsRequestTencentCloudSDKException
public DescribeShipperTasksResponse DescribeShipperTasks(DescribeShipperTasksRequest req) throws TencentCloudSDKException
req
- DescribeShipperTasksRequestTencentCloudSDKException
public DescribeShippersResponse DescribeShippers(DescribeShippersRequest req) throws TencentCloudSDKException
req
- DescribeShippersRequestTencentCloudSDKException
public DescribeTopicsResponse DescribeTopics(DescribeTopicsRequest req) throws TencentCloudSDKException
req
- DescribeTopicsRequestTencentCloudSDKException
public GetAlarmLogResponse GetAlarmLog(GetAlarmLogRequest req) throws TencentCloudSDKException
req
- GetAlarmLogRequestTencentCloudSDKException
public MergePartitionResponse MergePartition(MergePartitionRequest req) throws TencentCloudSDKException
req
- MergePartitionRequestTencentCloudSDKException
public ModifyAlarmResponse ModifyAlarm(ModifyAlarmRequest req) throws TencentCloudSDKException
req
- ModifyAlarmRequestTencentCloudSDKException
public ModifyAlarmNoticeResponse ModifyAlarmNotice(ModifyAlarmNoticeRequest req) throws TencentCloudSDKException
req
- ModifyAlarmNoticeRequestTencentCloudSDKException
public ModifyConfigResponse ModifyConfig(ModifyConfigRequest req) throws TencentCloudSDKException
req
- ModifyConfigRequestTencentCloudSDKException
public ModifyConsumerResponse ModifyConsumer(ModifyConsumerRequest req) throws TencentCloudSDKException
req
- ModifyConsumerRequestTencentCloudSDKException
public ModifyCosRechargeResponse ModifyCosRecharge(ModifyCosRechargeRequest req) throws TencentCloudSDKException
req
- ModifyCosRechargeRequestTencentCloudSDKException
public ModifyIndexResponse ModifyIndex(ModifyIndexRequest req) throws TencentCloudSDKException
req
- ModifyIndexRequestTencentCloudSDKException
public ModifyLogsetResponse ModifyLogset(ModifyLogsetRequest req) throws TencentCloudSDKException
req
- ModifyLogsetRequestTencentCloudSDKException
public ModifyMachineGroupResponse ModifyMachineGroup(ModifyMachineGroupRequest req) throws TencentCloudSDKException
req
- ModifyMachineGroupRequestTencentCloudSDKException
public ModifyShipperResponse ModifyShipper(ModifyShipperRequest req) throws TencentCloudSDKException
req
- ModifyShipperRequestTencentCloudSDKException
public ModifyTopicResponse ModifyTopic(ModifyTopicRequest req) throws TencentCloudSDKException
req
- ModifyTopicRequestTencentCloudSDKException
public OpenKafkaConsumerResponse OpenKafkaConsumer(OpenKafkaConsumerRequest req) throws TencentCloudSDKException
req
- OpenKafkaConsumerRequestTencentCloudSDKException
public RetryShipperTaskResponse RetryShipperTask(RetryShipperTaskRequest req) throws TencentCloudSDKException
req
- RetryShipperTaskRequestTencentCloudSDKException
public SearchLogResponse SearchLog(SearchLogRequest req) throws TencentCloudSDKException
req
- SearchLogRequestTencentCloudSDKException
public SplitPartitionResponse SplitPartition(SplitPartitionRequest req) throws TencentCloudSDKException
req
- SplitPartitionRequestTencentCloudSDKException
public UploadLogResponse UploadLog(UploadLogRequest req) throws TencentCloudSDKException
req
- UploadLogRequestTencentCloudSDKException
Copyright © 2023. All rights reserved.