alibabacloud-sls20201230 5.7.4__py3-none-any.whl → 5.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -834,7 +834,7 @@ class Client(OpenApiClient):
834
834
  runtime: util_models.RuntimeOptions,
835
835
  ) -> sls_20201230_models.CreateAlertResponse:
836
836
  """
837
- @summary CreateAlert
837
+ @summary Creates an alert rule in a project.
838
838
 
839
839
  @param request: CreateAlertRequest
840
840
  @param headers: map
@@ -884,7 +884,7 @@ class Client(OpenApiClient):
884
884
  runtime: util_models.RuntimeOptions,
885
885
  ) -> sls_20201230_models.CreateAlertResponse:
886
886
  """
887
- @summary CreateAlert
887
+ @summary Creates an alert rule in a project.
888
888
 
889
889
  @param request: CreateAlertRequest
890
890
  @param headers: map
@@ -932,7 +932,7 @@ class Client(OpenApiClient):
932
932
  request: sls_20201230_models.CreateAlertRequest,
933
933
  ) -> sls_20201230_models.CreateAlertResponse:
934
934
  """
935
- @summary CreateAlert
935
+ @summary Creates an alert rule in a project.
936
936
 
937
937
  @param request: CreateAlertRequest
938
938
  @return: CreateAlertResponse
@@ -947,7 +947,7 @@ class Client(OpenApiClient):
947
947
  request: sls_20201230_models.CreateAlertRequest,
948
948
  ) -> sls_20201230_models.CreateAlertResponse:
949
949
  """
950
- @summary CreateAlert
950
+ @summary Creates an alert rule in a project.
951
951
 
952
952
  @param request: CreateAlertRequest
953
953
  @return: CreateAlertResponse
@@ -2479,6 +2479,8 @@ class Client(OpenApiClient):
2479
2479
  body['logSample'] = request.log_sample
2480
2480
  if not UtilClient.is_unset(request.processors):
2481
2481
  body['processors'] = request.processors
2482
+ if not UtilClient.is_unset(request.task):
2483
+ body['task'] = request.task
2482
2484
  req = open_api_models.OpenApiRequest(
2483
2485
  host_map=host_map,
2484
2486
  headers=headers,
@@ -2535,6 +2537,8 @@ class Client(OpenApiClient):
2535
2537
  body['logSample'] = request.log_sample
2536
2538
  if not UtilClient.is_unset(request.processors):
2537
2539
  body['processors'] = request.processors
2540
+ if not UtilClient.is_unset(request.task):
2541
+ body['task'] = request.task
2538
2542
  req = open_api_models.OpenApiRequest(
2539
2543
  host_map=host_map,
2540
2544
  headers=headers,
@@ -3558,6 +3562,136 @@ class Client(OpenApiClient):
3558
3562
  headers = {}
3559
3563
  return await self.create_project_with_options_async(request, headers, runtime)
3560
3564
 
3565
+ def create_s3ingestion_with_options(
3566
+ self,
3567
+ project: str,
3568
+ request: sls_20201230_models.CreateS3IngestionRequest,
3569
+ headers: Dict[str, str],
3570
+ runtime: util_models.RuntimeOptions,
3571
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3572
+ """
3573
+ @summary 创建S3文件导入任务
3574
+
3575
+ @param request: CreateS3IngestionRequest
3576
+ @param headers: map
3577
+ @param runtime: runtime options for this request RuntimeOptions
3578
+ @return: CreateS3IngestionResponse
3579
+ """
3580
+ UtilClient.validate_model(request)
3581
+ host_map = {}
3582
+ host_map['project'] = project
3583
+ body = {}
3584
+ if not UtilClient.is_unset(request.configuration):
3585
+ body['configuration'] = request.configuration
3586
+ if not UtilClient.is_unset(request.description):
3587
+ body['description'] = request.description
3588
+ if not UtilClient.is_unset(request.display_name):
3589
+ body['displayName'] = request.display_name
3590
+ if not UtilClient.is_unset(request.name):
3591
+ body['name'] = request.name
3592
+ if not UtilClient.is_unset(request.schedule):
3593
+ body['schedule'] = request.schedule
3594
+ req = open_api_models.OpenApiRequest(
3595
+ host_map=host_map,
3596
+ headers=headers,
3597
+ body=OpenApiUtilClient.parse_to_map(body)
3598
+ )
3599
+ params = open_api_models.Params(
3600
+ action='CreateS3Ingestion',
3601
+ version='2020-12-30',
3602
+ protocol='HTTPS',
3603
+ pathname=f'/s3ingestions',
3604
+ method='POST',
3605
+ auth_type='AK',
3606
+ style='ROA',
3607
+ req_body_type='json',
3608
+ body_type='none'
3609
+ )
3610
+ return TeaCore.from_map(
3611
+ sls_20201230_models.CreateS3IngestionResponse(),
3612
+ self.execute(params, req, runtime)
3613
+ )
3614
+
3615
+ async def create_s3ingestion_with_options_async(
3616
+ self,
3617
+ project: str,
3618
+ request: sls_20201230_models.CreateS3IngestionRequest,
3619
+ headers: Dict[str, str],
3620
+ runtime: util_models.RuntimeOptions,
3621
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3622
+ """
3623
+ @summary 创建S3文件导入任务
3624
+
3625
+ @param request: CreateS3IngestionRequest
3626
+ @param headers: map
3627
+ @param runtime: runtime options for this request RuntimeOptions
3628
+ @return: CreateS3IngestionResponse
3629
+ """
3630
+ UtilClient.validate_model(request)
3631
+ host_map = {}
3632
+ host_map['project'] = project
3633
+ body = {}
3634
+ if not UtilClient.is_unset(request.configuration):
3635
+ body['configuration'] = request.configuration
3636
+ if not UtilClient.is_unset(request.description):
3637
+ body['description'] = request.description
3638
+ if not UtilClient.is_unset(request.display_name):
3639
+ body['displayName'] = request.display_name
3640
+ if not UtilClient.is_unset(request.name):
3641
+ body['name'] = request.name
3642
+ if not UtilClient.is_unset(request.schedule):
3643
+ body['schedule'] = request.schedule
3644
+ req = open_api_models.OpenApiRequest(
3645
+ host_map=host_map,
3646
+ headers=headers,
3647
+ body=OpenApiUtilClient.parse_to_map(body)
3648
+ )
3649
+ params = open_api_models.Params(
3650
+ action='CreateS3Ingestion',
3651
+ version='2020-12-30',
3652
+ protocol='HTTPS',
3653
+ pathname=f'/s3ingestions',
3654
+ method='POST',
3655
+ auth_type='AK',
3656
+ style='ROA',
3657
+ req_body_type='json',
3658
+ body_type='none'
3659
+ )
3660
+ return TeaCore.from_map(
3661
+ sls_20201230_models.CreateS3IngestionResponse(),
3662
+ await self.execute_async(params, req, runtime)
3663
+ )
3664
+
3665
+ def create_s3ingestion(
3666
+ self,
3667
+ project: str,
3668
+ request: sls_20201230_models.CreateS3IngestionRequest,
3669
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3670
+ """
3671
+ @summary 创建S3文件导入任务
3672
+
3673
+ @param request: CreateS3IngestionRequest
3674
+ @return: CreateS3IngestionResponse
3675
+ """
3676
+ runtime = util_models.RuntimeOptions()
3677
+ headers = {}
3678
+ return self.create_s3ingestion_with_options(project, request, headers, runtime)
3679
+
3680
+ async def create_s3ingestion_async(
3681
+ self,
3682
+ project: str,
3683
+ request: sls_20201230_models.CreateS3IngestionRequest,
3684
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3685
+ """
3686
+ @summary 创建S3文件导入任务
3687
+
3688
+ @param request: CreateS3IngestionRequest
3689
+ @return: CreateS3IngestionResponse
3690
+ """
3691
+ runtime = util_models.RuntimeOptions()
3692
+ headers = {}
3693
+ return await self.create_s3ingestion_with_options_async(project, request, headers, runtime)
3694
+
3561
3695
  def create_saved_search_with_options(
3562
3696
  self,
3563
3697
  project: str,
@@ -4980,6 +5114,106 @@ class Client(OpenApiClient):
4980
5114
  headers = {}
4981
5115
  return await self.delete_config_with_options_async(project, config_name, headers, runtime)
4982
5116
 
5117
+ def delete_consume_processor_with_options(
5118
+ self,
5119
+ project: str,
5120
+ processor_name: str,
5121
+ headers: Dict[str, str],
5122
+ runtime: util_models.RuntimeOptions,
5123
+ ) -> sls_20201230_models.DeleteConsumeProcessorResponse:
5124
+ """
5125
+ @summary DeleteConsumeProcessor
5126
+
5127
+ @param headers: map
5128
+ @param runtime: runtime options for this request RuntimeOptions
5129
+ @return: DeleteConsumeProcessorResponse
5130
+ """
5131
+ host_map = {}
5132
+ host_map['project'] = project
5133
+ req = open_api_models.OpenApiRequest(
5134
+ host_map=host_map,
5135
+ headers=headers
5136
+ )
5137
+ params = open_api_models.Params(
5138
+ action='DeleteConsumeProcessor',
5139
+ version='2020-12-30',
5140
+ protocol='HTTPS',
5141
+ pathname=f'/consumeprocessors/{processor_name}',
5142
+ method='DELETE',
5143
+ auth_type='AK',
5144
+ style='ROA',
5145
+ req_body_type='json',
5146
+ body_type='none'
5147
+ )
5148
+ return TeaCore.from_map(
5149
+ sls_20201230_models.DeleteConsumeProcessorResponse(),
5150
+ self.execute(params, req, runtime)
5151
+ )
5152
+
5153
+ async def delete_consume_processor_with_options_async(
5154
+ self,
5155
+ project: str,
5156
+ processor_name: str,
5157
+ headers: Dict[str, str],
5158
+ runtime: util_models.RuntimeOptions,
5159
+ ) -> sls_20201230_models.DeleteConsumeProcessorResponse:
5160
+ """
5161
+ @summary DeleteConsumeProcessor
5162
+
5163
+ @param headers: map
5164
+ @param runtime: runtime options for this request RuntimeOptions
5165
+ @return: DeleteConsumeProcessorResponse
5166
+ """
5167
+ host_map = {}
5168
+ host_map['project'] = project
5169
+ req = open_api_models.OpenApiRequest(
5170
+ host_map=host_map,
5171
+ headers=headers
5172
+ )
5173
+ params = open_api_models.Params(
5174
+ action='DeleteConsumeProcessor',
5175
+ version='2020-12-30',
5176
+ protocol='HTTPS',
5177
+ pathname=f'/consumeprocessors/{processor_name}',
5178
+ method='DELETE',
5179
+ auth_type='AK',
5180
+ style='ROA',
5181
+ req_body_type='json',
5182
+ body_type='none'
5183
+ )
5184
+ return TeaCore.from_map(
5185
+ sls_20201230_models.DeleteConsumeProcessorResponse(),
5186
+ await self.execute_async(params, req, runtime)
5187
+ )
5188
+
5189
+ def delete_consume_processor(
5190
+ self,
5191
+ project: str,
5192
+ processor_name: str,
5193
+ ) -> sls_20201230_models.DeleteConsumeProcessorResponse:
5194
+ """
5195
+ @summary DeleteConsumeProcessor
5196
+
5197
+ @return: DeleteConsumeProcessorResponse
5198
+ """
5199
+ runtime = util_models.RuntimeOptions()
5200
+ headers = {}
5201
+ return self.delete_consume_processor_with_options(project, processor_name, headers, runtime)
5202
+
5203
+ async def delete_consume_processor_async(
5204
+ self,
5205
+ project: str,
5206
+ processor_name: str,
5207
+ ) -> sls_20201230_models.DeleteConsumeProcessorResponse:
5208
+ """
5209
+ @summary DeleteConsumeProcessor
5210
+
5211
+ @return: DeleteConsumeProcessorResponse
5212
+ """
5213
+ runtime = util_models.RuntimeOptions()
5214
+ headers = {}
5215
+ return await self.delete_consume_processor_with_options_async(project, processor_name, headers, runtime)
5216
+
4983
5217
  def delete_consumer_group_with_options(
4984
5218
  self,
4985
5219
  project: str,
@@ -7038,6 +7272,106 @@ class Client(OpenApiClient):
7038
7272
  headers = {}
7039
7273
  return await self.delete_project_policy_with_options_async(project, headers, runtime)
7040
7274
 
7275
+ def delete_s3ingestion_with_options(
7276
+ self,
7277
+ project: str,
7278
+ s_3ingestion_name: str,
7279
+ headers: Dict[str, str],
7280
+ runtime: util_models.RuntimeOptions,
7281
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7282
+ """
7283
+ @summary 删除s3导入任务
7284
+
7285
+ @param headers: map
7286
+ @param runtime: runtime options for this request RuntimeOptions
7287
+ @return: DeleteS3IngestionResponse
7288
+ """
7289
+ host_map = {}
7290
+ host_map['project'] = project
7291
+ req = open_api_models.OpenApiRequest(
7292
+ host_map=host_map,
7293
+ headers=headers
7294
+ )
7295
+ params = open_api_models.Params(
7296
+ action='DeleteS3Ingestion',
7297
+ version='2020-12-30',
7298
+ protocol='HTTPS',
7299
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
7300
+ method='DELETE',
7301
+ auth_type='AK',
7302
+ style='ROA',
7303
+ req_body_type='json',
7304
+ body_type='none'
7305
+ )
7306
+ return TeaCore.from_map(
7307
+ sls_20201230_models.DeleteS3IngestionResponse(),
7308
+ self.execute(params, req, runtime)
7309
+ )
7310
+
7311
+ async def delete_s3ingestion_with_options_async(
7312
+ self,
7313
+ project: str,
7314
+ s_3ingestion_name: str,
7315
+ headers: Dict[str, str],
7316
+ runtime: util_models.RuntimeOptions,
7317
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7318
+ """
7319
+ @summary 删除s3导入任务
7320
+
7321
+ @param headers: map
7322
+ @param runtime: runtime options for this request RuntimeOptions
7323
+ @return: DeleteS3IngestionResponse
7324
+ """
7325
+ host_map = {}
7326
+ host_map['project'] = project
7327
+ req = open_api_models.OpenApiRequest(
7328
+ host_map=host_map,
7329
+ headers=headers
7330
+ )
7331
+ params = open_api_models.Params(
7332
+ action='DeleteS3Ingestion',
7333
+ version='2020-12-30',
7334
+ protocol='HTTPS',
7335
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
7336
+ method='DELETE',
7337
+ auth_type='AK',
7338
+ style='ROA',
7339
+ req_body_type='json',
7340
+ body_type='none'
7341
+ )
7342
+ return TeaCore.from_map(
7343
+ sls_20201230_models.DeleteS3IngestionResponse(),
7344
+ await self.execute_async(params, req, runtime)
7345
+ )
7346
+
7347
+ def delete_s3ingestion(
7348
+ self,
7349
+ project: str,
7350
+ s_3ingestion_name: str,
7351
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7352
+ """
7353
+ @summary 删除s3导入任务
7354
+
7355
+ @return: DeleteS3IngestionResponse
7356
+ """
7357
+ runtime = util_models.RuntimeOptions()
7358
+ headers = {}
7359
+ return self.delete_s3ingestion_with_options(project, s_3ingestion_name, headers, runtime)
7360
+
7361
+ async def delete_s3ingestion_async(
7362
+ self,
7363
+ project: str,
7364
+ s_3ingestion_name: str,
7365
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7366
+ """
7367
+ @summary 删除s3导入任务
7368
+
7369
+ @return: DeleteS3IngestionResponse
7370
+ """
7371
+ runtime = util_models.RuntimeOptions()
7372
+ headers = {}
7373
+ return await self.delete_s3ingestion_with_options_async(project, s_3ingestion_name, headers, runtime)
7374
+
7041
7375
  def delete_saved_search_with_options(
7042
7376
  self,
7043
7377
  project: str,
@@ -8974,21 +9308,121 @@ class Client(OpenApiClient):
8974
9308
  headers = {}
8975
9309
  return await self.get_config_with_options_async(project, config_name, headers, runtime)
8976
9310
 
8977
- def get_context_logs_with_options(
9311
+ def get_consume_processor_with_options(
8978
9312
  self,
8979
9313
  project: str,
8980
- logstore: str,
8981
- request: sls_20201230_models.GetContextLogsRequest,
9314
+ processor_name: str,
8982
9315
  headers: Dict[str, str],
8983
9316
  runtime: util_models.RuntimeOptions,
8984
- ) -> sls_20201230_models.GetContextLogsResponse:
9317
+ ) -> sls_20201230_models.GetConsumeProcessorResponse:
8985
9318
  """
8986
- @summary Queries the contextual logs of a specified log.
9319
+ @summary Query the details of a consumer processor
8987
9320
 
8988
- @description ### Usage notes
8989
- You can specify a log as the start log. The time range of a contextual query is one day before and one day after the generation time of the start log.
8990
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8991
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
9321
+ @param headers: map
9322
+ @param runtime: runtime options for this request RuntimeOptions
9323
+ @return: GetConsumeProcessorResponse
9324
+ """
9325
+ host_map = {}
9326
+ host_map['project'] = project
9327
+ req = open_api_models.OpenApiRequest(
9328
+ host_map=host_map,
9329
+ headers=headers
9330
+ )
9331
+ params = open_api_models.Params(
9332
+ action='GetConsumeProcessor',
9333
+ version='2020-12-30',
9334
+ protocol='HTTPS',
9335
+ pathname=f'/consumeprocessors/{processor_name}',
9336
+ method='GET',
9337
+ auth_type='AK',
9338
+ style='ROA',
9339
+ req_body_type='json',
9340
+ body_type='json'
9341
+ )
9342
+ return TeaCore.from_map(
9343
+ sls_20201230_models.GetConsumeProcessorResponse(),
9344
+ self.execute(params, req, runtime)
9345
+ )
9346
+
9347
+ async def get_consume_processor_with_options_async(
9348
+ self,
9349
+ project: str,
9350
+ processor_name: str,
9351
+ headers: Dict[str, str],
9352
+ runtime: util_models.RuntimeOptions,
9353
+ ) -> sls_20201230_models.GetConsumeProcessorResponse:
9354
+ """
9355
+ @summary Query the details of a consumer processor
9356
+
9357
+ @param headers: map
9358
+ @param runtime: runtime options for this request RuntimeOptions
9359
+ @return: GetConsumeProcessorResponse
9360
+ """
9361
+ host_map = {}
9362
+ host_map['project'] = project
9363
+ req = open_api_models.OpenApiRequest(
9364
+ host_map=host_map,
9365
+ headers=headers
9366
+ )
9367
+ params = open_api_models.Params(
9368
+ action='GetConsumeProcessor',
9369
+ version='2020-12-30',
9370
+ protocol='HTTPS',
9371
+ pathname=f'/consumeprocessors/{processor_name}',
9372
+ method='GET',
9373
+ auth_type='AK',
9374
+ style='ROA',
9375
+ req_body_type='json',
9376
+ body_type='json'
9377
+ )
9378
+ return TeaCore.from_map(
9379
+ sls_20201230_models.GetConsumeProcessorResponse(),
9380
+ await self.execute_async(params, req, runtime)
9381
+ )
9382
+
9383
+ def get_consume_processor(
9384
+ self,
9385
+ project: str,
9386
+ processor_name: str,
9387
+ ) -> sls_20201230_models.GetConsumeProcessorResponse:
9388
+ """
9389
+ @summary Query the details of a consumer processor
9390
+
9391
+ @return: GetConsumeProcessorResponse
9392
+ """
9393
+ runtime = util_models.RuntimeOptions()
9394
+ headers = {}
9395
+ return self.get_consume_processor_with_options(project, processor_name, headers, runtime)
9396
+
9397
+ async def get_consume_processor_async(
9398
+ self,
9399
+ project: str,
9400
+ processor_name: str,
9401
+ ) -> sls_20201230_models.GetConsumeProcessorResponse:
9402
+ """
9403
+ @summary Query the details of a consumer processor
9404
+
9405
+ @return: GetConsumeProcessorResponse
9406
+ """
9407
+ runtime = util_models.RuntimeOptions()
9408
+ headers = {}
9409
+ return await self.get_consume_processor_with_options_async(project, processor_name, headers, runtime)
9410
+
9411
+ def get_context_logs_with_options(
9412
+ self,
9413
+ project: str,
9414
+ logstore: str,
9415
+ request: sls_20201230_models.GetContextLogsRequest,
9416
+ headers: Dict[str, str],
9417
+ runtime: util_models.RuntimeOptions,
9418
+ ) -> sls_20201230_models.GetContextLogsResponse:
9419
+ """
9420
+ @summary Queries the contextual logs of a specified log.
9421
+
9422
+ @description ### Usage notes
9423
+ You can specify a log as the start log. The time range of a contextual query is one day before and one day after the generation time of the start log.
9424
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9425
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8992
9426
  The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
8993
9427
  The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
8994
9428
  Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
@@ -10695,9 +11129,14 @@ class Client(OpenApiClient):
10695
11129
  """
10696
11130
  @summary Queries the raw log data in a Logstore of a project. The returned result contains the raw log data within a specific time range. The returned result is compressed before transmission.
10697
11131
 
10698
- @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10699
- You can call this operation by using Simple Log Service SDK for Go or Java.
10700
- For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
11132
+ @description You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.
11133
+ When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.
11134
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/2771313.html).
11135
+ ### Authentication resources
11136
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11137
+ |Action|Resource|
11138
+ |:---|:---|
11139
+ |`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10701
11140
 
10702
11141
  @param request: GetLogsV2Request
10703
11142
  @param headers: GetLogsV2Headers
@@ -10767,9 +11206,14 @@ class Client(OpenApiClient):
10767
11206
  """
10768
11207
  @summary Queries the raw log data in a Logstore of a project. The returned result contains the raw log data within a specific time range. The returned result is compressed before transmission.
10769
11208
 
10770
- @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10771
- You can call this operation by using Simple Log Service SDK for Go or Java.
10772
- For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
11209
+ @description You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.
11210
+ When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.
11211
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/2771313.html).
11212
+ ### Authentication resources
11213
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11214
+ |Action|Resource|
11215
+ |:---|:---|
11216
+ |`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10773
11217
 
10774
11218
  @param request: GetLogsV2Request
10775
11219
  @param headers: GetLogsV2Headers
@@ -10837,9 +11281,14 @@ class Client(OpenApiClient):
10837
11281
  """
10838
11282
  @summary Queries the raw log data in a Logstore of a project. The returned result contains the raw log data within a specific time range. The returned result is compressed before transmission.
10839
11283
 
10840
- @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10841
- You can call this operation by using Simple Log Service SDK for Go or Java.
10842
- For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
11284
+ @description You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.
11285
+ When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.
11286
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/2771313.html).
11287
+ ### Authentication resources
11288
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11289
+ |Action|Resource|
11290
+ |:---|:---|
11291
+ |`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10843
11292
 
10844
11293
  @param request: GetLogsV2Request
10845
11294
  @return: GetLogsV2Response
@@ -10857,9 +11306,14 @@ class Client(OpenApiClient):
10857
11306
  """
10858
11307
  @summary Queries the raw log data in a Logstore of a project. The returned result contains the raw log data within a specific time range. The returned result is compressed before transmission.
10859
11308
 
10860
- @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10861
- You can call this operation by using Simple Log Service SDK for Go or Java.
10862
- For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
11309
+ @description You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.
11310
+ When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.
11311
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/2771313.html).
11312
+ ### Authentication resources
11313
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11314
+ |Action|Resource|
11315
+ |:---|:---|
11316
+ |`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10863
11317
 
10864
11318
  @param request: GetLogsV2Request
10865
11319
  @return: GetLogsV2Response
@@ -12328,6 +12782,106 @@ class Client(OpenApiClient):
12328
12782
  headers = {}
12329
12783
  return await self.get_project_policy_with_options_async(project, headers, runtime)
12330
12784
 
12785
+ def get_s3ingestion_with_options(
12786
+ self,
12787
+ project: str,
12788
+ s_3ingestion_name: str,
12789
+ headers: Dict[str, str],
12790
+ runtime: util_models.RuntimeOptions,
12791
+ ) -> sls_20201230_models.GetS3IngestionResponse:
12792
+ """
12793
+ @summary 获取s3导入任务信息
12794
+
12795
+ @param headers: map
12796
+ @param runtime: runtime options for this request RuntimeOptions
12797
+ @return: GetS3IngestionResponse
12798
+ """
12799
+ host_map = {}
12800
+ host_map['project'] = project
12801
+ req = open_api_models.OpenApiRequest(
12802
+ host_map=host_map,
12803
+ headers=headers
12804
+ )
12805
+ params = open_api_models.Params(
12806
+ action='GetS3Ingestion',
12807
+ version='2020-12-30',
12808
+ protocol='HTTPS',
12809
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
12810
+ method='GET',
12811
+ auth_type='AK',
12812
+ style='ROA',
12813
+ req_body_type='json',
12814
+ body_type='json'
12815
+ )
12816
+ return TeaCore.from_map(
12817
+ sls_20201230_models.GetS3IngestionResponse(),
12818
+ self.execute(params, req, runtime)
12819
+ )
12820
+
12821
+ async def get_s3ingestion_with_options_async(
12822
+ self,
12823
+ project: str,
12824
+ s_3ingestion_name: str,
12825
+ headers: Dict[str, str],
12826
+ runtime: util_models.RuntimeOptions,
12827
+ ) -> sls_20201230_models.GetS3IngestionResponse:
12828
+ """
12829
+ @summary 获取s3导入任务信息
12830
+
12831
+ @param headers: map
12832
+ @param runtime: runtime options for this request RuntimeOptions
12833
+ @return: GetS3IngestionResponse
12834
+ """
12835
+ host_map = {}
12836
+ host_map['project'] = project
12837
+ req = open_api_models.OpenApiRequest(
12838
+ host_map=host_map,
12839
+ headers=headers
12840
+ )
12841
+ params = open_api_models.Params(
12842
+ action='GetS3Ingestion',
12843
+ version='2020-12-30',
12844
+ protocol='HTTPS',
12845
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
12846
+ method='GET',
12847
+ auth_type='AK',
12848
+ style='ROA',
12849
+ req_body_type='json',
12850
+ body_type='json'
12851
+ )
12852
+ return TeaCore.from_map(
12853
+ sls_20201230_models.GetS3IngestionResponse(),
12854
+ await self.execute_async(params, req, runtime)
12855
+ )
12856
+
12857
+ def get_s3ingestion(
12858
+ self,
12859
+ project: str,
12860
+ s_3ingestion_name: str,
12861
+ ) -> sls_20201230_models.GetS3IngestionResponse:
12862
+ """
12863
+ @summary 获取s3导入任务信息
12864
+
12865
+ @return: GetS3IngestionResponse
12866
+ """
12867
+ runtime = util_models.RuntimeOptions()
12868
+ headers = {}
12869
+ return self.get_s3ingestion_with_options(project, s_3ingestion_name, headers, runtime)
12870
+
12871
+ async def get_s3ingestion_async(
12872
+ self,
12873
+ project: str,
12874
+ s_3ingestion_name: str,
12875
+ ) -> sls_20201230_models.GetS3IngestionResponse:
12876
+ """
12877
+ @summary 获取s3导入任务信息
12878
+
12879
+ @return: GetS3IngestionResponse
12880
+ """
12881
+ runtime = util_models.RuntimeOptions()
12882
+ headers = {}
12883
+ return await self.get_s3ingestion_with_options_async(project, s_3ingestion_name, headers, runtime)
12884
+
12331
12885
  def get_saved_search_with_options(
12332
12886
  self,
12333
12887
  project: str,
@@ -13750,21 +14304,165 @@ class Client(OpenApiClient):
13750
14304
  The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
13751
14305
  The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
13752
14306
 
13753
- @param request: ListConfigRequest
14307
+ @param request: ListConfigRequest
14308
+ @param headers: map
14309
+ @param runtime: runtime options for this request RuntimeOptions
14310
+ @return: ListConfigResponse
14311
+ """
14312
+ UtilClient.validate_model(request)
14313
+ host_map = {}
14314
+ host_map['project'] = project
14315
+ query = {}
14316
+ if not UtilClient.is_unset(request.config_name):
14317
+ query['configName'] = request.config_name
14318
+ if not UtilClient.is_unset(request.logstore_name):
14319
+ query['logstoreName'] = request.logstore_name
14320
+ if not UtilClient.is_unset(request.offset):
14321
+ query['offset'] = request.offset
14322
+ if not UtilClient.is_unset(request.size):
14323
+ query['size'] = request.size
14324
+ req = open_api_models.OpenApiRequest(
14325
+ host_map=host_map,
14326
+ headers=headers,
14327
+ query=OpenApiUtilClient.query(query)
14328
+ )
14329
+ params = open_api_models.Params(
14330
+ action='ListConfig',
14331
+ version='2020-12-30',
14332
+ protocol='HTTPS',
14333
+ pathname=f'/configs',
14334
+ method='GET',
14335
+ auth_type='AK',
14336
+ style='ROA',
14337
+ req_body_type='json',
14338
+ body_type='json'
14339
+ )
14340
+ return TeaCore.from_map(
14341
+ sls_20201230_models.ListConfigResponse(),
14342
+ self.execute(params, req, runtime)
14343
+ )
14344
+
14345
+ async def list_config_with_options_async(
14346
+ self,
14347
+ project: str,
14348
+ request: sls_20201230_models.ListConfigRequest,
14349
+ headers: Dict[str, str],
14350
+ runtime: util_models.RuntimeOptions,
14351
+ ) -> sls_20201230_models.ListConfigResponse:
14352
+ """
14353
+ @summary Queries all Logtail configurations in a project.
14354
+
14355
+ @description ### [](#)Usage notes
14356
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14357
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14358
+ The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
14359
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14360
+
14361
+ @param request: ListConfigRequest
14362
+ @param headers: map
14363
+ @param runtime: runtime options for this request RuntimeOptions
14364
+ @return: ListConfigResponse
14365
+ """
14366
+ UtilClient.validate_model(request)
14367
+ host_map = {}
14368
+ host_map['project'] = project
14369
+ query = {}
14370
+ if not UtilClient.is_unset(request.config_name):
14371
+ query['configName'] = request.config_name
14372
+ if not UtilClient.is_unset(request.logstore_name):
14373
+ query['logstoreName'] = request.logstore_name
14374
+ if not UtilClient.is_unset(request.offset):
14375
+ query['offset'] = request.offset
14376
+ if not UtilClient.is_unset(request.size):
14377
+ query['size'] = request.size
14378
+ req = open_api_models.OpenApiRequest(
14379
+ host_map=host_map,
14380
+ headers=headers,
14381
+ query=OpenApiUtilClient.query(query)
14382
+ )
14383
+ params = open_api_models.Params(
14384
+ action='ListConfig',
14385
+ version='2020-12-30',
14386
+ protocol='HTTPS',
14387
+ pathname=f'/configs',
14388
+ method='GET',
14389
+ auth_type='AK',
14390
+ style='ROA',
14391
+ req_body_type='json',
14392
+ body_type='json'
14393
+ )
14394
+ return TeaCore.from_map(
14395
+ sls_20201230_models.ListConfigResponse(),
14396
+ await self.execute_async(params, req, runtime)
14397
+ )
14398
+
14399
+ def list_config(
14400
+ self,
14401
+ project: str,
14402
+ request: sls_20201230_models.ListConfigRequest,
14403
+ ) -> sls_20201230_models.ListConfigResponse:
14404
+ """
14405
+ @summary Queries all Logtail configurations in a project.
14406
+
14407
+ @description ### [](#)Usage notes
14408
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14409
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14410
+ The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
14411
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14412
+
14413
+ @param request: ListConfigRequest
14414
+ @return: ListConfigResponse
14415
+ """
14416
+ runtime = util_models.RuntimeOptions()
14417
+ headers = {}
14418
+ return self.list_config_with_options(project, request, headers, runtime)
14419
+
14420
+ async def list_config_async(
14421
+ self,
14422
+ project: str,
14423
+ request: sls_20201230_models.ListConfigRequest,
14424
+ ) -> sls_20201230_models.ListConfigResponse:
14425
+ """
14426
+ @summary Queries all Logtail configurations in a project.
14427
+
14428
+ @description ### [](#)Usage notes
14429
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14430
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14431
+ The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
14432
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14433
+
14434
+ @param request: ListConfigRequest
14435
+ @return: ListConfigResponse
14436
+ """
14437
+ runtime = util_models.RuntimeOptions()
14438
+ headers = {}
14439
+ return await self.list_config_with_options_async(project, request, headers, runtime)
14440
+
14441
+ def list_consume_processors_with_options(
14442
+ self,
14443
+ project: str,
14444
+ request: sls_20201230_models.ListConsumeProcessorsRequest,
14445
+ headers: Dict[str, str],
14446
+ runtime: util_models.RuntimeOptions,
14447
+ ) -> sls_20201230_models.ListConsumeProcessorsResponse:
14448
+ """
14449
+ @summary Queries a list of consumption processors that meet specific conditions.
14450
+
14451
+ @param request: ListConsumeProcessorsRequest
13754
14452
  @param headers: map
13755
14453
  @param runtime: runtime options for this request RuntimeOptions
13756
- @return: ListConfigResponse
14454
+ @return: ListConsumeProcessorsResponse
13757
14455
  """
13758
14456
  UtilClient.validate_model(request)
13759
14457
  host_map = {}
13760
14458
  host_map['project'] = project
13761
14459
  query = {}
13762
- if not UtilClient.is_unset(request.config_name):
13763
- query['configName'] = request.config_name
13764
- if not UtilClient.is_unset(request.logstore_name):
13765
- query['logstoreName'] = request.logstore_name
14460
+ if not UtilClient.is_unset(request.display_name):
14461
+ query['displayName'] = request.display_name
13766
14462
  if not UtilClient.is_unset(request.offset):
13767
14463
  query['offset'] = request.offset
14464
+ if not UtilClient.is_unset(request.processor_name):
14465
+ query['processorName'] = request.processor_name
13768
14466
  if not UtilClient.is_unset(request.size):
13769
14467
  query['size'] = request.size
13770
14468
  req = open_api_models.OpenApiRequest(
@@ -13773,10 +14471,10 @@ class Client(OpenApiClient):
13773
14471
  query=OpenApiUtilClient.query(query)
13774
14472
  )
13775
14473
  params = open_api_models.Params(
13776
- action='ListConfig',
14474
+ action='ListConsumeProcessors',
13777
14475
  version='2020-12-30',
13778
14476
  protocol='HTTPS',
13779
- pathname=f'/configs',
14477
+ pathname=f'/consumeprocessors',
13780
14478
  method='GET',
13781
14479
  auth_type='AK',
13782
14480
  style='ROA',
@@ -13784,41 +14482,35 @@ class Client(OpenApiClient):
13784
14482
  body_type='json'
13785
14483
  )
13786
14484
  return TeaCore.from_map(
13787
- sls_20201230_models.ListConfigResponse(),
14485
+ sls_20201230_models.ListConsumeProcessorsResponse(),
13788
14486
  self.execute(params, req, runtime)
13789
14487
  )
13790
14488
 
13791
- async def list_config_with_options_async(
14489
+ async def list_consume_processors_with_options_async(
13792
14490
  self,
13793
14491
  project: str,
13794
- request: sls_20201230_models.ListConfigRequest,
14492
+ request: sls_20201230_models.ListConsumeProcessorsRequest,
13795
14493
  headers: Dict[str, str],
13796
14494
  runtime: util_models.RuntimeOptions,
13797
- ) -> sls_20201230_models.ListConfigResponse:
14495
+ ) -> sls_20201230_models.ListConsumeProcessorsResponse:
13798
14496
  """
13799
- @summary Queries all Logtail configurations in a project.
13800
-
13801
- @description ### [](#)Usage notes
13802
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13803
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13804
- The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
13805
- The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14497
+ @summary Queries a list of consumption processors that meet specific conditions.
13806
14498
 
13807
- @param request: ListConfigRequest
14499
+ @param request: ListConsumeProcessorsRequest
13808
14500
  @param headers: map
13809
14501
  @param runtime: runtime options for this request RuntimeOptions
13810
- @return: ListConfigResponse
14502
+ @return: ListConsumeProcessorsResponse
13811
14503
  """
13812
14504
  UtilClient.validate_model(request)
13813
14505
  host_map = {}
13814
14506
  host_map['project'] = project
13815
14507
  query = {}
13816
- if not UtilClient.is_unset(request.config_name):
13817
- query['configName'] = request.config_name
13818
- if not UtilClient.is_unset(request.logstore_name):
13819
- query['logstoreName'] = request.logstore_name
14508
+ if not UtilClient.is_unset(request.display_name):
14509
+ query['displayName'] = request.display_name
13820
14510
  if not UtilClient.is_unset(request.offset):
13821
14511
  query['offset'] = request.offset
14512
+ if not UtilClient.is_unset(request.processor_name):
14513
+ query['processorName'] = request.processor_name
13822
14514
  if not UtilClient.is_unset(request.size):
13823
14515
  query['size'] = request.size
13824
14516
  req = open_api_models.OpenApiRequest(
@@ -13827,10 +14519,10 @@ class Client(OpenApiClient):
13827
14519
  query=OpenApiUtilClient.query(query)
13828
14520
  )
13829
14521
  params = open_api_models.Params(
13830
- action='ListConfig',
14522
+ action='ListConsumeProcessors',
13831
14523
  version='2020-12-30',
13832
14524
  protocol='HTTPS',
13833
- pathname=f'/configs',
14525
+ pathname=f'/consumeprocessors',
13834
14526
  method='GET',
13835
14527
  auth_type='AK',
13836
14528
  style='ROA',
@@ -13838,51 +14530,39 @@ class Client(OpenApiClient):
13838
14530
  body_type='json'
13839
14531
  )
13840
14532
  return TeaCore.from_map(
13841
- sls_20201230_models.ListConfigResponse(),
14533
+ sls_20201230_models.ListConsumeProcessorsResponse(),
13842
14534
  await self.execute_async(params, req, runtime)
13843
14535
  )
13844
14536
 
13845
- def list_config(
14537
+ def list_consume_processors(
13846
14538
  self,
13847
14539
  project: str,
13848
- request: sls_20201230_models.ListConfigRequest,
13849
- ) -> sls_20201230_models.ListConfigResponse:
14540
+ request: sls_20201230_models.ListConsumeProcessorsRequest,
14541
+ ) -> sls_20201230_models.ListConsumeProcessorsResponse:
13850
14542
  """
13851
- @summary Queries all Logtail configurations in a project.
13852
-
13853
- @description ### [](#)Usage notes
13854
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13855
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13856
- The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
13857
- The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14543
+ @summary Queries a list of consumption processors that meet specific conditions.
13858
14544
 
13859
- @param request: ListConfigRequest
13860
- @return: ListConfigResponse
14545
+ @param request: ListConsumeProcessorsRequest
14546
+ @return: ListConsumeProcessorsResponse
13861
14547
  """
13862
14548
  runtime = util_models.RuntimeOptions()
13863
14549
  headers = {}
13864
- return self.list_config_with_options(project, request, headers, runtime)
14550
+ return self.list_consume_processors_with_options(project, request, headers, runtime)
13865
14551
 
13866
- async def list_config_async(
14552
+ async def list_consume_processors_async(
13867
14553
  self,
13868
14554
  project: str,
13869
- request: sls_20201230_models.ListConfigRequest,
13870
- ) -> sls_20201230_models.ListConfigResponse:
14555
+ request: sls_20201230_models.ListConsumeProcessorsRequest,
14556
+ ) -> sls_20201230_models.ListConsumeProcessorsResponse:
13871
14557
  """
13872
- @summary Queries all Logtail configurations in a project.
13873
-
13874
- @description ### [](#)Usage notes
13875
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13876
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13877
- The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
13878
- The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14558
+ @summary Queries a list of consumption processors that meet specific conditions.
13879
14559
 
13880
- @param request: ListConfigRequest
13881
- @return: ListConfigResponse
14560
+ @param request: ListConsumeProcessorsRequest
14561
+ @return: ListConsumeProcessorsResponse
13882
14562
  """
13883
14563
  runtime = util_models.RuntimeOptions()
13884
14564
  headers = {}
13885
- return await self.list_config_with_options_async(project, request, headers, runtime)
14565
+ return await self.list_consume_processors_with_options_async(project, request, headers, runtime)
13886
14566
 
13887
14567
  def list_consumer_group_with_options(
13888
14568
  self,
@@ -14891,6 +15571,8 @@ class Client(OpenApiClient):
14891
15571
  query = {}
14892
15572
  if not UtilClient.is_unset(request.config_name):
14893
15573
  query['configName'] = request.config_name
15574
+ if not UtilClient.is_unset(request.config_type):
15575
+ query['configType'] = request.config_type
14894
15576
  if not UtilClient.is_unset(request.logstore_name):
14895
15577
  query['logstoreName'] = request.logstore_name
14896
15578
  if not UtilClient.is_unset(request.offset):
@@ -14941,6 +15623,8 @@ class Client(OpenApiClient):
14941
15623
  query = {}
14942
15624
  if not UtilClient.is_unset(request.config_name):
14943
15625
  query['configName'] = request.config_name
15626
+ if not UtilClient.is_unset(request.config_type):
15627
+ query['configType'] = request.config_type
14944
15628
  if not UtilClient.is_unset(request.logstore_name):
14945
15629
  query['logstoreName'] = request.logstore_name
14946
15630
  if not UtilClient.is_unset(request.offset):
@@ -16048,6 +16732,128 @@ class Client(OpenApiClient):
16048
16732
  headers = {}
16049
16733
  return await self.list_project_with_options_async(request, headers, runtime)
16050
16734
 
16735
+ def list_s3ingestions_with_options(
16736
+ self,
16737
+ project: str,
16738
+ request: sls_20201230_models.ListS3IngestionsRequest,
16739
+ headers: Dict[str, str],
16740
+ runtime: util_models.RuntimeOptions,
16741
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
16742
+ """
16743
+ @summary 列出s3导入任务
16744
+
16745
+ @param request: ListS3IngestionsRequest
16746
+ @param headers: map
16747
+ @param runtime: runtime options for this request RuntimeOptions
16748
+ @return: ListS3IngestionsResponse
16749
+ """
16750
+ UtilClient.validate_model(request)
16751
+ host_map = {}
16752
+ host_map['project'] = project
16753
+ query = {}
16754
+ if not UtilClient.is_unset(request.logstore):
16755
+ query['logstore'] = request.logstore
16756
+ if not UtilClient.is_unset(request.offset):
16757
+ query['offset'] = request.offset
16758
+ if not UtilClient.is_unset(request.size):
16759
+ query['size'] = request.size
16760
+ req = open_api_models.OpenApiRequest(
16761
+ host_map=host_map,
16762
+ headers=headers,
16763
+ query=OpenApiUtilClient.query(query)
16764
+ )
16765
+ params = open_api_models.Params(
16766
+ action='ListS3Ingestions',
16767
+ version='2020-12-30',
16768
+ protocol='HTTPS',
16769
+ pathname=f'/s3ingestions',
16770
+ method='GET',
16771
+ auth_type='AK',
16772
+ style='ROA',
16773
+ req_body_type='json',
16774
+ body_type='json'
16775
+ )
16776
+ return TeaCore.from_map(
16777
+ sls_20201230_models.ListS3IngestionsResponse(),
16778
+ self.execute(params, req, runtime)
16779
+ )
16780
+
16781
+ async def list_s3ingestions_with_options_async(
16782
+ self,
16783
+ project: str,
16784
+ request: sls_20201230_models.ListS3IngestionsRequest,
16785
+ headers: Dict[str, str],
16786
+ runtime: util_models.RuntimeOptions,
16787
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
16788
+ """
16789
+ @summary 列出s3导入任务
16790
+
16791
+ @param request: ListS3IngestionsRequest
16792
+ @param headers: map
16793
+ @param runtime: runtime options for this request RuntimeOptions
16794
+ @return: ListS3IngestionsResponse
16795
+ """
16796
+ UtilClient.validate_model(request)
16797
+ host_map = {}
16798
+ host_map['project'] = project
16799
+ query = {}
16800
+ if not UtilClient.is_unset(request.logstore):
16801
+ query['logstore'] = request.logstore
16802
+ if not UtilClient.is_unset(request.offset):
16803
+ query['offset'] = request.offset
16804
+ if not UtilClient.is_unset(request.size):
16805
+ query['size'] = request.size
16806
+ req = open_api_models.OpenApiRequest(
16807
+ host_map=host_map,
16808
+ headers=headers,
16809
+ query=OpenApiUtilClient.query(query)
16810
+ )
16811
+ params = open_api_models.Params(
16812
+ action='ListS3Ingestions',
16813
+ version='2020-12-30',
16814
+ protocol='HTTPS',
16815
+ pathname=f'/s3ingestions',
16816
+ method='GET',
16817
+ auth_type='AK',
16818
+ style='ROA',
16819
+ req_body_type='json',
16820
+ body_type='json'
16821
+ )
16822
+ return TeaCore.from_map(
16823
+ sls_20201230_models.ListS3IngestionsResponse(),
16824
+ await self.execute_async(params, req, runtime)
16825
+ )
16826
+
16827
+ def list_s3ingestions(
16828
+ self,
16829
+ project: str,
16830
+ request: sls_20201230_models.ListS3IngestionsRequest,
16831
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
16832
+ """
16833
+ @summary 列出s3导入任务
16834
+
16835
+ @param request: ListS3IngestionsRequest
16836
+ @return: ListS3IngestionsResponse
16837
+ """
16838
+ runtime = util_models.RuntimeOptions()
16839
+ headers = {}
16840
+ return self.list_s3ingestions_with_options(project, request, headers, runtime)
16841
+
16842
+ async def list_s3ingestions_async(
16843
+ self,
16844
+ project: str,
16845
+ request: sls_20201230_models.ListS3IngestionsRequest,
16846
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
16847
+ """
16848
+ @summary 列出s3导入任务
16849
+
16850
+ @param request: ListS3IngestionsRequest
16851
+ @return: ListS3IngestionsResponse
16852
+ """
16853
+ runtime = util_models.RuntimeOptions()
16854
+ headers = {}
16855
+ return await self.list_s3ingestions_with_options_async(project, request, headers, runtime)
16856
+
16051
16857
  def list_saved_search_with_options(
16052
16858
  self,
16053
16859
  project: str,
@@ -17166,6 +17972,132 @@ class Client(OpenApiClient):
17166
17972
  headers = {}
17167
17973
  return await self.put_annotation_data_with_options_async(dataset_id, request, headers, runtime)
17168
17974
 
17975
+ def put_consume_processor_with_options(
17976
+ self,
17977
+ project: str,
17978
+ processor_name: str,
17979
+ request: sls_20201230_models.PutConsumeProcessorRequest,
17980
+ headers: Dict[str, str],
17981
+ runtime: util_models.RuntimeOptions,
17982
+ ) -> sls_20201230_models.PutConsumeProcessorResponse:
17983
+ """
17984
+ @summary Creates or updates a consumption processor.
17985
+
17986
+ @param request: PutConsumeProcessorRequest
17987
+ @param headers: map
17988
+ @param runtime: runtime options for this request RuntimeOptions
17989
+ @return: PutConsumeProcessorResponse
17990
+ """
17991
+ UtilClient.validate_model(request)
17992
+ host_map = {}
17993
+ host_map['project'] = project
17994
+ body = {}
17995
+ if not UtilClient.is_unset(request.configuration):
17996
+ body['configuration'] = request.configuration
17997
+ if not UtilClient.is_unset(request.description):
17998
+ body['description'] = request.description
17999
+ if not UtilClient.is_unset(request.display_name):
18000
+ body['displayName'] = request.display_name
18001
+ req = open_api_models.OpenApiRequest(
18002
+ host_map=host_map,
18003
+ headers=headers,
18004
+ body=OpenApiUtilClient.parse_to_map(body)
18005
+ )
18006
+ params = open_api_models.Params(
18007
+ action='PutConsumeProcessor',
18008
+ version='2020-12-30',
18009
+ protocol='HTTPS',
18010
+ pathname=f'/consumeprocessors/{processor_name}',
18011
+ method='PUT',
18012
+ auth_type='AK',
18013
+ style='ROA',
18014
+ req_body_type='json',
18015
+ body_type='none'
18016
+ )
18017
+ return TeaCore.from_map(
18018
+ sls_20201230_models.PutConsumeProcessorResponse(),
18019
+ self.execute(params, req, runtime)
18020
+ )
18021
+
18022
+ async def put_consume_processor_with_options_async(
18023
+ self,
18024
+ project: str,
18025
+ processor_name: str,
18026
+ request: sls_20201230_models.PutConsumeProcessorRequest,
18027
+ headers: Dict[str, str],
18028
+ runtime: util_models.RuntimeOptions,
18029
+ ) -> sls_20201230_models.PutConsumeProcessorResponse:
18030
+ """
18031
+ @summary Creates or updates a consumption processor.
18032
+
18033
+ @param request: PutConsumeProcessorRequest
18034
+ @param headers: map
18035
+ @param runtime: runtime options for this request RuntimeOptions
18036
+ @return: PutConsumeProcessorResponse
18037
+ """
18038
+ UtilClient.validate_model(request)
18039
+ host_map = {}
18040
+ host_map['project'] = project
18041
+ body = {}
18042
+ if not UtilClient.is_unset(request.configuration):
18043
+ body['configuration'] = request.configuration
18044
+ if not UtilClient.is_unset(request.description):
18045
+ body['description'] = request.description
18046
+ if not UtilClient.is_unset(request.display_name):
18047
+ body['displayName'] = request.display_name
18048
+ req = open_api_models.OpenApiRequest(
18049
+ host_map=host_map,
18050
+ headers=headers,
18051
+ body=OpenApiUtilClient.parse_to_map(body)
18052
+ )
18053
+ params = open_api_models.Params(
18054
+ action='PutConsumeProcessor',
18055
+ version='2020-12-30',
18056
+ protocol='HTTPS',
18057
+ pathname=f'/consumeprocessors/{processor_name}',
18058
+ method='PUT',
18059
+ auth_type='AK',
18060
+ style='ROA',
18061
+ req_body_type='json',
18062
+ body_type='none'
18063
+ )
18064
+ return TeaCore.from_map(
18065
+ sls_20201230_models.PutConsumeProcessorResponse(),
18066
+ await self.execute_async(params, req, runtime)
18067
+ )
18068
+
18069
+ def put_consume_processor(
18070
+ self,
18071
+ project: str,
18072
+ processor_name: str,
18073
+ request: sls_20201230_models.PutConsumeProcessorRequest,
18074
+ ) -> sls_20201230_models.PutConsumeProcessorResponse:
18075
+ """
18076
+ @summary Creates or updates a consumption processor.
18077
+
18078
+ @param request: PutConsumeProcessorRequest
18079
+ @return: PutConsumeProcessorResponse
18080
+ """
18081
+ runtime = util_models.RuntimeOptions()
18082
+ headers = {}
18083
+ return self.put_consume_processor_with_options(project, processor_name, request, headers, runtime)
18084
+
18085
+ async def put_consume_processor_async(
18086
+ self,
18087
+ project: str,
18088
+ processor_name: str,
18089
+ request: sls_20201230_models.PutConsumeProcessorRequest,
18090
+ ) -> sls_20201230_models.PutConsumeProcessorResponse:
18091
+ """
18092
+ @summary Creates or updates a consumption processor.
18093
+
18094
+ @param request: PutConsumeProcessorRequest
18095
+ @return: PutConsumeProcessorResponse
18096
+ """
18097
+ runtime = util_models.RuntimeOptions()
18098
+ headers = {}
18099
+ return await self.put_consume_processor_with_options_async(project, processor_name, request, headers, runtime)
18100
+
17169
18101
  def put_ingest_processor_with_options(
17170
18102
  self,
17171
18103
  project: str,
@@ -17598,7 +18530,7 @@ class Client(OpenApiClient):
17598
18530
  runtime: util_models.RuntimeOptions,
17599
18531
  ) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
17600
18532
  """
17601
- @summary 设置project传输加速状态
18533
+ @summary Enables or disables transfer acceleration.
17602
18534
 
17603
18535
  @param request: PutProjectTransferAccelerationRequest
17604
18536
  @param headers: map
@@ -17640,7 +18572,7 @@ class Client(OpenApiClient):
17640
18572
  runtime: util_models.RuntimeOptions,
17641
18573
  ) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
17642
18574
  """
17643
- @summary 设置project传输加速状态
18575
+ @summary Enables or disables transfer acceleration.
17644
18576
 
17645
18577
  @param request: PutProjectTransferAccelerationRequest
17646
18578
  @param headers: map
@@ -17680,7 +18612,7 @@ class Client(OpenApiClient):
17680
18612
  request: sls_20201230_models.PutProjectTransferAccelerationRequest,
17681
18613
  ) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
17682
18614
  """
17683
- @summary 设置project传输加速状态
18615
+ @summary Enables or disables transfer acceleration.
17684
18616
 
17685
18617
  @param request: PutProjectTransferAccelerationRequest
17686
18618
  @return: PutProjectTransferAccelerationResponse
@@ -17695,7 +18627,7 @@ class Client(OpenApiClient):
17695
18627
  request: sls_20201230_models.PutProjectTransferAccelerationRequest,
17696
18628
  ) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
17697
18629
  """
17698
- @summary 设置project传输加速状态
18630
+ @summary Enables or disables transfer acceleration.
17699
18631
 
17700
18632
  @param request: PutProjectTransferAccelerationRequest
17701
18633
  @return: PutProjectTransferAccelerationResponse
@@ -21510,6 +22442,8 @@ class Client(OpenApiClient):
21510
22442
  body['logSample'] = request.log_sample
21511
22443
  if not UtilClient.is_unset(request.processors):
21512
22444
  body['processors'] = request.processors
22445
+ if not UtilClient.is_unset(request.task):
22446
+ body['task'] = request.task
21513
22447
  req = open_api_models.OpenApiRequest(
21514
22448
  host_map=host_map,
21515
22449
  headers=headers,
@@ -21567,6 +22501,8 @@ class Client(OpenApiClient):
21567
22501
  body['logSample'] = request.log_sample
21568
22502
  if not UtilClient.is_unset(request.processors):
21569
22503
  body['processors'] = request.processors
22504
+ if not UtilClient.is_unset(request.task):
22505
+ body['task'] = request.task
21570
22506
  req = open_api_models.OpenApiRequest(
21571
22507
  host_map=host_map,
21572
22508
  headers=headers,
@@ -23549,7 +24485,9 @@ class Client(OpenApiClient):
23549
24485
  runtime: util_models.RuntimeOptions,
23550
24486
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
23551
24487
  """
23552
- @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
24488
+ @summary Creates a log collection policy for a cloud service. This way, logs can be automatically collected from the service.
24489
+
24490
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
23553
24491
 
23554
24492
  @param request: UpsertCollectionPolicyRequest
23555
24493
  @param headers: map
@@ -23603,7 +24541,9 @@ class Client(OpenApiClient):
23603
24541
  runtime: util_models.RuntimeOptions,
23604
24542
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
23605
24543
  """
23606
- @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
24544
+ @summary Creates a log collection policy for a cloud service. This way, logs can be automatically collected from the service.
24545
+
24546
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
23607
24547
 
23608
24548
  @param request: UpsertCollectionPolicyRequest
23609
24549
  @param headers: map
@@ -23655,7 +24595,9 @@ class Client(OpenApiClient):
23655
24595
  request: sls_20201230_models.UpsertCollectionPolicyRequest,
23656
24596
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
23657
24597
  """
23658
- @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
24598
+ @summary Creates a log collection policy for a cloud service. This way, logs can be automatically collected from the service.
24599
+
24600
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
23659
24601
 
23660
24602
  @param request: UpsertCollectionPolicyRequest
23661
24603
  @return: UpsertCollectionPolicyResponse
@@ -23669,7 +24611,9 @@ class Client(OpenApiClient):
23669
24611
  request: sls_20201230_models.UpsertCollectionPolicyRequest,
23670
24612
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
23671
24613
  """
23672
- @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
24614
+ @summary Creates a log collection policy for a cloud service. This way, logs can be automatically collected from the service.
24615
+
24616
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
23673
24617
 
23674
24618
  @param request: UpsertCollectionPolicyRequest
23675
24619
  @return: UpsertCollectionPolicyResponse