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. | 
| 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 shipping rule. | 
| 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. | 
| 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. | 
| 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 list of shipping rules. | 
| 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. | 
| 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 [Uploading Structured Logs](https://intl.cloud.tencent.com/document/api/614/16873?from_cn_redirect=1) to upload logs. | 
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic ClsClient(Credential credential, String region)
public ClsClient(Credential credential, String region, ClientProfile profile)
public AddMachineGroupInfoResponse AddMachineGroupInfo(AddMachineGroupInfoRequest req) throws TencentCloudSDKException
req - AddMachineGroupInfoRequestTencentCloudSDKExceptionpublic ApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest req) throws TencentCloudSDKException
req - ApplyConfigToMachineGroupRequestTencentCloudSDKExceptionpublic CloseKafkaConsumerResponse CloseKafkaConsumer(CloseKafkaConsumerRequest req) throws TencentCloudSDKException
req - CloseKafkaConsumerRequestTencentCloudSDKExceptionpublic CreateAlarmResponse CreateAlarm(CreateAlarmRequest req) throws TencentCloudSDKException
req - CreateAlarmRequestTencentCloudSDKExceptionpublic CreateAlarmNoticeResponse CreateAlarmNotice(CreateAlarmNoticeRequest req) throws TencentCloudSDKException
req - CreateAlarmNoticeRequestTencentCloudSDKExceptionpublic CreateConfigResponse CreateConfig(CreateConfigRequest req) throws TencentCloudSDKException
req - CreateConfigRequestTencentCloudSDKExceptionpublic CreateConsumerResponse CreateConsumer(CreateConsumerRequest req) throws TencentCloudSDKException
req - CreateConsumerRequestTencentCloudSDKExceptionpublic CreateExportResponse CreateExport(CreateExportRequest req) throws TencentCloudSDKException
req - CreateExportRequestTencentCloudSDKExceptionpublic CreateIndexResponse CreateIndex(CreateIndexRequest req) throws TencentCloudSDKException
req - CreateIndexRequestTencentCloudSDKExceptionpublic CreateLogsetResponse CreateLogset(CreateLogsetRequest req) throws TencentCloudSDKException
req - CreateLogsetRequestTencentCloudSDKExceptionpublic CreateMachineGroupResponse CreateMachineGroup(CreateMachineGroupRequest req) throws TencentCloudSDKException
req - CreateMachineGroupRequestTencentCloudSDKExceptionpublic CreateShipperResponse CreateShipper(CreateShipperRequest req) throws TencentCloudSDKException
req - CreateShipperRequestTencentCloudSDKExceptionpublic CreateTopicResponse CreateTopic(CreateTopicRequest req) throws TencentCloudSDKException
req - CreateTopicRequestTencentCloudSDKExceptionpublic DeleteAlarmResponse DeleteAlarm(DeleteAlarmRequest req) throws TencentCloudSDKException
req - DeleteAlarmRequestTencentCloudSDKExceptionpublic DeleteAlarmNoticeResponse DeleteAlarmNotice(DeleteAlarmNoticeRequest req) throws TencentCloudSDKException
req - DeleteAlarmNoticeRequestTencentCloudSDKExceptionpublic DeleteConfigResponse DeleteConfig(DeleteConfigRequest req) throws TencentCloudSDKException
req - DeleteConfigRequestTencentCloudSDKExceptionpublic DeleteConfigFromMachineGroupResponse DeleteConfigFromMachineGroup(DeleteConfigFromMachineGroupRequest req) throws TencentCloudSDKException
req - DeleteConfigFromMachineGroupRequestTencentCloudSDKExceptionpublic DeleteConsumerResponse DeleteConsumer(DeleteConsumerRequest req) throws TencentCloudSDKException
req - DeleteConsumerRequestTencentCloudSDKExceptionpublic DeleteExportResponse DeleteExport(DeleteExportRequest req) throws TencentCloudSDKException
req - DeleteExportRequestTencentCloudSDKExceptionpublic DeleteIndexResponse DeleteIndex(DeleteIndexRequest req) throws TencentCloudSDKException
req - DeleteIndexRequestTencentCloudSDKExceptionpublic DeleteLogsetResponse DeleteLogset(DeleteLogsetRequest req) throws TencentCloudSDKException
req - DeleteLogsetRequestTencentCloudSDKExceptionpublic DeleteMachineGroupResponse DeleteMachineGroup(DeleteMachineGroupRequest req) throws TencentCloudSDKException
req - DeleteMachineGroupRequestTencentCloudSDKExceptionpublic DeleteMachineGroupInfoResponse DeleteMachineGroupInfo(DeleteMachineGroupInfoRequest req) throws TencentCloudSDKException
req - DeleteMachineGroupInfoRequestTencentCloudSDKExceptionpublic DeleteShipperResponse DeleteShipper(DeleteShipperRequest req) throws TencentCloudSDKException
req - DeleteShipperRequestTencentCloudSDKExceptionpublic DeleteTopicResponse DeleteTopic(DeleteTopicRequest req) throws TencentCloudSDKException
req - DeleteTopicRequestTencentCloudSDKExceptionpublic DescribeAlarmNoticesResponse DescribeAlarmNotices(DescribeAlarmNoticesRequest req) throws TencentCloudSDKException
req - DescribeAlarmNoticesRequestTencentCloudSDKExceptionpublic DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest req) throws TencentCloudSDKException
req - DescribeAlarmsRequestTencentCloudSDKExceptionpublic DescribeConfigMachineGroupsResponse DescribeConfigMachineGroups(DescribeConfigMachineGroupsRequest req) throws TencentCloudSDKException
req - DescribeConfigMachineGroupsRequestTencentCloudSDKExceptionpublic DescribeConfigsResponse DescribeConfigs(DescribeConfigsRequest req) throws TencentCloudSDKException
req - DescribeConfigsRequestTencentCloudSDKExceptionpublic DescribeConsumerResponse DescribeConsumer(DescribeConsumerRequest req) throws TencentCloudSDKException
req - DescribeConsumerRequestTencentCloudSDKExceptionpublic DescribeExportsResponse DescribeExports(DescribeExportsRequest req) throws TencentCloudSDKException
req - DescribeExportsRequestTencentCloudSDKExceptionpublic DescribeIndexResponse DescribeIndex(DescribeIndexRequest req) throws TencentCloudSDKException
req - DescribeIndexRequestTencentCloudSDKExceptionpublic DescribeLogContextResponse DescribeLogContext(DescribeLogContextRequest req) throws TencentCloudSDKException
req - DescribeLogContextRequestTencentCloudSDKExceptionpublic DescribeLogHistogramResponse DescribeLogHistogram(DescribeLogHistogramRequest req) throws TencentCloudSDKException
req - DescribeLogHistogramRequestTencentCloudSDKExceptionpublic DescribeLogsetsResponse DescribeLogsets(DescribeLogsetsRequest req) throws TencentCloudSDKException
req - DescribeLogsetsRequestTencentCloudSDKExceptionpublic DescribeMachineGroupConfigsResponse DescribeMachineGroupConfigs(DescribeMachineGroupConfigsRequest req) throws TencentCloudSDKException
req - DescribeMachineGroupConfigsRequestTencentCloudSDKExceptionpublic DescribeMachineGroupsResponse DescribeMachineGroups(DescribeMachineGroupsRequest req) throws TencentCloudSDKException
req - DescribeMachineGroupsRequestTencentCloudSDKExceptionpublic DescribeMachinesResponse DescribeMachines(DescribeMachinesRequest req) throws TencentCloudSDKException
req - DescribeMachinesRequestTencentCloudSDKExceptionpublic DescribePartitionsResponse DescribePartitions(DescribePartitionsRequest req) throws TencentCloudSDKException
req - DescribePartitionsRequestTencentCloudSDKExceptionpublic DescribeShipperTasksResponse DescribeShipperTasks(DescribeShipperTasksRequest req) throws TencentCloudSDKException
req - DescribeShipperTasksRequestTencentCloudSDKExceptionpublic DescribeShippersResponse DescribeShippers(DescribeShippersRequest req) throws TencentCloudSDKException
req - DescribeShippersRequestTencentCloudSDKExceptionpublic DescribeTopicsResponse DescribeTopics(DescribeTopicsRequest req) throws TencentCloudSDKException
req - DescribeTopicsRequestTencentCloudSDKExceptionpublic GetAlarmLogResponse GetAlarmLog(GetAlarmLogRequest req) throws TencentCloudSDKException
req - GetAlarmLogRequestTencentCloudSDKExceptionpublic MergePartitionResponse MergePartition(MergePartitionRequest req) throws TencentCloudSDKException
req - MergePartitionRequestTencentCloudSDKExceptionpublic ModifyAlarmResponse ModifyAlarm(ModifyAlarmRequest req) throws TencentCloudSDKException
req - ModifyAlarmRequestTencentCloudSDKExceptionpublic ModifyAlarmNoticeResponse ModifyAlarmNotice(ModifyAlarmNoticeRequest req) throws TencentCloudSDKException
req - ModifyAlarmNoticeRequestTencentCloudSDKExceptionpublic ModifyConfigResponse ModifyConfig(ModifyConfigRequest req) throws TencentCloudSDKException
req - ModifyConfigRequestTencentCloudSDKExceptionpublic ModifyConsumerResponse ModifyConsumer(ModifyConsumerRequest req) throws TencentCloudSDKException
req - ModifyConsumerRequestTencentCloudSDKExceptionpublic ModifyIndexResponse ModifyIndex(ModifyIndexRequest req) throws TencentCloudSDKException
req - ModifyIndexRequestTencentCloudSDKExceptionpublic ModifyLogsetResponse ModifyLogset(ModifyLogsetRequest req) throws TencentCloudSDKException
req - ModifyLogsetRequestTencentCloudSDKExceptionpublic ModifyMachineGroupResponse ModifyMachineGroup(ModifyMachineGroupRequest req) throws TencentCloudSDKException
req - ModifyMachineGroupRequestTencentCloudSDKExceptionpublic ModifyShipperResponse ModifyShipper(ModifyShipperRequest req) throws TencentCloudSDKException
req - ModifyShipperRequestTencentCloudSDKExceptionpublic ModifyTopicResponse ModifyTopic(ModifyTopicRequest req) throws TencentCloudSDKException
req - ModifyTopicRequestTencentCloudSDKExceptionpublic OpenKafkaConsumerResponse OpenKafkaConsumer(OpenKafkaConsumerRequest req) throws TencentCloudSDKException
req - OpenKafkaConsumerRequestTencentCloudSDKExceptionpublic RetryShipperTaskResponse RetryShipperTask(RetryShipperTaskRequest req) throws TencentCloudSDKException
req - RetryShipperTaskRequestTencentCloudSDKExceptionpublic SearchLogResponse SearchLog(SearchLogRequest req) throws TencentCloudSDKException
req - SearchLogRequestTencentCloudSDKExceptionpublic SplitPartitionResponse SplitPartition(SplitPartitionRequest req) throws TencentCloudSDKException
req - SplitPartitionRequestTencentCloudSDKExceptionpublic UploadLogResponse UploadLog(UploadLogRequest req) throws TencentCloudSDKException
req - UploadLogRequestTencentCloudSDKExceptionCopyright © 2023. All rights reserved.