alibabacloud-sls20201230 5.2.3__py3-none-any.whl → 5.4.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.
@@ -146,7 +146,7 @@ class Client(OpenApiClient):
146
146
  runtime: util_models.RuntimeOptions,
147
147
  ) -> sls_20201230_models.ChangeResourceGroupResponse:
148
148
  """
149
- @summary Modifies the resource group of a resource.
149
+ @summary Changes the resource group to which a resource belongs.
150
150
 
151
151
  @param request: ChangeResourceGroupRequest
152
152
  @param headers: map
@@ -192,7 +192,7 @@ class Client(OpenApiClient):
192
192
  runtime: util_models.RuntimeOptions,
193
193
  ) -> sls_20201230_models.ChangeResourceGroupResponse:
194
194
  """
195
- @summary Modifies the resource group of a resource.
195
+ @summary Changes the resource group to which a resource belongs.
196
196
 
197
197
  @param request: ChangeResourceGroupRequest
198
198
  @param headers: map
@@ -236,7 +236,7 @@ class Client(OpenApiClient):
236
236
  request: sls_20201230_models.ChangeResourceGroupRequest,
237
237
  ) -> sls_20201230_models.ChangeResourceGroupResponse:
238
238
  """
239
- @summary Modifies the resource group of a resource.
239
+ @summary Changes the resource group to which a resource belongs.
240
240
 
241
241
  @param request: ChangeResourceGroupRequest
242
242
  @return: ChangeResourceGroupResponse
@@ -251,7 +251,7 @@ class Client(OpenApiClient):
251
251
  request: sls_20201230_models.ChangeResourceGroupRequest,
252
252
  ) -> sls_20201230_models.ChangeResourceGroupResponse:
253
253
  """
254
- @summary Modifies the resource group of a resource.
254
+ @summary Changes the resource group to which a resource belongs.
255
255
 
256
256
  @param request: ChangeResourceGroupRequest
257
257
  @return: ChangeResourceGroupResponse
@@ -273,8 +273,17 @@ class Client(OpenApiClient):
273
273
  @summary Sends heartbeats to a server from a consumer.
274
274
 
275
275
  @description ### Usage notes
276
- Connections between consumers and servers are established by sending heartbeats at regular intervals. If a server does not receive heartbeats from a consumer on schedule, the server deletes the consumer.
277
276
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
277
+ Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.
278
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
279
+ 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).
280
+ 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).
281
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
282
+ ### Authentication resources
283
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
284
+ |Action|Resource|
285
+ |:---|:---|
286
+ |`log:ConsumerGroupHeartBeat`|`acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}`|
278
287
 
279
288
  @param request: ConsumerGroupHeartBeatRequest
280
289
  @param headers: map
@@ -322,8 +331,17 @@ class Client(OpenApiClient):
322
331
  @summary Sends heartbeats to a server from a consumer.
323
332
 
324
333
  @description ### Usage notes
325
- Connections between consumers and servers are established by sending heartbeats at regular intervals. If a server does not receive heartbeats from a consumer on schedule, the server deletes the consumer.
326
334
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
335
+ Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.
336
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
337
+ 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).
338
+ 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).
339
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
340
+ ### Authentication resources
341
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
342
+ |Action|Resource|
343
+ |:---|:---|
344
+ |`log:ConsumerGroupHeartBeat`|`acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}`|
327
345
 
328
346
  @param request: ConsumerGroupHeartBeatRequest
329
347
  @param headers: map
@@ -369,8 +387,17 @@ class Client(OpenApiClient):
369
387
  @summary Sends heartbeats to a server from a consumer.
370
388
 
371
389
  @description ### Usage notes
372
- Connections between consumers and servers are established by sending heartbeats at regular intervals. If a server does not receive heartbeats from a consumer on schedule, the server deletes the consumer.
373
390
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
391
+ Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.
392
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
393
+ 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).
394
+ 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).
395
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
396
+ ### Authentication resources
397
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
398
+ |Action|Resource|
399
+ |:---|:---|
400
+ |`log:ConsumerGroupHeartBeat`|`acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}`|
374
401
 
375
402
  @param request: ConsumerGroupHeartBeatRequest
376
403
  @return: ConsumerGroupHeartBeatResponse
@@ -390,8 +417,17 @@ class Client(OpenApiClient):
390
417
  @summary Sends heartbeats to a server from a consumer.
391
418
 
392
419
  @description ### Usage notes
393
- Connections between consumers and servers are established by sending heartbeats at regular intervals. If a server does not receive heartbeats from a consumer on schedule, the server deletes the consumer.
394
420
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
421
+ Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.
422
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
423
+ 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).
424
+ 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).
425
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
426
+ ### Authentication resources
427
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
428
+ |Action|Resource|
429
+ |:---|:---|
430
+ |`log:ConsumerGroupHeartBeat`|`acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}`|
395
431
 
396
432
  @param request: ConsumerGroupHeartBeatRequest
397
433
  @return: ConsumerGroupHeartBeatResponse
@@ -1436,6 +1472,132 @@ class Client(OpenApiClient):
1436
1472
  headers = {}
1437
1473
  return await self.create_domain_with_options_async(project, request, headers, runtime)
1438
1474
 
1475
+ def create_download_job_with_options(
1476
+ self,
1477
+ project: str,
1478
+ request: sls_20201230_models.CreateDownloadJobRequest,
1479
+ headers: Dict[str, str],
1480
+ runtime: util_models.RuntimeOptions,
1481
+ ) -> sls_20201230_models.CreateDownloadJobResponse:
1482
+ """
1483
+ @summary 创建下载任务
1484
+
1485
+ @param request: CreateDownloadJobRequest
1486
+ @param headers: map
1487
+ @param runtime: runtime options for this request RuntimeOptions
1488
+ @return: CreateDownloadJobResponse
1489
+ """
1490
+ UtilClient.validate_model(request)
1491
+ host_map = {}
1492
+ host_map['project'] = project
1493
+ body = {}
1494
+ if not UtilClient.is_unset(request.configuration):
1495
+ body['configuration'] = request.configuration
1496
+ if not UtilClient.is_unset(request.description):
1497
+ body['description'] = request.description
1498
+ if not UtilClient.is_unset(request.display_name):
1499
+ body['displayName'] = request.display_name
1500
+ if not UtilClient.is_unset(request.name):
1501
+ body['name'] = request.name
1502
+ req = open_api_models.OpenApiRequest(
1503
+ host_map=host_map,
1504
+ headers=headers,
1505
+ body=OpenApiUtilClient.parse_to_map(body)
1506
+ )
1507
+ params = open_api_models.Params(
1508
+ action='CreateDownloadJob',
1509
+ version='2020-12-30',
1510
+ protocol='HTTPS',
1511
+ pathname=f'/downloadjobs',
1512
+ method='POST',
1513
+ auth_type='AK',
1514
+ style='ROA',
1515
+ req_body_type='json',
1516
+ body_type='none'
1517
+ )
1518
+ return TeaCore.from_map(
1519
+ sls_20201230_models.CreateDownloadJobResponse(),
1520
+ self.execute(params, req, runtime)
1521
+ )
1522
+
1523
+ async def create_download_job_with_options_async(
1524
+ self,
1525
+ project: str,
1526
+ request: sls_20201230_models.CreateDownloadJobRequest,
1527
+ headers: Dict[str, str],
1528
+ runtime: util_models.RuntimeOptions,
1529
+ ) -> sls_20201230_models.CreateDownloadJobResponse:
1530
+ """
1531
+ @summary 创建下载任务
1532
+
1533
+ @param request: CreateDownloadJobRequest
1534
+ @param headers: map
1535
+ @param runtime: runtime options for this request RuntimeOptions
1536
+ @return: CreateDownloadJobResponse
1537
+ """
1538
+ UtilClient.validate_model(request)
1539
+ host_map = {}
1540
+ host_map['project'] = project
1541
+ body = {}
1542
+ if not UtilClient.is_unset(request.configuration):
1543
+ body['configuration'] = request.configuration
1544
+ if not UtilClient.is_unset(request.description):
1545
+ body['description'] = request.description
1546
+ if not UtilClient.is_unset(request.display_name):
1547
+ body['displayName'] = request.display_name
1548
+ if not UtilClient.is_unset(request.name):
1549
+ body['name'] = request.name
1550
+ req = open_api_models.OpenApiRequest(
1551
+ host_map=host_map,
1552
+ headers=headers,
1553
+ body=OpenApiUtilClient.parse_to_map(body)
1554
+ )
1555
+ params = open_api_models.Params(
1556
+ action='CreateDownloadJob',
1557
+ version='2020-12-30',
1558
+ protocol='HTTPS',
1559
+ pathname=f'/downloadjobs',
1560
+ method='POST',
1561
+ auth_type='AK',
1562
+ style='ROA',
1563
+ req_body_type='json',
1564
+ body_type='none'
1565
+ )
1566
+ return TeaCore.from_map(
1567
+ sls_20201230_models.CreateDownloadJobResponse(),
1568
+ await self.execute_async(params, req, runtime)
1569
+ )
1570
+
1571
+ def create_download_job(
1572
+ self,
1573
+ project: str,
1574
+ request: sls_20201230_models.CreateDownloadJobRequest,
1575
+ ) -> sls_20201230_models.CreateDownloadJobResponse:
1576
+ """
1577
+ @summary 创建下载任务
1578
+
1579
+ @param request: CreateDownloadJobRequest
1580
+ @return: CreateDownloadJobResponse
1581
+ """
1582
+ runtime = util_models.RuntimeOptions()
1583
+ headers = {}
1584
+ return self.create_download_job_with_options(project, request, headers, runtime)
1585
+
1586
+ async def create_download_job_async(
1587
+ self,
1588
+ project: str,
1589
+ request: sls_20201230_models.CreateDownloadJobRequest,
1590
+ ) -> sls_20201230_models.CreateDownloadJobResponse:
1591
+ """
1592
+ @summary 创建下载任务
1593
+
1594
+ @param request: CreateDownloadJobRequest
1595
+ @return: CreateDownloadJobResponse
1596
+ """
1597
+ runtime = util_models.RuntimeOptions()
1598
+ headers = {}
1599
+ return await self.create_download_job_with_options_async(project, request, headers, runtime)
1600
+
1439
1601
  def create_etlwith_options(
1440
1602
  self,
1441
1603
  project: str,
@@ -1720,10 +1882,20 @@ class Client(OpenApiClient):
1720
1882
  runtime: util_models.RuntimeOptions,
1721
1883
  ) -> sls_20201230_models.CreateLogStoreResponse:
1722
1884
  """
1723
- @summary Create a Logstore
1885
+ @summary Creates a Logstore.
1724
1886
 
1725
1887
  @description ### Usage notes
1726
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
1888
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
1889
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
1890
+ 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).
1891
+ 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).
1892
+ You can create up to 200 Logstores in each project.
1893
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
1894
+ ### Authentication resources
1895
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
1896
+ |Action|Resource|
1897
+ |:---|:---|
1898
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1727
1899
 
1728
1900
  @param request: CreateLogStoreRequest
1729
1901
  @param headers: map
@@ -1752,6 +1924,8 @@ class Client(OpenApiClient):
1752
1924
  body['maxSplitShard'] = request.max_split_shard
1753
1925
  if not UtilClient.is_unset(request.mode):
1754
1926
  body['mode'] = request.mode
1927
+ if not UtilClient.is_unset(request.processor_id):
1928
+ body['processorId'] = request.processor_id
1755
1929
  if not UtilClient.is_unset(request.shard_count):
1756
1930
  body['shardCount'] = request.shard_count
1757
1931
  if not UtilClient.is_unset(request.telemetry_type):
@@ -1787,10 +1961,20 @@ class Client(OpenApiClient):
1787
1961
  runtime: util_models.RuntimeOptions,
1788
1962
  ) -> sls_20201230_models.CreateLogStoreResponse:
1789
1963
  """
1790
- @summary Create a Logstore
1964
+ @summary Creates a Logstore.
1791
1965
 
1792
1966
  @description ### Usage notes
1793
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
1967
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
1968
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
1969
+ 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).
1970
+ 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).
1971
+ You can create up to 200 Logstores in each project.
1972
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
1973
+ ### Authentication resources
1974
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
1975
+ |Action|Resource|
1976
+ |:---|:---|
1977
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1794
1978
 
1795
1979
  @param request: CreateLogStoreRequest
1796
1980
  @param headers: map
@@ -1819,6 +2003,8 @@ class Client(OpenApiClient):
1819
2003
  body['maxSplitShard'] = request.max_split_shard
1820
2004
  if not UtilClient.is_unset(request.mode):
1821
2005
  body['mode'] = request.mode
2006
+ if not UtilClient.is_unset(request.processor_id):
2007
+ body['processorId'] = request.processor_id
1822
2008
  if not UtilClient.is_unset(request.shard_count):
1823
2009
  body['shardCount'] = request.shard_count
1824
2010
  if not UtilClient.is_unset(request.telemetry_type):
@@ -1852,10 +2038,20 @@ class Client(OpenApiClient):
1852
2038
  request: sls_20201230_models.CreateLogStoreRequest,
1853
2039
  ) -> sls_20201230_models.CreateLogStoreResponse:
1854
2040
  """
1855
- @summary Create a Logstore
2041
+ @summary Creates a Logstore.
1856
2042
 
1857
2043
  @description ### Usage notes
1858
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
2044
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2045
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2046
+ 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).
2047
+ 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).
2048
+ You can create up to 200 Logstores in each project.
2049
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
2050
+ ### Authentication resources
2051
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
2052
+ |Action|Resource|
2053
+ |:---|:---|
2054
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1859
2055
 
1860
2056
  @param request: CreateLogStoreRequest
1861
2057
  @return: CreateLogStoreResponse
@@ -1870,10 +2066,20 @@ class Client(OpenApiClient):
1870
2066
  request: sls_20201230_models.CreateLogStoreRequest,
1871
2067
  ) -> sls_20201230_models.CreateLogStoreResponse:
1872
2068
  """
1873
- @summary Create a Logstore
2069
+ @summary Creates a Logstore.
1874
2070
 
1875
2071
  @description ### Usage notes
1876
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
2072
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2073
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2074
+ 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).
2075
+ 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).
2076
+ You can create up to 200 Logstores in each project.
2077
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
2078
+ ### Authentication resources
2079
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
2080
+ |Action|Resource|
2081
+ |:---|:---|
2082
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1877
2083
 
1878
2084
  @param request: CreateLogStoreRequest
1879
2085
  @return: CreateLogStoreResponse
@@ -2296,6 +2502,144 @@ class Client(OpenApiClient):
2296
2502
  headers = {}
2297
2503
  return await self.create_machine_group_with_options_async(project, request, headers, runtime)
2298
2504
 
2505
+ def create_metric_store_with_options(
2506
+ self,
2507
+ project: str,
2508
+ request: sls_20201230_models.CreateMetricStoreRequest,
2509
+ headers: Dict[str, str],
2510
+ runtime: util_models.RuntimeOptions,
2511
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2512
+ """
2513
+ @summary 创建时序库
2514
+
2515
+ @param request: CreateMetricStoreRequest
2516
+ @param headers: map
2517
+ @param runtime: runtime options for this request RuntimeOptions
2518
+ @return: CreateMetricStoreResponse
2519
+ """
2520
+ UtilClient.validate_model(request)
2521
+ host_map = {}
2522
+ host_map['project'] = project
2523
+ body = {}
2524
+ if not UtilClient.is_unset(request.auto_split):
2525
+ body['autoSplit'] = request.auto_split
2526
+ if not UtilClient.is_unset(request.max_split_shard):
2527
+ body['maxSplitShard'] = request.max_split_shard
2528
+ if not UtilClient.is_unset(request.metric_type):
2529
+ body['metricType'] = request.metric_type
2530
+ if not UtilClient.is_unset(request.mode):
2531
+ body['mode'] = request.mode
2532
+ if not UtilClient.is_unset(request.name):
2533
+ body['name'] = request.name
2534
+ if not UtilClient.is_unset(request.shard_count):
2535
+ body['shardCount'] = request.shard_count
2536
+ if not UtilClient.is_unset(request.ttl):
2537
+ body['ttl'] = request.ttl
2538
+ req = open_api_models.OpenApiRequest(
2539
+ host_map=host_map,
2540
+ headers=headers,
2541
+ body=OpenApiUtilClient.parse_to_map(body)
2542
+ )
2543
+ params = open_api_models.Params(
2544
+ action='CreateMetricStore',
2545
+ version='2020-12-30',
2546
+ protocol='HTTPS',
2547
+ pathname=f'/metricstores',
2548
+ method='POST',
2549
+ auth_type='AK',
2550
+ style='ROA',
2551
+ req_body_type='json',
2552
+ body_type='none'
2553
+ )
2554
+ return TeaCore.from_map(
2555
+ sls_20201230_models.CreateMetricStoreResponse(),
2556
+ self.execute(params, req, runtime)
2557
+ )
2558
+
2559
+ async def create_metric_store_with_options_async(
2560
+ self,
2561
+ project: str,
2562
+ request: sls_20201230_models.CreateMetricStoreRequest,
2563
+ headers: Dict[str, str],
2564
+ runtime: util_models.RuntimeOptions,
2565
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2566
+ """
2567
+ @summary 创建时序库
2568
+
2569
+ @param request: CreateMetricStoreRequest
2570
+ @param headers: map
2571
+ @param runtime: runtime options for this request RuntimeOptions
2572
+ @return: CreateMetricStoreResponse
2573
+ """
2574
+ UtilClient.validate_model(request)
2575
+ host_map = {}
2576
+ host_map['project'] = project
2577
+ body = {}
2578
+ if not UtilClient.is_unset(request.auto_split):
2579
+ body['autoSplit'] = request.auto_split
2580
+ if not UtilClient.is_unset(request.max_split_shard):
2581
+ body['maxSplitShard'] = request.max_split_shard
2582
+ if not UtilClient.is_unset(request.metric_type):
2583
+ body['metricType'] = request.metric_type
2584
+ if not UtilClient.is_unset(request.mode):
2585
+ body['mode'] = request.mode
2586
+ if not UtilClient.is_unset(request.name):
2587
+ body['name'] = request.name
2588
+ if not UtilClient.is_unset(request.shard_count):
2589
+ body['shardCount'] = request.shard_count
2590
+ if not UtilClient.is_unset(request.ttl):
2591
+ body['ttl'] = request.ttl
2592
+ req = open_api_models.OpenApiRequest(
2593
+ host_map=host_map,
2594
+ headers=headers,
2595
+ body=OpenApiUtilClient.parse_to_map(body)
2596
+ )
2597
+ params = open_api_models.Params(
2598
+ action='CreateMetricStore',
2599
+ version='2020-12-30',
2600
+ protocol='HTTPS',
2601
+ pathname=f'/metricstores',
2602
+ method='POST',
2603
+ auth_type='AK',
2604
+ style='ROA',
2605
+ req_body_type='json',
2606
+ body_type='none'
2607
+ )
2608
+ return TeaCore.from_map(
2609
+ sls_20201230_models.CreateMetricStoreResponse(),
2610
+ await self.execute_async(params, req, runtime)
2611
+ )
2612
+
2613
+ def create_metric_store(
2614
+ self,
2615
+ project: str,
2616
+ request: sls_20201230_models.CreateMetricStoreRequest,
2617
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2618
+ """
2619
+ @summary 创建时序库
2620
+
2621
+ @param request: CreateMetricStoreRequest
2622
+ @return: CreateMetricStoreResponse
2623
+ """
2624
+ runtime = util_models.RuntimeOptions()
2625
+ headers = {}
2626
+ return self.create_metric_store_with_options(project, request, headers, runtime)
2627
+
2628
+ async def create_metric_store_async(
2629
+ self,
2630
+ project: str,
2631
+ request: sls_20201230_models.CreateMetricStoreRequest,
2632
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2633
+ """
2634
+ @summary 创建时序库
2635
+
2636
+ @param request: CreateMetricStoreRequest
2637
+ @return: CreateMetricStoreResponse
2638
+ """
2639
+ runtime = util_models.RuntimeOptions()
2640
+ headers = {}
2641
+ return await self.create_metric_store_with_options_async(project, request, headers, runtime)
2642
+
2299
2643
  def create_ossexport_with_options(
2300
2644
  self,
2301
2645
  project: str,
@@ -2304,7 +2648,7 @@ class Client(OpenApiClient):
2304
2648
  runtime: util_models.RuntimeOptions,
2305
2649
  ) -> sls_20201230_models.CreateOSSExportResponse:
2306
2650
  """
2307
- @summary 创建OSS投递任务
2651
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2308
2652
 
2309
2653
  @param request: CreateOSSExportRequest
2310
2654
  @param headers: map
@@ -2352,7 +2696,7 @@ class Client(OpenApiClient):
2352
2696
  runtime: util_models.RuntimeOptions,
2353
2697
  ) -> sls_20201230_models.CreateOSSExportResponse:
2354
2698
  """
2355
- @summary 创建OSS投递任务
2699
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2356
2700
 
2357
2701
  @param request: CreateOSSExportRequest
2358
2702
  @param headers: map
@@ -2398,7 +2742,7 @@ class Client(OpenApiClient):
2398
2742
  request: sls_20201230_models.CreateOSSExportRequest,
2399
2743
  ) -> sls_20201230_models.CreateOSSExportResponse:
2400
2744
  """
2401
- @summary 创建OSS投递任务
2745
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2402
2746
 
2403
2747
  @param request: CreateOSSExportRequest
2404
2748
  @return: CreateOSSExportResponse
@@ -2413,7 +2757,7 @@ class Client(OpenApiClient):
2413
2757
  request: sls_20201230_models.CreateOSSExportRequest,
2414
2758
  ) -> sls_20201230_models.CreateOSSExportResponse:
2415
2759
  """
2416
- @summary 创建OSS投递任务
2760
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2417
2761
 
2418
2762
  @param request: CreateOSSExportRequest
2419
2763
  @return: CreateOSSExportResponse
@@ -2556,7 +2900,7 @@ class Client(OpenApiClient):
2556
2900
  runtime: util_models.RuntimeOptions,
2557
2901
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2558
2902
  """
2559
- @summary 创建OSS导入任务
2903
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2560
2904
 
2561
2905
  @param request: CreateOSSIngestionRequest
2562
2906
  @param headers: map
@@ -2606,7 +2950,7 @@ class Client(OpenApiClient):
2606
2950
  runtime: util_models.RuntimeOptions,
2607
2951
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2608
2952
  """
2609
- @summary 创建OSS导入任务
2953
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2610
2954
 
2611
2955
  @param request: CreateOSSIngestionRequest
2612
2956
  @param headers: map
@@ -2654,7 +2998,7 @@ class Client(OpenApiClient):
2654
2998
  request: sls_20201230_models.CreateOSSIngestionRequest,
2655
2999
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2656
3000
  """
2657
- @summary 创建OSS导入任务
3001
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2658
3002
 
2659
3003
  @param request: CreateOSSIngestionRequest
2660
3004
  @return: CreateOSSIngestionResponse
@@ -2669,7 +3013,7 @@ class Client(OpenApiClient):
2669
3013
  request: sls_20201230_models.CreateOSSIngestionRequest,
2670
3014
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2671
3015
  """
2672
- @summary 创建OSS导入任务
3016
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2673
3017
 
2674
3018
  @param request: CreateOSSIngestionRequest
2675
3019
  @return: CreateOSSIngestionResponse
@@ -3208,7 +3552,7 @@ class Client(OpenApiClient):
3208
3552
  runtime: util_models.RuntimeOptions,
3209
3553
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3210
3554
  """
3211
- @summary 创建定时SQL任务
3555
+ @summary Creates a Scheduled SQL job in a project.
3212
3556
 
3213
3557
  @param request: CreateScheduledSQLRequest
3214
3558
  @param headers: map
@@ -3258,7 +3602,7 @@ class Client(OpenApiClient):
3258
3602
  runtime: util_models.RuntimeOptions,
3259
3603
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3260
3604
  """
3261
- @summary 创建定时SQL任务
3605
+ @summary Creates a Scheduled SQL job in a project.
3262
3606
 
3263
3607
  @param request: CreateScheduledSQLRequest
3264
3608
  @param headers: map
@@ -3306,7 +3650,7 @@ class Client(OpenApiClient):
3306
3650
  request: sls_20201230_models.CreateScheduledSQLRequest,
3307
3651
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3308
3652
  """
3309
- @summary 创建定时SQL任务
3653
+ @summary Creates a Scheduled SQL job in a project.
3310
3654
 
3311
3655
  @param request: CreateScheduledSQLRequest
3312
3656
  @return: CreateScheduledSQLResponse
@@ -3321,7 +3665,7 @@ class Client(OpenApiClient):
3321
3665
  request: sls_20201230_models.CreateScheduledSQLRequest,
3322
3666
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3323
3667
  """
3324
- @summary 创建定时SQL任务
3668
+ @summary Creates a Scheduled SQL job in a project.
3325
3669
 
3326
3670
  @param request: CreateScheduledSQLRequest
3327
3671
  @return: CreateScheduledSQLResponse
@@ -3338,7 +3682,9 @@ class Client(OpenApiClient):
3338
3682
  runtime: util_models.RuntimeOptions,
3339
3683
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3340
3684
  """
3341
- @summary 创建独享sql实例
3685
+ @summary If you use the Standard SQL feature to analyze a large amount of data, the logs within the specified time range cannot be fully scanned in a single query request. In this case, the returned results may not contain all matched data. You can increase the number of shards to improve data read and write capabilities. However, this method takes effect only for incremental data. You can enable the Dedicated SQL feature to increase computing resources and the amount of data that can be analyzed in a single query request.
3686
+
3687
+ @description *Before you call this operation, make sure that you fully understand the [billing](https://help.aliyun.com/document_detail/223777.html) of Dedicated SQL.
3342
3688
 
3343
3689
  @param request: CreateSqlInstanceRequest
3344
3690
  @param headers: map
@@ -3382,7 +3728,9 @@ class Client(OpenApiClient):
3382
3728
  runtime: util_models.RuntimeOptions,
3383
3729
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3384
3730
  """
3385
- @summary 创建独享sql实例
3731
+ @summary If you use the Standard SQL feature to analyze a large amount of data, the logs within the specified time range cannot be fully scanned in a single query request. In this case, the returned results may not contain all matched data. You can increase the number of shards to improve data read and write capabilities. However, this method takes effect only for incremental data. You can enable the Dedicated SQL feature to increase computing resources and the amount of data that can be analyzed in a single query request.
3732
+
3733
+ @description *Before you call this operation, make sure that you fully understand the [billing](https://help.aliyun.com/document_detail/223777.html) of Dedicated SQL.
3386
3734
 
3387
3735
  @param request: CreateSqlInstanceRequest
3388
3736
  @param headers: map
@@ -3424,7 +3772,9 @@ class Client(OpenApiClient):
3424
3772
  request: sls_20201230_models.CreateSqlInstanceRequest,
3425
3773
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3426
3774
  """
3427
- @summary 创建独享sql实例
3775
+ @summary If you use the Standard SQL feature to analyze a large amount of data, the logs within the specified time range cannot be fully scanned in a single query request. In this case, the returned results may not contain all matched data. You can increase the number of shards to improve data read and write capabilities. However, this method takes effect only for incremental data. You can enable the Dedicated SQL feature to increase computing resources and the amount of data that can be analyzed in a single query request.
3776
+
3777
+ @description *Before you call this operation, make sure that you fully understand the [billing](https://help.aliyun.com/document_detail/223777.html) of Dedicated SQL.
3428
3778
 
3429
3779
  @param request: CreateSqlInstanceRequest
3430
3780
  @return: CreateSqlInstanceResponse
@@ -3439,7 +3789,9 @@ class Client(OpenApiClient):
3439
3789
  request: sls_20201230_models.CreateSqlInstanceRequest,
3440
3790
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3441
3791
  """
3442
- @summary 创建独享sql实例
3792
+ @summary If you use the Standard SQL feature to analyze a large amount of data, the logs within the specified time range cannot be fully scanned in a single query request. In this case, the returned results may not contain all matched data. You can increase the number of shards to improve data read and write capabilities. However, this method takes effect only for incremental data. You can enable the Dedicated SQL feature to increase computing resources and the amount of data that can be analyzed in a single query request.
3793
+
3794
+ @description *Before you call this operation, make sure that you fully understand the [billing](https://help.aliyun.com/document_detail/223777.html) of Dedicated SQL.
3443
3795
 
3444
3796
  @param request: CreateSqlInstanceRequest
3445
3797
  @return: CreateSqlInstanceResponse
@@ -3686,7 +4038,7 @@ class Client(OpenApiClient):
3686
4038
  runtime: util_models.RuntimeOptions,
3687
4039
  ) -> sls_20201230_models.DeleteAlertResponse:
3688
4040
  """
3689
- @summary 删除告警
4041
+ @summary Deletes an alert rule.
3690
4042
 
3691
4043
  @param headers: map
3692
4044
  @param runtime: runtime options for this request RuntimeOptions
@@ -3722,7 +4074,7 @@ class Client(OpenApiClient):
3722
4074
  runtime: util_models.RuntimeOptions,
3723
4075
  ) -> sls_20201230_models.DeleteAlertResponse:
3724
4076
  """
3725
- @summary 删除告警
4077
+ @summary Deletes an alert rule.
3726
4078
 
3727
4079
  @param headers: map
3728
4080
  @param runtime: runtime options for this request RuntimeOptions
@@ -3756,7 +4108,7 @@ class Client(OpenApiClient):
3756
4108
  alert_name: str,
3757
4109
  ) -> sls_20201230_models.DeleteAlertResponse:
3758
4110
  """
3759
- @summary 删除告警
4111
+ @summary Deletes an alert rule.
3760
4112
 
3761
4113
  @return: DeleteAlertResponse
3762
4114
  """
@@ -3770,7 +4122,7 @@ class Client(OpenApiClient):
3770
4122
  alert_name: str,
3771
4123
  ) -> sls_20201230_models.DeleteAlertResponse:
3772
4124
  """
3773
- @summary 删除告警
4125
+ @summary Deletes an alert rule.
3774
4126
 
3775
4127
  @return: DeleteAlertResponse
3776
4128
  """
@@ -4331,7 +4683,17 @@ class Client(OpenApiClient):
4331
4683
  """
4332
4684
  @summary Deletes a consumer group.
4333
4685
 
4334
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4686
+ @description ### Usage notes
4687
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4688
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4689
+ 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).
4690
+ 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).
4691
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4692
+ ### Authentication resources
4693
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
4694
+ |Action|Resource|
4695
+ |:---|:---|
4696
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4335
4697
 
4336
4698
  @param headers: map
4337
4699
  @param runtime: runtime options for this request RuntimeOptions
@@ -4370,7 +4732,17 @@ class Client(OpenApiClient):
4370
4732
  """
4371
4733
  @summary Deletes a consumer group.
4372
4734
 
4373
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4735
+ @description ### Usage notes
4736
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4737
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4738
+ 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).
4739
+ 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).
4740
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4741
+ ### Authentication resources
4742
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
4743
+ |Action|Resource|
4744
+ |:---|:---|
4745
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4374
4746
 
4375
4747
  @param headers: map
4376
4748
  @param runtime: runtime options for this request RuntimeOptions
@@ -4407,7 +4779,17 @@ class Client(OpenApiClient):
4407
4779
  """
4408
4780
  @summary Deletes a consumer group.
4409
4781
 
4410
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4782
+ @description ### Usage notes
4783
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4784
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4785
+ 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).
4786
+ 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).
4787
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4788
+ ### Authentication resources
4789
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
4790
+ |Action|Resource|
4791
+ |:---|:---|
4792
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4411
4793
 
4412
4794
  @return: DeleteConsumerGroupResponse
4413
4795
  """
@@ -4424,7 +4806,17 @@ class Client(OpenApiClient):
4424
4806
  """
4425
4807
  @summary Deletes a consumer group.
4426
4808
 
4427
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4809
+ @description ### Usage notes
4810
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4811
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4812
+ 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).
4813
+ 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).
4814
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4815
+ ### Authentication resources
4816
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
4817
+ |Action|Resource|
4818
+ |:---|:---|
4819
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4428
4820
 
4429
4821
  @return: DeleteConsumerGroupResponse
4430
4822
  """
@@ -4562,15 +4954,121 @@ class Client(OpenApiClient):
4562
4954
  domain_name: str,
4563
4955
  headers: Dict[str, str],
4564
4956
  runtime: util_models.RuntimeOptions,
4565
- ) -> sls_20201230_models.DeleteDomainResponse:
4957
+ ) -> sls_20201230_models.DeleteDomainResponse:
4958
+ """
4959
+ @summary Deletes a custom domain name that is bound to a project.
4960
+
4961
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4962
+
4963
+ @param headers: map
4964
+ @param runtime: runtime options for this request RuntimeOptions
4965
+ @return: DeleteDomainResponse
4966
+ """
4967
+ host_map = {}
4968
+ host_map['project'] = project
4969
+ req = open_api_models.OpenApiRequest(
4970
+ host_map=host_map,
4971
+ headers=headers
4972
+ )
4973
+ params = open_api_models.Params(
4974
+ action='DeleteDomain',
4975
+ version='2020-12-30',
4976
+ protocol='HTTPS',
4977
+ pathname=f'/domains/{domain_name}',
4978
+ method='DELETE',
4979
+ auth_type='AK',
4980
+ style='ROA',
4981
+ req_body_type='json',
4982
+ body_type='none'
4983
+ )
4984
+ return TeaCore.from_map(
4985
+ sls_20201230_models.DeleteDomainResponse(),
4986
+ self.execute(params, req, runtime)
4987
+ )
4988
+
4989
+ async def delete_domain_with_options_async(
4990
+ self,
4991
+ project: str,
4992
+ domain_name: str,
4993
+ headers: Dict[str, str],
4994
+ runtime: util_models.RuntimeOptions,
4995
+ ) -> sls_20201230_models.DeleteDomainResponse:
4996
+ """
4997
+ @summary Deletes a custom domain name that is bound to a project.
4998
+
4999
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5000
+
5001
+ @param headers: map
5002
+ @param runtime: runtime options for this request RuntimeOptions
5003
+ @return: DeleteDomainResponse
5004
+ """
5005
+ host_map = {}
5006
+ host_map['project'] = project
5007
+ req = open_api_models.OpenApiRequest(
5008
+ host_map=host_map,
5009
+ headers=headers
5010
+ )
5011
+ params = open_api_models.Params(
5012
+ action='DeleteDomain',
5013
+ version='2020-12-30',
5014
+ protocol='HTTPS',
5015
+ pathname=f'/domains/{domain_name}',
5016
+ method='DELETE',
5017
+ auth_type='AK',
5018
+ style='ROA',
5019
+ req_body_type='json',
5020
+ body_type='none'
5021
+ )
5022
+ return TeaCore.from_map(
5023
+ sls_20201230_models.DeleteDomainResponse(),
5024
+ await self.execute_async(params, req, runtime)
5025
+ )
5026
+
5027
+ def delete_domain(
5028
+ self,
5029
+ project: str,
5030
+ domain_name: str,
5031
+ ) -> sls_20201230_models.DeleteDomainResponse:
5032
+ """
5033
+ @summary Deletes a custom domain name that is bound to a project.
5034
+
5035
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5036
+
5037
+ @return: DeleteDomainResponse
5038
+ """
5039
+ runtime = util_models.RuntimeOptions()
5040
+ headers = {}
5041
+ return self.delete_domain_with_options(project, domain_name, headers, runtime)
5042
+
5043
+ async def delete_domain_async(
5044
+ self,
5045
+ project: str,
5046
+ domain_name: str,
5047
+ ) -> sls_20201230_models.DeleteDomainResponse:
5048
+ """
5049
+ @summary Deletes a custom domain name that is bound to a project.
5050
+
5051
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5052
+
5053
+ @return: DeleteDomainResponse
5054
+ """
5055
+ runtime = util_models.RuntimeOptions()
5056
+ headers = {}
5057
+ return await self.delete_domain_with_options_async(project, domain_name, headers, runtime)
5058
+
5059
+ def delete_download_job_with_options(
5060
+ self,
5061
+ project: str,
5062
+ download_job_name: str,
5063
+ headers: Dict[str, str],
5064
+ runtime: util_models.RuntimeOptions,
5065
+ ) -> sls_20201230_models.DeleteDownloadJobResponse:
4566
5066
  """
4567
- @summary Deletes a custom domain name that is bound to a project.
4568
-
4569
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5067
+ @summary 删除下载任务
4570
5068
 
4571
5069
  @param headers: map
4572
5070
  @param runtime: runtime options for this request RuntimeOptions
4573
- @return: DeleteDomainResponse
5071
+ @return: DeleteDownloadJobResponse
4574
5072
  """
4575
5073
  host_map = {}
4576
5074
  host_map['project'] = project
@@ -4579,10 +5077,10 @@ class Client(OpenApiClient):
4579
5077
  headers=headers
4580
5078
  )
4581
5079
  params = open_api_models.Params(
4582
- action='DeleteDomain',
5080
+ action='DeleteDownloadJob',
4583
5081
  version='2020-12-30',
4584
5082
  protocol='HTTPS',
4585
- pathname=f'/domains/{domain_name}',
5083
+ pathname=f'/downloadjobs/{download_job_name}',
4586
5084
  method='DELETE',
4587
5085
  auth_type='AK',
4588
5086
  style='ROA',
@@ -4590,25 +5088,23 @@ class Client(OpenApiClient):
4590
5088
  body_type='none'
4591
5089
  )
4592
5090
  return TeaCore.from_map(
4593
- sls_20201230_models.DeleteDomainResponse(),
5091
+ sls_20201230_models.DeleteDownloadJobResponse(),
4594
5092
  self.execute(params, req, runtime)
4595
5093
  )
4596
5094
 
4597
- async def delete_domain_with_options_async(
5095
+ async def delete_download_job_with_options_async(
4598
5096
  self,
4599
5097
  project: str,
4600
- domain_name: str,
5098
+ download_job_name: str,
4601
5099
  headers: Dict[str, str],
4602
5100
  runtime: util_models.RuntimeOptions,
4603
- ) -> sls_20201230_models.DeleteDomainResponse:
5101
+ ) -> sls_20201230_models.DeleteDownloadJobResponse:
4604
5102
  """
4605
- @summary Deletes a custom domain name that is bound to a project.
4606
-
4607
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5103
+ @summary 删除下载任务
4608
5104
 
4609
5105
  @param headers: map
4610
5106
  @param runtime: runtime options for this request RuntimeOptions
4611
- @return: DeleteDomainResponse
5107
+ @return: DeleteDownloadJobResponse
4612
5108
  """
4613
5109
  host_map = {}
4614
5110
  host_map['project'] = project
@@ -4617,10 +5113,10 @@ class Client(OpenApiClient):
4617
5113
  headers=headers
4618
5114
  )
4619
5115
  params = open_api_models.Params(
4620
- action='DeleteDomain',
5116
+ action='DeleteDownloadJob',
4621
5117
  version='2020-12-30',
4622
5118
  protocol='HTTPS',
4623
- pathname=f'/domains/{domain_name}',
5119
+ pathname=f'/downloadjobs/{download_job_name}',
4624
5120
  method='DELETE',
4625
5121
  auth_type='AK',
4626
5122
  style='ROA',
@@ -4628,41 +5124,37 @@ class Client(OpenApiClient):
4628
5124
  body_type='none'
4629
5125
  )
4630
5126
  return TeaCore.from_map(
4631
- sls_20201230_models.DeleteDomainResponse(),
5127
+ sls_20201230_models.DeleteDownloadJobResponse(),
4632
5128
  await self.execute_async(params, req, runtime)
4633
5129
  )
4634
5130
 
4635
- def delete_domain(
5131
+ def delete_download_job(
4636
5132
  self,
4637
5133
  project: str,
4638
- domain_name: str,
4639
- ) -> sls_20201230_models.DeleteDomainResponse:
5134
+ download_job_name: str,
5135
+ ) -> sls_20201230_models.DeleteDownloadJobResponse:
4640
5136
  """
4641
- @summary Deletes a custom domain name that is bound to a project.
4642
-
4643
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5137
+ @summary 删除下载任务
4644
5138
 
4645
- @return: DeleteDomainResponse
5139
+ @return: DeleteDownloadJobResponse
4646
5140
  """
4647
5141
  runtime = util_models.RuntimeOptions()
4648
5142
  headers = {}
4649
- return self.delete_domain_with_options(project, domain_name, headers, runtime)
5143
+ return self.delete_download_job_with_options(project, download_job_name, headers, runtime)
4650
5144
 
4651
- async def delete_domain_async(
5145
+ async def delete_download_job_async(
4652
5146
  self,
4653
5147
  project: str,
4654
- domain_name: str,
4655
- ) -> sls_20201230_models.DeleteDomainResponse:
5148
+ download_job_name: str,
5149
+ ) -> sls_20201230_models.DeleteDownloadJobResponse:
4656
5150
  """
4657
- @summary Deletes a custom domain name that is bound to a project.
4658
-
4659
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5151
+ @summary 删除下载任务
4660
5152
 
4661
- @return: DeleteDomainResponse
5153
+ @return: DeleteDownloadJobResponse
4662
5154
  """
4663
5155
  runtime = util_models.RuntimeOptions()
4664
5156
  headers = {}
4665
- return await self.delete_domain_with_options_async(project, domain_name, headers, runtime)
5157
+ return await self.delete_download_job_with_options_async(project, download_job_name, headers, runtime)
4666
5158
 
4667
5159
  def delete_etlwith_options(
4668
5160
  self,
@@ -5412,6 +5904,106 @@ class Client(OpenApiClient):
5412
5904
  headers = {}
5413
5905
  return await self.delete_machine_group_with_options_async(project, machine_group, headers, runtime)
5414
5906
 
5907
+ def delete_metric_store_with_options(
5908
+ self,
5909
+ project: str,
5910
+ name: str,
5911
+ headers: Dict[str, str],
5912
+ runtime: util_models.RuntimeOptions,
5913
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5914
+ """
5915
+ @summary 删除时序库
5916
+
5917
+ @param headers: map
5918
+ @param runtime: runtime options for this request RuntimeOptions
5919
+ @return: DeleteMetricStoreResponse
5920
+ """
5921
+ host_map = {}
5922
+ host_map['project'] = project
5923
+ req = open_api_models.OpenApiRequest(
5924
+ host_map=host_map,
5925
+ headers=headers
5926
+ )
5927
+ params = open_api_models.Params(
5928
+ action='DeleteMetricStore',
5929
+ version='2020-12-30',
5930
+ protocol='HTTPS',
5931
+ pathname=f'/metricstores/{name}',
5932
+ method='DELETE',
5933
+ auth_type='AK',
5934
+ style='ROA',
5935
+ req_body_type='none',
5936
+ body_type='none'
5937
+ )
5938
+ return TeaCore.from_map(
5939
+ sls_20201230_models.DeleteMetricStoreResponse(),
5940
+ self.execute(params, req, runtime)
5941
+ )
5942
+
5943
+ async def delete_metric_store_with_options_async(
5944
+ self,
5945
+ project: str,
5946
+ name: str,
5947
+ headers: Dict[str, str],
5948
+ runtime: util_models.RuntimeOptions,
5949
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5950
+ """
5951
+ @summary 删除时序库
5952
+
5953
+ @param headers: map
5954
+ @param runtime: runtime options for this request RuntimeOptions
5955
+ @return: DeleteMetricStoreResponse
5956
+ """
5957
+ host_map = {}
5958
+ host_map['project'] = project
5959
+ req = open_api_models.OpenApiRequest(
5960
+ host_map=host_map,
5961
+ headers=headers
5962
+ )
5963
+ params = open_api_models.Params(
5964
+ action='DeleteMetricStore',
5965
+ version='2020-12-30',
5966
+ protocol='HTTPS',
5967
+ pathname=f'/metricstores/{name}',
5968
+ method='DELETE',
5969
+ auth_type='AK',
5970
+ style='ROA',
5971
+ req_body_type='none',
5972
+ body_type='none'
5973
+ )
5974
+ return TeaCore.from_map(
5975
+ sls_20201230_models.DeleteMetricStoreResponse(),
5976
+ await self.execute_async(params, req, runtime)
5977
+ )
5978
+
5979
+ def delete_metric_store(
5980
+ self,
5981
+ project: str,
5982
+ name: str,
5983
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5984
+ """
5985
+ @summary 删除时序库
5986
+
5987
+ @return: DeleteMetricStoreResponse
5988
+ """
5989
+ runtime = util_models.RuntimeOptions()
5990
+ headers = {}
5991
+ return self.delete_metric_store_with_options(project, name, headers, runtime)
5992
+
5993
+ async def delete_metric_store_async(
5994
+ self,
5995
+ project: str,
5996
+ name: str,
5997
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5998
+ """
5999
+ @summary 删除时序库
6000
+
6001
+ @return: DeleteMetricStoreResponse
6002
+ """
6003
+ runtime = util_models.RuntimeOptions()
6004
+ headers = {}
6005
+ return await self.delete_metric_store_with_options_async(project, name, headers, runtime)
6006
+
5415
6007
  def delete_ossexport_with_options(
5416
6008
  self,
5417
6009
  project: str,
@@ -5620,7 +6212,7 @@ class Client(OpenApiClient):
5620
6212
  runtime: util_models.RuntimeOptions,
5621
6213
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5622
6214
  """
5623
- @summary 删除OSS导入任务
6215
+ @summary Deletes an Object Storage Service (OSS) data import job.
5624
6216
 
5625
6217
  @param headers: map
5626
6218
  @param runtime: runtime options for this request RuntimeOptions
@@ -5656,7 +6248,7 @@ class Client(OpenApiClient):
5656
6248
  runtime: util_models.RuntimeOptions,
5657
6249
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5658
6250
  """
5659
- @summary 删除OSS导入任务
6251
+ @summary Deletes an Object Storage Service (OSS) data import job.
5660
6252
 
5661
6253
  @param headers: map
5662
6254
  @param runtime: runtime options for this request RuntimeOptions
@@ -5690,7 +6282,7 @@ class Client(OpenApiClient):
5690
6282
  oss_ingestion_name: str,
5691
6283
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5692
6284
  """
5693
- @summary 删除OSS导入任务
6285
+ @summary Deletes an Object Storage Service (OSS) data import job.
5694
6286
 
5695
6287
  @return: DeleteOSSIngestionResponse
5696
6288
  """
@@ -5704,7 +6296,7 @@ class Client(OpenApiClient):
5704
6296
  oss_ingestion_name: str,
5705
6297
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5706
6298
  """
5707
- @summary 删除OSS导入任务
6299
+ @summary Deletes an Object Storage Service (OSS) data import job.
5708
6300
 
5709
6301
  @return: DeleteOSSIngestionResponse
5710
6302
  """
@@ -5719,7 +6311,18 @@ class Client(OpenApiClient):
5719
6311
  runtime: util_models.RuntimeOptions,
5720
6312
  ) -> sls_20201230_models.DeleteProjectResponse:
5721
6313
  """
5722
- @summary 删除project
6314
+ @summary Deletes a project.
6315
+
6316
+ @description ### Usage notes
6317
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6318
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6319
+ 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).
6320
+ After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.
6321
+ ### Authentication resources
6322
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
6323
+ |Action|Resource|
6324
+ |:---|:---|
6325
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5723
6326
 
5724
6327
  @param headers: map
5725
6328
  @param runtime: runtime options for this request RuntimeOptions
@@ -5754,7 +6357,18 @@ class Client(OpenApiClient):
5754
6357
  runtime: util_models.RuntimeOptions,
5755
6358
  ) -> sls_20201230_models.DeleteProjectResponse:
5756
6359
  """
5757
- @summary 删除project
6360
+ @summary Deletes a project.
6361
+
6362
+ @description ### Usage notes
6363
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6364
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6365
+ 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).
6366
+ After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.
6367
+ ### Authentication resources
6368
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
6369
+ |Action|Resource|
6370
+ |:---|:---|
6371
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5758
6372
 
5759
6373
  @param headers: map
5760
6374
  @param runtime: runtime options for this request RuntimeOptions
@@ -5787,7 +6401,18 @@ class Client(OpenApiClient):
5787
6401
  project: str,
5788
6402
  ) -> sls_20201230_models.DeleteProjectResponse:
5789
6403
  """
5790
- @summary 删除project
6404
+ @summary Deletes a project.
6405
+
6406
+ @description ### Usage notes
6407
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6408
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6409
+ 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).
6410
+ After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.
6411
+ ### Authentication resources
6412
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
6413
+ |Action|Resource|
6414
+ |:---|:---|
6415
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5791
6416
 
5792
6417
  @return: DeleteProjectResponse
5793
6418
  """
@@ -5800,7 +6425,18 @@ class Client(OpenApiClient):
5800
6425
  project: str,
5801
6426
  ) -> sls_20201230_models.DeleteProjectResponse:
5802
6427
  """
5803
- @summary 删除project
6428
+ @summary Deletes a project.
6429
+
6430
+ @description ### Usage notes
6431
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6432
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6433
+ 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).
6434
+ After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.
6435
+ ### Authentication resources
6436
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
6437
+ |Action|Resource|
6438
+ |:---|:---|
6439
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5804
6440
 
5805
6441
  @return: DeleteProjectResponse
5806
6442
  """
@@ -6036,7 +6672,7 @@ class Client(OpenApiClient):
6036
6672
  runtime: util_models.RuntimeOptions,
6037
6673
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6038
6674
  """
6039
- @summary 删除定时SQL任务
6675
+ @summary Deletes a Scheduled SQL job.
6040
6676
 
6041
6677
  @param headers: map
6042
6678
  @param runtime: runtime options for this request RuntimeOptions
@@ -6072,7 +6708,7 @@ class Client(OpenApiClient):
6072
6708
  runtime: util_models.RuntimeOptions,
6073
6709
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6074
6710
  """
6075
- @summary 删除定时SQL任务
6711
+ @summary Deletes a Scheduled SQL job.
6076
6712
 
6077
6713
  @param headers: map
6078
6714
  @param runtime: runtime options for this request RuntimeOptions
@@ -6106,7 +6742,7 @@ class Client(OpenApiClient):
6106
6742
  scheduled_sqlname: str,
6107
6743
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6108
6744
  """
6109
- @summary 删除定时SQL任务
6745
+ @summary Deletes a Scheduled SQL job.
6110
6746
 
6111
6747
  @return: DeleteScheduledSQLResponse
6112
6748
  """
@@ -6120,7 +6756,7 @@ class Client(OpenApiClient):
6120
6756
  scheduled_sqlname: str,
6121
6757
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6122
6758
  """
6123
- @summary 删除定时SQL任务
6759
+ @summary Deletes a Scheduled SQL job.
6124
6760
 
6125
6761
  @return: DeleteScheduledSQLResponse
6126
6762
  """
@@ -6136,7 +6772,7 @@ class Client(OpenApiClient):
6136
6772
  runtime: util_models.RuntimeOptions,
6137
6773
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6138
6774
  """
6139
- @summary 删除StoreView
6775
+ @summary Deletes a dataset by using the name of the dataset.
6140
6776
 
6141
6777
  @param headers: map
6142
6778
  @param runtime: runtime options for this request RuntimeOptions
@@ -6172,7 +6808,7 @@ class Client(OpenApiClient):
6172
6808
  runtime: util_models.RuntimeOptions,
6173
6809
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6174
6810
  """
6175
- @summary 删除StoreView
6811
+ @summary Deletes a dataset by using the name of the dataset.
6176
6812
 
6177
6813
  @param headers: map
6178
6814
  @param runtime: runtime options for this request RuntimeOptions
@@ -6206,7 +6842,7 @@ class Client(OpenApiClient):
6206
6842
  name: str,
6207
6843
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6208
6844
  """
6209
- @summary 删除StoreView
6845
+ @summary Deletes a dataset by using the name of the dataset.
6210
6846
 
6211
6847
  @return: DeleteStoreViewResponse
6212
6848
  """
@@ -6220,7 +6856,7 @@ class Client(OpenApiClient):
6220
6856
  name: str,
6221
6857
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6222
6858
  """
6223
- @summary 删除StoreView
6859
+ @summary Deletes a dataset by using the name of the dataset.
6224
6860
 
6225
6861
  @return: DeleteStoreViewResponse
6226
6862
  """
@@ -6236,7 +6872,7 @@ class Client(OpenApiClient):
6236
6872
  runtime: util_models.RuntimeOptions,
6237
6873
  ) -> sls_20201230_models.DisableAlertResponse:
6238
6874
  """
6239
- @summary 禁用告警
6875
+ @summary Disables an alert rule.
6240
6876
 
6241
6877
  @param headers: map
6242
6878
  @param runtime: runtime options for this request RuntimeOptions
@@ -6272,7 +6908,7 @@ class Client(OpenApiClient):
6272
6908
  runtime: util_models.RuntimeOptions,
6273
6909
  ) -> sls_20201230_models.DisableAlertResponse:
6274
6910
  """
6275
- @summary 禁用告警
6911
+ @summary Disables an alert rule.
6276
6912
 
6277
6913
  @param headers: map
6278
6914
  @param runtime: runtime options for this request RuntimeOptions
@@ -6306,7 +6942,7 @@ class Client(OpenApiClient):
6306
6942
  alert_name: str,
6307
6943
  ) -> sls_20201230_models.DisableAlertResponse:
6308
6944
  """
6309
- @summary 禁用告警
6945
+ @summary Disables an alert rule.
6310
6946
 
6311
6947
  @return: DisableAlertResponse
6312
6948
  """
@@ -6320,7 +6956,7 @@ class Client(OpenApiClient):
6320
6956
  alert_name: str,
6321
6957
  ) -> sls_20201230_models.DisableAlertResponse:
6322
6958
  """
6323
- @summary 禁用告警
6959
+ @summary Disables an alert rule.
6324
6960
 
6325
6961
  @return: DisableAlertResponse
6326
6962
  """
@@ -6436,7 +7072,7 @@ class Client(OpenApiClient):
6436
7072
  runtime: util_models.RuntimeOptions,
6437
7073
  ) -> sls_20201230_models.EnableAlertResponse:
6438
7074
  """
6439
- @summary 启用告警
7075
+ @summary Enables an alert rule.
6440
7076
 
6441
7077
  @param headers: map
6442
7078
  @param runtime: runtime options for this request RuntimeOptions
@@ -6472,7 +7108,7 @@ class Client(OpenApiClient):
6472
7108
  runtime: util_models.RuntimeOptions,
6473
7109
  ) -> sls_20201230_models.EnableAlertResponse:
6474
7110
  """
6475
- @summary 启用告警
7111
+ @summary Enables an alert rule.
6476
7112
 
6477
7113
  @param headers: map
6478
7114
  @param runtime: runtime options for this request RuntimeOptions
@@ -6506,7 +7142,7 @@ class Client(OpenApiClient):
6506
7142
  alert_name: str,
6507
7143
  ) -> sls_20201230_models.EnableAlertResponse:
6508
7144
  """
6509
- @summary 启用告警
7145
+ @summary Enables an alert rule.
6510
7146
 
6511
7147
  @return: EnableAlertResponse
6512
7148
  """
@@ -6520,7 +7156,7 @@ class Client(OpenApiClient):
6520
7156
  alert_name: str,
6521
7157
  ) -> sls_20201230_models.EnableAlertResponse:
6522
7158
  """
6523
- @summary 启用告警
7159
+ @summary Enables an alert rule.
6524
7160
 
6525
7161
  @return: EnableAlertResponse
6526
7162
  """
@@ -6636,7 +7272,7 @@ class Client(OpenApiClient):
6636
7272
  runtime: util_models.RuntimeOptions,
6637
7273
  ) -> sls_20201230_models.GetAlertResponse:
6638
7274
  """
6639
- @summary GetAlert
7275
+ @summary Queries the information about an alert rule.
6640
7276
 
6641
7277
  @param headers: map
6642
7278
  @param runtime: runtime options for this request RuntimeOptions
@@ -6672,7 +7308,7 @@ class Client(OpenApiClient):
6672
7308
  runtime: util_models.RuntimeOptions,
6673
7309
  ) -> sls_20201230_models.GetAlertResponse:
6674
7310
  """
6675
- @summary GetAlert
7311
+ @summary Queries the information about an alert rule.
6676
7312
 
6677
7313
  @param headers: map
6678
7314
  @param runtime: runtime options for this request RuntimeOptions
@@ -6706,7 +7342,7 @@ class Client(OpenApiClient):
6706
7342
  alert_name: str,
6707
7343
  ) -> sls_20201230_models.GetAlertResponse:
6708
7344
  """
6709
- @summary GetAlert
7345
+ @summary Queries the information about an alert rule.
6710
7346
 
6711
7347
  @return: GetAlertResponse
6712
7348
  """
@@ -6720,7 +7356,7 @@ class Client(OpenApiClient):
6720
7356
  alert_name: str,
6721
7357
  ) -> sls_20201230_models.GetAlertResponse:
6722
7358
  """
6723
- @summary GetAlert
7359
+ @summary Queries the information about an alert rule.
6724
7360
 
6725
7361
  @return: GetAlertResponse
6726
7362
  """
@@ -6736,7 +7372,7 @@ class Client(OpenApiClient):
6736
7372
  runtime: util_models.RuntimeOptions,
6737
7373
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6738
7374
  """
6739
- @summary Queries data in a dataset based on the unique identifier of the data.
7375
+ @summary Queries data in datasets based on the unique identifier of the data.
6740
7376
 
6741
7377
  @param headers: map
6742
7378
  @param runtime: runtime options for this request RuntimeOptions
@@ -6769,7 +7405,7 @@ class Client(OpenApiClient):
6769
7405
  runtime: util_models.RuntimeOptions,
6770
7406
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6771
7407
  """
6772
- @summary Queries data in a dataset based on the unique identifier of the data.
7408
+ @summary Queries data in datasets based on the unique identifier of the data.
6773
7409
 
6774
7410
  @param headers: map
6775
7411
  @param runtime: runtime options for this request RuntimeOptions
@@ -6800,7 +7436,7 @@ class Client(OpenApiClient):
6800
7436
  annotationdata_id: str,
6801
7437
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6802
7438
  """
6803
- @summary Queries data in a dataset based on the unique identifier of the data.
7439
+ @summary Queries data in datasets based on the unique identifier of the data.
6804
7440
 
6805
7441
  @return: GetAnnotationDataResponse
6806
7442
  """
@@ -6814,7 +7450,7 @@ class Client(OpenApiClient):
6814
7450
  annotationdata_id: str,
6815
7451
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6816
7452
  """
6817
- @summary Queries data in a dataset based on the unique identifier of the data.
7453
+ @summary Queries data in datasets based on the unique identifier of the data.
6818
7454
 
6819
7455
  @return: GetAnnotationDataResponse
6820
7456
  """
@@ -7599,8 +8235,19 @@ class Client(OpenApiClient):
7599
8235
  """
7600
8236
  @summary Queries the contextual logs of a specified log.
7601
8237
 
7602
- @description 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.
8238
+ @description ### Usage notes
8239
+ 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.
7603
8240
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8241
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8242
+ 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).
8243
+ 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).
8244
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8245
+ The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.
8246
+ ### Authentication resources
8247
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
8248
+ |Action|Resource|
8249
+ |:---|:---|
8250
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7604
8251
 
7605
8252
  @param request: GetContextLogsRequest
7606
8253
  @param headers: map
@@ -7653,8 +8300,19 @@ class Client(OpenApiClient):
7653
8300
  """
7654
8301
  @summary Queries the contextual logs of a specified log.
7655
8302
 
7656
- @description 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.
8303
+ @description ### Usage notes
8304
+ 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.
7657
8305
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8306
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8307
+ 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).
8308
+ 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).
8309
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8310
+ The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.
8311
+ ### Authentication resources
8312
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
8313
+ |Action|Resource|
8314
+ |:---|:---|
8315
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7658
8316
 
7659
8317
  @param request: GetContextLogsRequest
7660
8318
  @param headers: map
@@ -7705,8 +8363,19 @@ class Client(OpenApiClient):
7705
8363
  """
7706
8364
  @summary Queries the contextual logs of a specified log.
7707
8365
 
7708
- @description 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.
8366
+ @description ### Usage notes
8367
+ 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.
7709
8368
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8369
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8370
+ 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).
8371
+ 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).
8372
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8373
+ The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.
8374
+ ### Authentication resources
8375
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
8376
+ |Action|Resource|
8377
+ |:---|:---|
8378
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7710
8379
 
7711
8380
  @param request: GetContextLogsRequest
7712
8381
  @return: GetContextLogsResponse
@@ -7724,8 +8393,19 @@ class Client(OpenApiClient):
7724
8393
  """
7725
8394
  @summary Queries the contextual logs of a specified log.
7726
8395
 
7727
- @description 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.
8396
+ @description ### Usage notes
8397
+ 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.
7728
8398
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8399
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8400
+ 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).
8401
+ 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).
8402
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8403
+ The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.
8404
+ ### Authentication resources
8405
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
8406
+ |Action|Resource|
8407
+ |:---|:---|
8408
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7729
8409
 
7730
8410
  @param request: GetContextLogsRequest
7731
8411
  @return: GetContextLogsResponse
@@ -8104,31 +8784,131 @@ class Client(OpenApiClient):
8104
8784
  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).
8105
8785
  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).
8106
8786
 
8107
- @return: GetDashboardResponse
8787
+ @return: GetDashboardResponse
8788
+ """
8789
+ runtime = util_models.RuntimeOptions()
8790
+ headers = {}
8791
+ return self.get_dashboard_with_options(project, dashboard_name, headers, runtime)
8792
+
8793
+ async def get_dashboard_async(
8794
+ self,
8795
+ project: str,
8796
+ dashboard_name: str,
8797
+ ) -> sls_20201230_models.GetDashboardResponse:
8798
+ """
8799
+ @summary Queries a dashboard.
8800
+
8801
+ @description ### [](#)Usage notes
8802
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8803
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8804
+ 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).
8805
+ 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).
8806
+
8807
+ @return: GetDashboardResponse
8808
+ """
8809
+ runtime = util_models.RuntimeOptions()
8810
+ headers = {}
8811
+ return await self.get_dashboard_with_options_async(project, dashboard_name, headers, runtime)
8812
+
8813
+ def get_download_job_with_options(
8814
+ self,
8815
+ project: str,
8816
+ download_job_name: str,
8817
+ headers: Dict[str, str],
8818
+ runtime: util_models.RuntimeOptions,
8819
+ ) -> sls_20201230_models.GetDownloadJobResponse:
8820
+ """
8821
+ @summary 获取下载任务信息
8822
+
8823
+ @param headers: map
8824
+ @param runtime: runtime options for this request RuntimeOptions
8825
+ @return: GetDownloadJobResponse
8826
+ """
8827
+ host_map = {}
8828
+ host_map['project'] = project
8829
+ req = open_api_models.OpenApiRequest(
8830
+ host_map=host_map,
8831
+ headers=headers
8832
+ )
8833
+ params = open_api_models.Params(
8834
+ action='GetDownloadJob',
8835
+ version='2020-12-30',
8836
+ protocol='HTTPS',
8837
+ pathname=f'/downloadjobs/{download_job_name}',
8838
+ method='GET',
8839
+ auth_type='AK',
8840
+ style='ROA',
8841
+ req_body_type='json',
8842
+ body_type='json'
8843
+ )
8844
+ return TeaCore.from_map(
8845
+ sls_20201230_models.GetDownloadJobResponse(),
8846
+ self.execute(params, req, runtime)
8847
+ )
8848
+
8849
+ async def get_download_job_with_options_async(
8850
+ self,
8851
+ project: str,
8852
+ download_job_name: str,
8853
+ headers: Dict[str, str],
8854
+ runtime: util_models.RuntimeOptions,
8855
+ ) -> sls_20201230_models.GetDownloadJobResponse:
8856
+ """
8857
+ @summary 获取下载任务信息
8858
+
8859
+ @param headers: map
8860
+ @param runtime: runtime options for this request RuntimeOptions
8861
+ @return: GetDownloadJobResponse
8862
+ """
8863
+ host_map = {}
8864
+ host_map['project'] = project
8865
+ req = open_api_models.OpenApiRequest(
8866
+ host_map=host_map,
8867
+ headers=headers
8868
+ )
8869
+ params = open_api_models.Params(
8870
+ action='GetDownloadJob',
8871
+ version='2020-12-30',
8872
+ protocol='HTTPS',
8873
+ pathname=f'/downloadjobs/{download_job_name}',
8874
+ method='GET',
8875
+ auth_type='AK',
8876
+ style='ROA',
8877
+ req_body_type='json',
8878
+ body_type='json'
8879
+ )
8880
+ return TeaCore.from_map(
8881
+ sls_20201230_models.GetDownloadJobResponse(),
8882
+ await self.execute_async(params, req, runtime)
8883
+ )
8884
+
8885
+ def get_download_job(
8886
+ self,
8887
+ project: str,
8888
+ download_job_name: str,
8889
+ ) -> sls_20201230_models.GetDownloadJobResponse:
8890
+ """
8891
+ @summary 获取下载任务信息
8892
+
8893
+ @return: GetDownloadJobResponse
8108
8894
  """
8109
8895
  runtime = util_models.RuntimeOptions()
8110
8896
  headers = {}
8111
- return self.get_dashboard_with_options(project, dashboard_name, headers, runtime)
8897
+ return self.get_download_job_with_options(project, download_job_name, headers, runtime)
8112
8898
 
8113
- async def get_dashboard_async(
8899
+ async def get_download_job_async(
8114
8900
  self,
8115
8901
  project: str,
8116
- dashboard_name: str,
8117
- ) -> sls_20201230_models.GetDashboardResponse:
8902
+ download_job_name: str,
8903
+ ) -> sls_20201230_models.GetDownloadJobResponse:
8118
8904
  """
8119
- @summary Queries a dashboard.
8120
-
8121
- @description ### [](#)Usage notes
8122
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8123
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8124
- 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).
8125
- 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).
8905
+ @summary 获取下载任务信息
8126
8906
 
8127
- @return: GetDashboardResponse
8907
+ @return: GetDownloadJobResponse
8128
8908
  """
8129
8909
  runtime = util_models.RuntimeOptions()
8130
8910
  headers = {}
8131
- return await self.get_dashboard_with_options_async(project, dashboard_name, headers, runtime)
8911
+ return await self.get_download_job_with_options_async(project, download_job_name, headers, runtime)
8132
8912
 
8133
8913
  def get_etlwith_options(
8134
8914
  self,
@@ -8748,7 +9528,7 @@ class Client(OpenApiClient):
8748
9528
  runtime: util_models.RuntimeOptions,
8749
9529
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
8750
9530
  """
8751
- @summary 获取LogStore计量模式
9531
+ @summary Queries the billing mode of a Logstore.
8752
9532
 
8753
9533
  @param headers: map
8754
9534
  @param runtime: runtime options for this request RuntimeOptions
@@ -8784,7 +9564,7 @@ class Client(OpenApiClient):
8784
9564
  runtime: util_models.RuntimeOptions,
8785
9565
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
8786
9566
  """
8787
- @summary 获取LogStore计量模式
9567
+ @summary Queries the billing mode of a Logstore.
8788
9568
 
8789
9569
  @param headers: map
8790
9570
  @param runtime: runtime options for this request RuntimeOptions
@@ -8818,7 +9598,7 @@ class Client(OpenApiClient):
8818
9598
  logstore: str,
8819
9599
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
8820
9600
  """
8821
- @summary 获取LogStore计量模式
9601
+ @summary Queries the billing mode of a Logstore.
8822
9602
 
8823
9603
  @return: GetLogStoreMeteringModeResponse
8824
9604
  """
@@ -8832,7 +9612,7 @@ class Client(OpenApiClient):
8832
9612
  logstore: str,
8833
9613
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
8834
9614
  """
8835
- @summary 获取LogStore计量模式
9615
+ @summary Queries the billing mode of a Logstore.
8836
9616
 
8837
9617
  @return: GetLogStoreMeteringModeResponse
8838
9618
  """
@@ -9143,13 +9923,11 @@ class Client(OpenApiClient):
9143
9923
  runtime: util_models.RuntimeOptions,
9144
9924
  ) -> sls_20201230_models.GetLogsV2Response:
9145
9925
  """
9146
- @summary Queries the raw log data in a Logstore of a project. The returned result shows the raw log data in a specific time range. The returned results are compressed and transmitted.
9926
+ @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.
9147
9927
 
9148
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9149
- If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times you must call this API operation to obtain a complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation again to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.
9150
- After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:
9151
- 1. 1. Real-time data: The difference between the time record in the log and the current server time is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as real-time data. This type of log is usually generated in common scenarios.
9152
- 2. 2. Historical data: The difference between the time record in the log and the current server time is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.
9928
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
9929
+ You can call this operation by using Simple Log Service SDK for Go or Java.
9930
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9153
9931
 
9154
9932
  @param request: GetLogsV2Request
9155
9933
  @param headers: GetLogsV2Headers
@@ -9217,13 +9995,11 @@ class Client(OpenApiClient):
9217
9995
  runtime: util_models.RuntimeOptions,
9218
9996
  ) -> sls_20201230_models.GetLogsV2Response:
9219
9997
  """
9220
- @summary Queries the raw log data in a Logstore of a project. The returned result shows the raw log data in a specific time range. The returned results are compressed and transmitted.
9998
+ @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.
9221
9999
 
9222
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9223
- If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times you must call this API operation to obtain a complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation again to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.
9224
- After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:
9225
- 1. 1. Real-time data: The difference between the time record in the log and the current server time is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as real-time data. This type of log is usually generated in common scenarios.
9226
- 2. 2. Historical data: The difference between the time record in the log and the current server time is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.
10000
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10001
+ You can call this operation by using Simple Log Service SDK for Go or Java.
10002
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9227
10003
 
9228
10004
  @param request: GetLogsV2Request
9229
10005
  @param headers: GetLogsV2Headers
@@ -9289,13 +10065,11 @@ class Client(OpenApiClient):
9289
10065
  request: sls_20201230_models.GetLogsV2Request,
9290
10066
  ) -> sls_20201230_models.GetLogsV2Response:
9291
10067
  """
9292
- @summary Queries the raw log data in a Logstore of a project. The returned result shows the raw log data in a specific time range. The returned results are compressed and transmitted.
10068
+ @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.
9293
10069
 
9294
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9295
- If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times you must call this API operation to obtain a complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation again to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.
9296
- After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:
9297
- 1. 1. Real-time data: The difference between the time record in the log and the current server time is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as real-time data. This type of log is usually generated in common scenarios.
9298
- 2. 2. Historical data: The difference between the time record in the log and the current server time is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.
10070
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10071
+ You can call this operation by using Simple Log Service SDK for Go or Java.
10072
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9299
10073
 
9300
10074
  @param request: GetLogsV2Request
9301
10075
  @return: GetLogsV2Response
@@ -9311,13 +10085,11 @@ class Client(OpenApiClient):
9311
10085
  request: sls_20201230_models.GetLogsV2Request,
9312
10086
  ) -> sls_20201230_models.GetLogsV2Response:
9313
10087
  """
9314
- @summary Queries the raw log data in a Logstore of a project. The returned result shows the raw log data in a specific time range. The returned results are compressed and transmitted.
10088
+ @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.
9315
10089
 
9316
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9317
- If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times you must call this API operation to obtain a complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation again to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.
9318
- After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:
9319
- 1. 1. Real-time data: The difference between the time record in the log and the current server time is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as real-time data. This type of log is usually generated in common scenarios.
9320
- 2. 2. Historical data: The difference between the time record in the log and the current server time is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and the server received the log at 12:05:00, September 25, 2014 (UTC), the server processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.
10090
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10091
+ You can call this operation by using Simple Log Service SDK for Go or Java.
10092
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9321
10093
 
9322
10094
  @param request: GetLogsV2Request
9323
10095
  @return: GetLogsV2Response
@@ -9442,7 +10214,7 @@ class Client(OpenApiClient):
9442
10214
  runtime: util_models.RuntimeOptions,
9443
10215
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9444
10216
  """
9445
- @summary GetMLServiceResults
10217
+ @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
9446
10218
 
9447
10219
  @param request: GetMLServiceResultsRequest
9448
10220
  @param headers: map
@@ -9484,7 +10256,7 @@ class Client(OpenApiClient):
9484
10256
  runtime: util_models.RuntimeOptions,
9485
10257
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9486
10258
  """
9487
- @summary GetMLServiceResults
10259
+ @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
9488
10260
 
9489
10261
  @param request: GetMLServiceResultsRequest
9490
10262
  @param headers: map
@@ -9524,7 +10296,7 @@ class Client(OpenApiClient):
9524
10296
  request: sls_20201230_models.GetMLServiceResultsRequest,
9525
10297
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9526
10298
  """
9527
- @summary GetMLServiceResults
10299
+ @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
9528
10300
 
9529
10301
  @param request: GetMLServiceResultsRequest
9530
10302
  @return: GetMLServiceResultsResponse
@@ -9539,7 +10311,7 @@ class Client(OpenApiClient):
9539
10311
  request: sls_20201230_models.GetMLServiceResultsRequest,
9540
10312
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9541
10313
  """
9542
- @summary GetMLServiceResults
10314
+ @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
9543
10315
 
9544
10316
  @param request: GetMLServiceResultsRequest
9545
10317
  @return: GetMLServiceResultsResponse
@@ -9656,6 +10428,106 @@ class Client(OpenApiClient):
9656
10428
  headers = {}
9657
10429
  return await self.get_machine_group_with_options_async(project, machine_group, headers, runtime)
9658
10430
 
10431
+ def get_metric_store_with_options(
10432
+ self,
10433
+ project: str,
10434
+ name: str,
10435
+ headers: Dict[str, str],
10436
+ runtime: util_models.RuntimeOptions,
10437
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10438
+ """
10439
+ @summary 查询时序库
10440
+
10441
+ @param headers: map
10442
+ @param runtime: runtime options for this request RuntimeOptions
10443
+ @return: GetMetricStoreResponse
10444
+ """
10445
+ host_map = {}
10446
+ host_map['project'] = project
10447
+ req = open_api_models.OpenApiRequest(
10448
+ host_map=host_map,
10449
+ headers=headers
10450
+ )
10451
+ params = open_api_models.Params(
10452
+ action='GetMetricStore',
10453
+ version='2020-12-30',
10454
+ protocol='HTTPS',
10455
+ pathname=f'/metricstores/{name}',
10456
+ method='GET',
10457
+ auth_type='AK',
10458
+ style='ROA',
10459
+ req_body_type='none',
10460
+ body_type='json'
10461
+ )
10462
+ return TeaCore.from_map(
10463
+ sls_20201230_models.GetMetricStoreResponse(),
10464
+ self.execute(params, req, runtime)
10465
+ )
10466
+
10467
+ async def get_metric_store_with_options_async(
10468
+ self,
10469
+ project: str,
10470
+ name: str,
10471
+ headers: Dict[str, str],
10472
+ runtime: util_models.RuntimeOptions,
10473
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10474
+ """
10475
+ @summary 查询时序库
10476
+
10477
+ @param headers: map
10478
+ @param runtime: runtime options for this request RuntimeOptions
10479
+ @return: GetMetricStoreResponse
10480
+ """
10481
+ host_map = {}
10482
+ host_map['project'] = project
10483
+ req = open_api_models.OpenApiRequest(
10484
+ host_map=host_map,
10485
+ headers=headers
10486
+ )
10487
+ params = open_api_models.Params(
10488
+ action='GetMetricStore',
10489
+ version='2020-12-30',
10490
+ protocol='HTTPS',
10491
+ pathname=f'/metricstores/{name}',
10492
+ method='GET',
10493
+ auth_type='AK',
10494
+ style='ROA',
10495
+ req_body_type='none',
10496
+ body_type='json'
10497
+ )
10498
+ return TeaCore.from_map(
10499
+ sls_20201230_models.GetMetricStoreResponse(),
10500
+ await self.execute_async(params, req, runtime)
10501
+ )
10502
+
10503
+ def get_metric_store(
10504
+ self,
10505
+ project: str,
10506
+ name: str,
10507
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10508
+ """
10509
+ @summary 查询时序库
10510
+
10511
+ @return: GetMetricStoreResponse
10512
+ """
10513
+ runtime = util_models.RuntimeOptions()
10514
+ headers = {}
10515
+ return self.get_metric_store_with_options(project, name, headers, runtime)
10516
+
10517
+ async def get_metric_store_async(
10518
+ self,
10519
+ project: str,
10520
+ name: str,
10521
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10522
+ """
10523
+ @summary 查询时序库
10524
+
10525
+ @return: GetMetricStoreResponse
10526
+ """
10527
+ runtime = util_models.RuntimeOptions()
10528
+ headers = {}
10529
+ return await self.get_metric_store_with_options_async(project, name, headers, runtime)
10530
+
9659
10531
  def get_metric_store_metering_mode_with_options(
9660
10532
  self,
9661
10533
  project: str,
@@ -9664,7 +10536,7 @@ class Client(OpenApiClient):
9664
10536
  runtime: util_models.RuntimeOptions,
9665
10537
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
9666
10538
  """
9667
- @summary 获取 MetricStore 计量模式
10539
+ @summary Queries the billing mode of a Metricstore.
9668
10540
 
9669
10541
  @param headers: map
9670
10542
  @param runtime: runtime options for this request RuntimeOptions
@@ -9700,7 +10572,7 @@ class Client(OpenApiClient):
9700
10572
  runtime: util_models.RuntimeOptions,
9701
10573
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
9702
10574
  """
9703
- @summary 获取 MetricStore 计量模式
10575
+ @summary Queries the billing mode of a Metricstore.
9704
10576
 
9705
10577
  @param headers: map
9706
10578
  @param runtime: runtime options for this request RuntimeOptions
@@ -9734,7 +10606,7 @@ class Client(OpenApiClient):
9734
10606
  metric_store: str,
9735
10607
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
9736
10608
  """
9737
- @summary 获取 MetricStore 计量模式
10609
+ @summary Queries the billing mode of a Metricstore.
9738
10610
 
9739
10611
  @return: GetMetricStoreMeteringModeResponse
9740
10612
  """
@@ -9748,7 +10620,7 @@ class Client(OpenApiClient):
9748
10620
  metric_store: str,
9749
10621
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
9750
10622
  """
9751
- @summary 获取 MetricStore 计量模式
10623
+ @summary Queries the billing mode of a Metricstore.
9752
10624
 
9753
10625
  @return: GetMetricStoreMeteringModeResponse
9754
10626
  """
@@ -9964,7 +10836,7 @@ class Client(OpenApiClient):
9964
10836
  runtime: util_models.RuntimeOptions,
9965
10837
  ) -> sls_20201230_models.GetOSSIngestionResponse:
9966
10838
  """
9967
- @summary 获取oss导入任务信息
10839
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
9968
10840
 
9969
10841
  @param headers: map
9970
10842
  @param runtime: runtime options for this request RuntimeOptions
@@ -10000,7 +10872,7 @@ class Client(OpenApiClient):
10000
10872
  runtime: util_models.RuntimeOptions,
10001
10873
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10002
10874
  """
10003
- @summary 获取oss导入任务信息
10875
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10004
10876
 
10005
10877
  @param headers: map
10006
10878
  @param runtime: runtime options for this request RuntimeOptions
@@ -10034,7 +10906,7 @@ class Client(OpenApiClient):
10034
10906
  oss_ingestion_name: str,
10035
10907
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10036
10908
  """
10037
- @summary 获取oss导入任务信息
10909
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10038
10910
 
10039
10911
  @return: GetOSSIngestionResponse
10040
10912
  """
@@ -10048,7 +10920,7 @@ class Client(OpenApiClient):
10048
10920
  oss_ingestion_name: str,
10049
10921
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10050
10922
  """
10051
- @summary 获取oss导入任务信息
10923
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10052
10924
 
10053
10925
  @return: GetOSSIngestionResponse
10054
10926
  """
@@ -10175,11 +11047,20 @@ class Client(OpenApiClient):
10175
11047
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10176
11048
 
10177
11049
  @description ### Usage notes
10178
- You can use the query parameter to specify a standard SQL statement.
10179
- You must specify a project in the domain name of the request.
10180
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10181
- You must specify a time range in the SQL statement by using the __date__ parameter or __time__ parameter. The value of the __date__ parameter is a timestamp, and the value of the __time__ parameter is an integer. The unit of the __time__ parameter is seconds.
10182
11050
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11051
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11052
+ 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).
11053
+ 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).
11054
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11055
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
11056
+ You must set query to a standard SQL statement.
11057
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11058
+ You must specify a time range in an SQL statement by using the __date__ or __time__ parameter. The value of the __date__ parameter is a timestamp. The value of the __time__ parameter is an integer, and the unit of the value is seconds.
11059
+ ### Authentication resources
11060
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11061
+ |Action|Resource|
11062
+ |:---|:---|
11063
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10183
11064
 
10184
11065
  @param request: GetProjectLogsRequest
10185
11066
  @param headers: map
@@ -10226,11 +11107,20 @@ class Client(OpenApiClient):
10226
11107
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10227
11108
 
10228
11109
  @description ### Usage notes
10229
- You can use the query parameter to specify a standard SQL statement.
10230
- You must specify a project in the domain name of the request.
10231
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10232
- You must specify a time range in the SQL statement by using the __date__ parameter or __time__ parameter. The value of the __date__ parameter is a timestamp, and the value of the __time__ parameter is an integer. The unit of the __time__ parameter is seconds.
10233
11110
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11111
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11112
+ 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).
11113
+ 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).
11114
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11115
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
11116
+ You must set query to a standard SQL statement.
11117
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11118
+ You must specify a time range in an SQL statement by using the __date__ or __time__ parameter. The value of the __date__ parameter is a timestamp. The value of the __time__ parameter is an integer, and the unit of the value is seconds.
11119
+ ### Authentication resources
11120
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11121
+ |Action|Resource|
11122
+ |:---|:---|
11123
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10234
11124
 
10235
11125
  @param request: GetProjectLogsRequest
10236
11126
  @param headers: map
@@ -10275,11 +11165,20 @@ class Client(OpenApiClient):
10275
11165
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10276
11166
 
10277
11167
  @description ### Usage notes
10278
- You can use the query parameter to specify a standard SQL statement.
10279
- You must specify a project in the domain name of the request.
10280
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10281
- You must specify a time range in the SQL statement by using the __date__ parameter or __time__ parameter. The value of the __date__ parameter is a timestamp, and the value of the __time__ parameter is an integer. The unit of the __time__ parameter is seconds.
10282
11168
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11169
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11170
+ 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).
11171
+ 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).
11172
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11173
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
11174
+ You must set query to a standard SQL statement.
11175
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11176
+ You must specify a time range in an SQL statement by using the __date__ or __time__ parameter. The value of the __date__ parameter is a timestamp. The value of the __time__ parameter is an integer, and the unit of the value is seconds.
11177
+ ### Authentication resources
11178
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11179
+ |Action|Resource|
11180
+ |:---|:---|
11181
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10283
11182
 
10284
11183
  @param request: GetProjectLogsRequest
10285
11184
  @return: GetProjectLogsResponse
@@ -10297,11 +11196,20 @@ class Client(OpenApiClient):
10297
11196
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10298
11197
 
10299
11198
  @description ### Usage notes
10300
- You can use the query parameter to specify a standard SQL statement.
10301
- You must specify a project in the domain name of the request.
10302
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10303
- You must specify a time range in the SQL statement by using the __date__ parameter or __time__ parameter. The value of the __date__ parameter is a timestamp, and the value of the __time__ parameter is an integer. The unit of the __time__ parameter is seconds.
10304
11199
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11200
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11201
+ 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).
11202
+ 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).
11203
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11204
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
11205
+ You must set query to a standard SQL statement.
11206
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11207
+ You must specify a time range in an SQL statement by using the __date__ or __time__ parameter. The value of the __date__ parameter is a timestamp. The value of the __time__ parameter is an integer, and the unit of the value is seconds.
11208
+ ### Authentication resources
11209
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
11210
+ |Action|Resource|
11211
+ |:---|:---|
11212
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10305
11213
 
10306
11214
  @param request: GetProjectLogsRequest
10307
11215
  @return: GetProjectLogsResponse
@@ -10550,7 +11458,7 @@ class Client(OpenApiClient):
10550
11458
  runtime: util_models.RuntimeOptions,
10551
11459
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10552
11460
  """
10553
- @summary 查看定时SQL任务
11461
+ @summary Queries the information about a Scheduled SQL job.
10554
11462
 
10555
11463
  @param headers: map
10556
11464
  @param runtime: runtime options for this request RuntimeOptions
@@ -10586,7 +11494,7 @@ class Client(OpenApiClient):
10586
11494
  runtime: util_models.RuntimeOptions,
10587
11495
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10588
11496
  """
10589
- @summary 查看定时SQL任务
11497
+ @summary Queries the information about a Scheduled SQL job.
10590
11498
 
10591
11499
  @param headers: map
10592
11500
  @param runtime: runtime options for this request RuntimeOptions
@@ -10620,7 +11528,7 @@ class Client(OpenApiClient):
10620
11528
  scheduled_sqlname: str,
10621
11529
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10622
11530
  """
10623
- @summary 查看定时SQL任务
11531
+ @summary Queries the information about a Scheduled SQL job.
10624
11532
 
10625
11533
  @return: GetScheduledSQLResponse
10626
11534
  """
@@ -10634,7 +11542,7 @@ class Client(OpenApiClient):
10634
11542
  scheduled_sqlname: str,
10635
11543
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10636
11544
  """
10637
- @summary 查看定时SQL任务
11545
+ @summary Queries the information about a Scheduled SQL job.
10638
11546
 
10639
11547
  @return: GetScheduledSQLResponse
10640
11548
  """
@@ -10648,7 +11556,7 @@ class Client(OpenApiClient):
10648
11556
  runtime: util_models.RuntimeOptions,
10649
11557
  ) -> sls_20201230_models.GetSlsServiceResponse:
10650
11558
  """
10651
- @summary getSlsService
11559
+ @summary Queries the activation status of Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
10652
11560
 
10653
11561
  @param headers: map
10654
11562
  @param runtime: runtime options for this request RuntimeOptions
@@ -10679,7 +11587,7 @@ class Client(OpenApiClient):
10679
11587
  runtime: util_models.RuntimeOptions,
10680
11588
  ) -> sls_20201230_models.GetSlsServiceResponse:
10681
11589
  """
10682
- @summary getSlsService
11590
+ @summary Queries the activation status of Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
10683
11591
 
10684
11592
  @param headers: map
10685
11593
  @param runtime: runtime options for this request RuntimeOptions
@@ -10706,7 +11614,7 @@ class Client(OpenApiClient):
10706
11614
 
10707
11615
  def get_sls_service(self) -> sls_20201230_models.GetSlsServiceResponse:
10708
11616
  """
10709
- @summary getSlsService
11617
+ @summary Queries the activation status of Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
10710
11618
 
10711
11619
  @return: GetSlsServiceResponse
10712
11620
  """
@@ -10716,7 +11624,7 @@ class Client(OpenApiClient):
10716
11624
 
10717
11625
  async def get_sls_service_async(self) -> sls_20201230_models.GetSlsServiceResponse:
10718
11626
  """
10719
- @summary getSlsService
11627
+ @summary Queries the activation status of Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
10720
11628
 
10721
11629
  @return: GetSlsServiceResponse
10722
11630
  """
@@ -10731,7 +11639,7 @@ class Client(OpenApiClient):
10731
11639
  runtime: util_models.RuntimeOptions,
10732
11640
  ) -> sls_20201230_models.GetSqlInstanceResponse:
10733
11641
  """
10734
- @summary 查询独享sql实例
11642
+ @summary Queries the configurations of the Dedicated SQL feature.
10735
11643
 
10736
11644
  @param headers: map
10737
11645
  @param runtime: runtime options for this request RuntimeOptions
@@ -10766,7 +11674,7 @@ class Client(OpenApiClient):
10766
11674
  runtime: util_models.RuntimeOptions,
10767
11675
  ) -> sls_20201230_models.GetSqlInstanceResponse:
10768
11676
  """
10769
- @summary 查询独享sql实例
11677
+ @summary Queries the configurations of the Dedicated SQL feature.
10770
11678
 
10771
11679
  @param headers: map
10772
11680
  @param runtime: runtime options for this request RuntimeOptions
@@ -10799,7 +11707,7 @@ class Client(OpenApiClient):
10799
11707
  project: str,
10800
11708
  ) -> sls_20201230_models.GetSqlInstanceResponse:
10801
11709
  """
10802
- @summary 查询独享sql实例
11710
+ @summary Queries the configurations of the Dedicated SQL feature.
10803
11711
 
10804
11712
  @return: GetSqlInstanceResponse
10805
11713
  """
@@ -10812,7 +11720,7 @@ class Client(OpenApiClient):
10812
11720
  project: str,
10813
11721
  ) -> sls_20201230_models.GetSqlInstanceResponse:
10814
11722
  """
10815
- @summary 查询独享sql实例
11723
+ @summary Queries the configurations of the Dedicated SQL feature.
10816
11724
 
10817
11725
  @return: GetSqlInstanceResponse
10818
11726
  """
@@ -10828,7 +11736,7 @@ class Client(OpenApiClient):
10828
11736
  runtime: util_models.RuntimeOptions,
10829
11737
  ) -> sls_20201230_models.GetStoreViewResponse:
10830
11738
  """
10831
- @summary 查询StoreView
11739
+ @summary Queries the configurations of a dataset by using the name of the dataset.
10832
11740
 
10833
11741
  @param headers: map
10834
11742
  @param runtime: runtime options for this request RuntimeOptions
@@ -10864,7 +11772,7 @@ class Client(OpenApiClient):
10864
11772
  runtime: util_models.RuntimeOptions,
10865
11773
  ) -> sls_20201230_models.GetStoreViewResponse:
10866
11774
  """
10867
- @summary 查询StoreView
11775
+ @summary Queries the configurations of a dataset by using the name of the dataset.
10868
11776
 
10869
11777
  @param headers: map
10870
11778
  @param runtime: runtime options for this request RuntimeOptions
@@ -10898,7 +11806,7 @@ class Client(OpenApiClient):
10898
11806
  name: str,
10899
11807
  ) -> sls_20201230_models.GetStoreViewResponse:
10900
11808
  """
10901
- @summary 查询StoreView
11809
+ @summary Queries the configurations of a dataset by using the name of the dataset.
10902
11810
 
10903
11811
  @return: GetStoreViewResponse
10904
11812
  """
@@ -10912,7 +11820,7 @@ class Client(OpenApiClient):
10912
11820
  name: str,
10913
11821
  ) -> sls_20201230_models.GetStoreViewResponse:
10914
11822
  """
10915
- @summary 查询StoreView
11823
+ @summary Queries the configurations of a dataset by using the name of the dataset.
10916
11824
 
10917
11825
  @return: GetStoreViewResponse
10918
11826
  """
@@ -10928,7 +11836,7 @@ class Client(OpenApiClient):
10928
11836
  runtime: util_models.RuntimeOptions,
10929
11837
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
10930
11838
  """
10931
- @summary 查询StoreView索引
11839
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
10932
11840
 
10933
11841
  @param headers: map
10934
11842
  @param runtime: runtime options for this request RuntimeOptions
@@ -10964,7 +11872,7 @@ class Client(OpenApiClient):
10964
11872
  runtime: util_models.RuntimeOptions,
10965
11873
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
10966
11874
  """
10967
- @summary 查询StoreView索引
11875
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
10968
11876
 
10969
11877
  @param headers: map
10970
11878
  @param runtime: runtime options for this request RuntimeOptions
@@ -10998,7 +11906,7 @@ class Client(OpenApiClient):
10998
11906
  name: str,
10999
11907
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11000
11908
  """
11001
- @summary 查询StoreView索引
11909
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11002
11910
 
11003
11911
  @return: GetStoreViewIndexResponse
11004
11912
  """
@@ -11012,7 +11920,7 @@ class Client(OpenApiClient):
11012
11920
  name: str,
11013
11921
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11014
11922
  """
11015
- @summary 查询StoreView索引
11923
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11016
11924
 
11017
11925
  @return: GetStoreViewIndexResponse
11018
11926
  """
@@ -11028,7 +11936,7 @@ class Client(OpenApiClient):
11028
11936
  runtime: util_models.RuntimeOptions,
11029
11937
  ) -> sls_20201230_models.ListAlertsResponse:
11030
11938
  """
11031
- @summary 查询告警列表
11939
+ @summary Queries a list of alert rules in a project.
11032
11940
 
11033
11941
  @param request: ListAlertsRequest
11034
11942
  @param headers: map
@@ -11074,7 +11982,7 @@ class Client(OpenApiClient):
11074
11982
  runtime: util_models.RuntimeOptions,
11075
11983
  ) -> sls_20201230_models.ListAlertsResponse:
11076
11984
  """
11077
- @summary 查询告警列表
11985
+ @summary Queries a list of alert rules in a project.
11078
11986
 
11079
11987
  @param request: ListAlertsRequest
11080
11988
  @param headers: map
@@ -11118,7 +12026,7 @@ class Client(OpenApiClient):
11118
12026
  request: sls_20201230_models.ListAlertsRequest,
11119
12027
  ) -> sls_20201230_models.ListAlertsResponse:
11120
12028
  """
11121
- @summary 查询告警列表
12029
+ @summary Queries a list of alert rules in a project.
11122
12030
 
11123
12031
  @param request: ListAlertsRequest
11124
12032
  @return: ListAlertsResponse
@@ -11133,7 +12041,7 @@ class Client(OpenApiClient):
11133
12041
  request: sls_20201230_models.ListAlertsRequest,
11134
12042
  ) -> sls_20201230_models.ListAlertsResponse:
11135
12043
  """
11136
- @summary 查询告警列表
12044
+ @summary Queries a list of alert rules in a project.
11137
12045
 
11138
12046
  @param request: ListAlertsRequest
11139
12047
  @return: ListAlertsResponse
@@ -11479,6 +12387,8 @@ class Client(OpenApiClient):
11479
12387
  """
11480
12388
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11481
12389
 
12390
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12391
+
11482
12392
  @param request: ListCollectionPoliciesRequest
11483
12393
  @param headers: map
11484
12394
  @param runtime: runtime options for this request RuntimeOptions
@@ -11529,6 +12439,8 @@ class Client(OpenApiClient):
11529
12439
  """
11530
12440
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11531
12441
 
12442
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12443
+
11532
12444
  @param request: ListCollectionPoliciesRequest
11533
12445
  @param headers: map
11534
12446
  @param runtime: runtime options for this request RuntimeOptions
@@ -11577,6 +12489,8 @@ class Client(OpenApiClient):
11577
12489
  """
11578
12490
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11579
12491
 
12492
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12493
+
11580
12494
  @param request: ListCollectionPoliciesRequest
11581
12495
  @return: ListCollectionPoliciesResponse
11582
12496
  """
@@ -11591,6 +12505,8 @@ class Client(OpenApiClient):
11591
12505
  """
11592
12506
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11593
12507
 
12508
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12509
+
11594
12510
  @param request: ListCollectionPoliciesRequest
11595
12511
  @return: ListCollectionPoliciesResponse
11596
12512
  """
@@ -12036,10 +12952,141 @@ class Client(OpenApiClient):
12036
12952
  query=OpenApiUtilClient.query(query)
12037
12953
  )
12038
12954
  params = open_api_models.Params(
12039
- action='ListDomains',
12955
+ action='ListDomains',
12956
+ version='2020-12-30',
12957
+ protocol='HTTPS',
12958
+ pathname=f'/domains',
12959
+ method='GET',
12960
+ auth_type='AK',
12961
+ style='ROA',
12962
+ req_body_type='json',
12963
+ body_type='json'
12964
+ )
12965
+ return TeaCore.from_map(
12966
+ sls_20201230_models.ListDomainsResponse(),
12967
+ self.execute(params, req, runtime)
12968
+ )
12969
+
12970
+ async def list_domains_with_options_async(
12971
+ self,
12972
+ project: str,
12973
+ request: sls_20201230_models.ListDomainsRequest,
12974
+ headers: Dict[str, str],
12975
+ runtime: util_models.RuntimeOptions,
12976
+ ) -> sls_20201230_models.ListDomainsResponse:
12977
+ """
12978
+ @summary Queries the custom domain names that are bound to projects.
12979
+
12980
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12981
+ Only one custom domain name can be bound to each project.
12982
+
12983
+ @param request: ListDomainsRequest
12984
+ @param headers: map
12985
+ @param runtime: runtime options for this request RuntimeOptions
12986
+ @return: ListDomainsResponse
12987
+ """
12988
+ UtilClient.validate_model(request)
12989
+ host_map = {}
12990
+ host_map['project'] = project
12991
+ query = {}
12992
+ if not UtilClient.is_unset(request.domain_name):
12993
+ query['domainName'] = request.domain_name
12994
+ if not UtilClient.is_unset(request.offset):
12995
+ query['offset'] = request.offset
12996
+ if not UtilClient.is_unset(request.size):
12997
+ query['size'] = request.size
12998
+ req = open_api_models.OpenApiRequest(
12999
+ host_map=host_map,
13000
+ headers=headers,
13001
+ query=OpenApiUtilClient.query(query)
13002
+ )
13003
+ params = open_api_models.Params(
13004
+ action='ListDomains',
13005
+ version='2020-12-30',
13006
+ protocol='HTTPS',
13007
+ pathname=f'/domains',
13008
+ method='GET',
13009
+ auth_type='AK',
13010
+ style='ROA',
13011
+ req_body_type='json',
13012
+ body_type='json'
13013
+ )
13014
+ return TeaCore.from_map(
13015
+ sls_20201230_models.ListDomainsResponse(),
13016
+ await self.execute_async(params, req, runtime)
13017
+ )
13018
+
13019
+ def list_domains(
13020
+ self,
13021
+ project: str,
13022
+ request: sls_20201230_models.ListDomainsRequest,
13023
+ ) -> sls_20201230_models.ListDomainsResponse:
13024
+ """
13025
+ @summary Queries the custom domain names that are bound to projects.
13026
+
13027
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13028
+ Only one custom domain name can be bound to each project.
13029
+
13030
+ @param request: ListDomainsRequest
13031
+ @return: ListDomainsResponse
13032
+ """
13033
+ runtime = util_models.RuntimeOptions()
13034
+ headers = {}
13035
+ return self.list_domains_with_options(project, request, headers, runtime)
13036
+
13037
+ async def list_domains_async(
13038
+ self,
13039
+ project: str,
13040
+ request: sls_20201230_models.ListDomainsRequest,
13041
+ ) -> sls_20201230_models.ListDomainsResponse:
13042
+ """
13043
+ @summary Queries the custom domain names that are bound to projects.
13044
+
13045
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13046
+ Only one custom domain name can be bound to each project.
13047
+
13048
+ @param request: ListDomainsRequest
13049
+ @return: ListDomainsResponse
13050
+ """
13051
+ runtime = util_models.RuntimeOptions()
13052
+ headers = {}
13053
+ return await self.list_domains_with_options_async(project, request, headers, runtime)
13054
+
13055
+ def list_download_jobs_with_options(
13056
+ self,
13057
+ project: str,
13058
+ request: sls_20201230_models.ListDownloadJobsRequest,
13059
+ headers: Dict[str, str],
13060
+ runtime: util_models.RuntimeOptions,
13061
+ ) -> sls_20201230_models.ListDownloadJobsResponse:
13062
+ """
13063
+ @summary 列举下载任务
13064
+
13065
+ @param request: ListDownloadJobsRequest
13066
+ @param headers: map
13067
+ @param runtime: runtime options for this request RuntimeOptions
13068
+ @return: ListDownloadJobsResponse
13069
+ """
13070
+ UtilClient.validate_model(request)
13071
+ host_map = {}
13072
+ host_map['project'] = project
13073
+ query = {}
13074
+ if not UtilClient.is_unset(request.logstore):
13075
+ query['logstore'] = request.logstore
13076
+ if not UtilClient.is_unset(request.offset):
13077
+ query['offset'] = request.offset
13078
+ if not UtilClient.is_unset(request.size):
13079
+ query['size'] = request.size
13080
+ req = open_api_models.OpenApiRequest(
13081
+ host_map=host_map,
13082
+ headers=headers,
13083
+ query=OpenApiUtilClient.query(query)
13084
+ )
13085
+ params = open_api_models.Params(
13086
+ action='ListDownloadJobs',
12040
13087
  version='2020-12-30',
12041
13088
  protocol='HTTPS',
12042
- pathname=f'/domains',
13089
+ pathname=f'/downloadjobs',
12043
13090
  method='GET',
12044
13091
  auth_type='AK',
12045
13092
  style='ROA',
@@ -12047,34 +13094,31 @@ class Client(OpenApiClient):
12047
13094
  body_type='json'
12048
13095
  )
12049
13096
  return TeaCore.from_map(
12050
- sls_20201230_models.ListDomainsResponse(),
13097
+ sls_20201230_models.ListDownloadJobsResponse(),
12051
13098
  self.execute(params, req, runtime)
12052
13099
  )
12053
13100
 
12054
- async def list_domains_with_options_async(
13101
+ async def list_download_jobs_with_options_async(
12055
13102
  self,
12056
13103
  project: str,
12057
- request: sls_20201230_models.ListDomainsRequest,
13104
+ request: sls_20201230_models.ListDownloadJobsRequest,
12058
13105
  headers: Dict[str, str],
12059
13106
  runtime: util_models.RuntimeOptions,
12060
- ) -> sls_20201230_models.ListDomainsResponse:
13107
+ ) -> sls_20201230_models.ListDownloadJobsResponse:
12061
13108
  """
12062
- @summary Queries the custom domain names that are bound to projects.
12063
-
12064
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12065
- Only one custom domain name can be bound to each project.
13109
+ @summary 列举下载任务
12066
13110
 
12067
- @param request: ListDomainsRequest
13111
+ @param request: ListDownloadJobsRequest
12068
13112
  @param headers: map
12069
13113
  @param runtime: runtime options for this request RuntimeOptions
12070
- @return: ListDomainsResponse
13114
+ @return: ListDownloadJobsResponse
12071
13115
  """
12072
13116
  UtilClient.validate_model(request)
12073
13117
  host_map = {}
12074
13118
  host_map['project'] = project
12075
13119
  query = {}
12076
- if not UtilClient.is_unset(request.domain_name):
12077
- query['domainName'] = request.domain_name
13120
+ if not UtilClient.is_unset(request.logstore):
13121
+ query['logstore'] = request.logstore
12078
13122
  if not UtilClient.is_unset(request.offset):
12079
13123
  query['offset'] = request.offset
12080
13124
  if not UtilClient.is_unset(request.size):
@@ -12085,10 +13129,10 @@ class Client(OpenApiClient):
12085
13129
  query=OpenApiUtilClient.query(query)
12086
13130
  )
12087
13131
  params = open_api_models.Params(
12088
- action='ListDomains',
13132
+ action='ListDownloadJobs',
12089
13133
  version='2020-12-30',
12090
13134
  protocol='HTTPS',
12091
- pathname=f'/domains',
13135
+ pathname=f'/downloadjobs',
12092
13136
  method='GET',
12093
13137
  auth_type='AK',
12094
13138
  style='ROA',
@@ -12096,45 +13140,39 @@ class Client(OpenApiClient):
12096
13140
  body_type='json'
12097
13141
  )
12098
13142
  return TeaCore.from_map(
12099
- sls_20201230_models.ListDomainsResponse(),
13143
+ sls_20201230_models.ListDownloadJobsResponse(),
12100
13144
  await self.execute_async(params, req, runtime)
12101
13145
  )
12102
13146
 
12103
- def list_domains(
13147
+ def list_download_jobs(
12104
13148
  self,
12105
13149
  project: str,
12106
- request: sls_20201230_models.ListDomainsRequest,
12107
- ) -> sls_20201230_models.ListDomainsResponse:
13150
+ request: sls_20201230_models.ListDownloadJobsRequest,
13151
+ ) -> sls_20201230_models.ListDownloadJobsResponse:
12108
13152
  """
12109
- @summary Queries the custom domain names that are bound to projects.
12110
-
12111
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12112
- Only one custom domain name can be bound to each project.
13153
+ @summary 列举下载任务
12113
13154
 
12114
- @param request: ListDomainsRequest
12115
- @return: ListDomainsResponse
13155
+ @param request: ListDownloadJobsRequest
13156
+ @return: ListDownloadJobsResponse
12116
13157
  """
12117
13158
  runtime = util_models.RuntimeOptions()
12118
13159
  headers = {}
12119
- return self.list_domains_with_options(project, request, headers, runtime)
13160
+ return self.list_download_jobs_with_options(project, request, headers, runtime)
12120
13161
 
12121
- async def list_domains_async(
13162
+ async def list_download_jobs_async(
12122
13163
  self,
12123
13164
  project: str,
12124
- request: sls_20201230_models.ListDomainsRequest,
12125
- ) -> sls_20201230_models.ListDomainsResponse:
13165
+ request: sls_20201230_models.ListDownloadJobsRequest,
13166
+ ) -> sls_20201230_models.ListDownloadJobsResponse:
12126
13167
  """
12127
- @summary Queries the custom domain names that are bound to projects.
13168
+ @summary 列举下载任务
12128
13169
 
12129
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12130
- Only one custom domain name can be bound to each project.
12131
-
12132
- @param request: ListDomainsRequest
12133
- @return: ListDomainsResponse
13170
+ @param request: ListDownloadJobsRequest
13171
+ @return: ListDownloadJobsResponse
12134
13172
  """
12135
13173
  runtime = util_models.RuntimeOptions()
12136
13174
  headers = {}
12137
- return await self.list_domains_with_options_async(project, request, headers, runtime)
13175
+ return await self.list_download_jobs_with_options_async(project, request, headers, runtime)
12138
13176
 
12139
13177
  def list_etls_with_options(
12140
13178
  self,
@@ -12826,6 +13864,132 @@ class Client(OpenApiClient):
12826
13864
  headers = {}
12827
13865
  return await self.list_machines_with_options_async(project, machine_group, request, headers, runtime)
12828
13866
 
13867
+ def list_metric_stores_with_options(
13868
+ self,
13869
+ project: str,
13870
+ request: sls_20201230_models.ListMetricStoresRequest,
13871
+ headers: Dict[str, str],
13872
+ runtime: util_models.RuntimeOptions,
13873
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13874
+ """
13875
+ @summary 查询时序库
13876
+
13877
+ @param request: ListMetricStoresRequest
13878
+ @param headers: map
13879
+ @param runtime: runtime options for this request RuntimeOptions
13880
+ @return: ListMetricStoresResponse
13881
+ """
13882
+ UtilClient.validate_model(request)
13883
+ host_map = {}
13884
+ host_map['project'] = project
13885
+ query = {}
13886
+ if not UtilClient.is_unset(request.mode):
13887
+ query['mode'] = request.mode
13888
+ if not UtilClient.is_unset(request.name):
13889
+ query['name'] = request.name
13890
+ if not UtilClient.is_unset(request.offset):
13891
+ query['offset'] = request.offset
13892
+ if not UtilClient.is_unset(request.size):
13893
+ query['size'] = request.size
13894
+ req = open_api_models.OpenApiRequest(
13895
+ host_map=host_map,
13896
+ headers=headers,
13897
+ query=OpenApiUtilClient.query(query)
13898
+ )
13899
+ params = open_api_models.Params(
13900
+ action='ListMetricStores',
13901
+ version='2020-12-30',
13902
+ protocol='HTTPS',
13903
+ pathname=f'/metricstores',
13904
+ method='GET',
13905
+ auth_type='AK',
13906
+ style='ROA',
13907
+ req_body_type='none',
13908
+ body_type='json'
13909
+ )
13910
+ return TeaCore.from_map(
13911
+ sls_20201230_models.ListMetricStoresResponse(),
13912
+ self.execute(params, req, runtime)
13913
+ )
13914
+
13915
+ async def list_metric_stores_with_options_async(
13916
+ self,
13917
+ project: str,
13918
+ request: sls_20201230_models.ListMetricStoresRequest,
13919
+ headers: Dict[str, str],
13920
+ runtime: util_models.RuntimeOptions,
13921
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13922
+ """
13923
+ @summary 查询时序库
13924
+
13925
+ @param request: ListMetricStoresRequest
13926
+ @param headers: map
13927
+ @param runtime: runtime options for this request RuntimeOptions
13928
+ @return: ListMetricStoresResponse
13929
+ """
13930
+ UtilClient.validate_model(request)
13931
+ host_map = {}
13932
+ host_map['project'] = project
13933
+ query = {}
13934
+ if not UtilClient.is_unset(request.mode):
13935
+ query['mode'] = request.mode
13936
+ if not UtilClient.is_unset(request.name):
13937
+ query['name'] = request.name
13938
+ if not UtilClient.is_unset(request.offset):
13939
+ query['offset'] = request.offset
13940
+ if not UtilClient.is_unset(request.size):
13941
+ query['size'] = request.size
13942
+ req = open_api_models.OpenApiRequest(
13943
+ host_map=host_map,
13944
+ headers=headers,
13945
+ query=OpenApiUtilClient.query(query)
13946
+ )
13947
+ params = open_api_models.Params(
13948
+ action='ListMetricStores',
13949
+ version='2020-12-30',
13950
+ protocol='HTTPS',
13951
+ pathname=f'/metricstores',
13952
+ method='GET',
13953
+ auth_type='AK',
13954
+ style='ROA',
13955
+ req_body_type='none',
13956
+ body_type='json'
13957
+ )
13958
+ return TeaCore.from_map(
13959
+ sls_20201230_models.ListMetricStoresResponse(),
13960
+ await self.execute_async(params, req, runtime)
13961
+ )
13962
+
13963
+ def list_metric_stores(
13964
+ self,
13965
+ project: str,
13966
+ request: sls_20201230_models.ListMetricStoresRequest,
13967
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13968
+ """
13969
+ @summary 查询时序库
13970
+
13971
+ @param request: ListMetricStoresRequest
13972
+ @return: ListMetricStoresResponse
13973
+ """
13974
+ runtime = util_models.RuntimeOptions()
13975
+ headers = {}
13976
+ return self.list_metric_stores_with_options(project, request, headers, runtime)
13977
+
13978
+ async def list_metric_stores_async(
13979
+ self,
13980
+ project: str,
13981
+ request: sls_20201230_models.ListMetricStoresRequest,
13982
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13983
+ """
13984
+ @summary 查询时序库
13985
+
13986
+ @param request: ListMetricStoresRequest
13987
+ @return: ListMetricStoresResponse
13988
+ """
13989
+ runtime = util_models.RuntimeOptions()
13990
+ headers = {}
13991
+ return await self.list_metric_stores_with_options_async(project, request, headers, runtime)
13992
+
12829
13993
  def list_ossexports_with_options(
12830
13994
  self,
12831
13995
  project: str,
@@ -13078,7 +14242,7 @@ class Client(OpenApiClient):
13078
14242
  runtime: util_models.RuntimeOptions,
13079
14243
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13080
14244
  """
13081
- @summary 列出oss导入任务
14245
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13082
14246
 
13083
14247
  @param request: ListOSSIngestionsRequest
13084
14248
  @param headers: map
@@ -13124,7 +14288,7 @@ class Client(OpenApiClient):
13124
14288
  runtime: util_models.RuntimeOptions,
13125
14289
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13126
14290
  """
13127
- @summary 列出oss导入任务
14291
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13128
14292
 
13129
14293
  @param request: ListOSSIngestionsRequest
13130
14294
  @param headers: map
@@ -13168,7 +14332,7 @@ class Client(OpenApiClient):
13168
14332
  request: sls_20201230_models.ListOSSIngestionsRequest,
13169
14333
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13170
14334
  """
13171
- @summary 列出oss导入任务
14335
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13172
14336
 
13173
14337
  @param request: ListOSSIngestionsRequest
13174
14338
  @return: ListOSSIngestionsResponse
@@ -13183,7 +14347,7 @@ class Client(OpenApiClient):
13183
14347
  request: sls_20201230_models.ListOSSIngestionsRequest,
13184
14348
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13185
14349
  """
13186
- @summary 列出oss导入任务
14350
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13187
14351
 
13188
14352
  @param request: ListOSSIngestionsRequest
13189
14353
  @return: ListOSSIngestionsResponse
@@ -13462,7 +14626,7 @@ class Client(OpenApiClient):
13462
14626
  runtime: util_models.RuntimeOptions,
13463
14627
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13464
14628
  """
13465
- @summary 列举定时SQL任务
14629
+ @summary Queries a list of Scheduled SQL jobs in a project.
13466
14630
 
13467
14631
  @param request: ListScheduledSQLsRequest
13468
14632
  @param headers: map
@@ -13508,7 +14672,7 @@ class Client(OpenApiClient):
13508
14672
  runtime: util_models.RuntimeOptions,
13509
14673
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13510
14674
  """
13511
- @summary 列举定时SQL任务
14675
+ @summary Queries a list of Scheduled SQL jobs in a project.
13512
14676
 
13513
14677
  @param request: ListScheduledSQLsRequest
13514
14678
  @param headers: map
@@ -13552,7 +14716,7 @@ class Client(OpenApiClient):
13552
14716
  request: sls_20201230_models.ListScheduledSQLsRequest,
13553
14717
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13554
14718
  """
13555
- @summary 列举定时SQL任务
14719
+ @summary Queries a list of Scheduled SQL jobs in a project.
13556
14720
 
13557
14721
  @param request: ListScheduledSQLsRequest
13558
14722
  @return: ListScheduledSQLsResponse
@@ -13567,7 +14731,7 @@ class Client(OpenApiClient):
13567
14731
  request: sls_20201230_models.ListScheduledSQLsRequest,
13568
14732
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13569
14733
  """
13570
- @summary 列举定时SQL任务
14734
+ @summary Queries a list of Scheduled SQL jobs in a project.
13571
14735
 
13572
14736
  @param request: ListScheduledSQLsRequest
13573
14737
  @return: ListScheduledSQLsResponse
@@ -13684,7 +14848,7 @@ class Client(OpenApiClient):
13684
14848
  runtime: util_models.RuntimeOptions,
13685
14849
  ) -> sls_20201230_models.ListStoreViewsResponse:
13686
14850
  """
13687
- @summary 查询StoreView列表
14851
+ @summary Queries datasets in a project.
13688
14852
 
13689
14853
  @param request: ListStoreViewsRequest
13690
14854
  @param headers: map
@@ -13732,7 +14896,7 @@ class Client(OpenApiClient):
13732
14896
  runtime: util_models.RuntimeOptions,
13733
14897
  ) -> sls_20201230_models.ListStoreViewsResponse:
13734
14898
  """
13735
- @summary 查询StoreView列表
14899
+ @summary Queries datasets in a project.
13736
14900
 
13737
14901
  @param request: ListStoreViewsRequest
13738
14902
  @param headers: map
@@ -13778,7 +14942,7 @@ class Client(OpenApiClient):
13778
14942
  request: sls_20201230_models.ListStoreViewsRequest,
13779
14943
  ) -> sls_20201230_models.ListStoreViewsResponse:
13780
14944
  """
13781
- @summary 查询StoreView列表
14945
+ @summary Queries datasets in a project.
13782
14946
 
13783
14947
  @param request: ListStoreViewsRequest
13784
14948
  @return: ListStoreViewsResponse
@@ -13793,7 +14957,7 @@ class Client(OpenApiClient):
13793
14957
  request: sls_20201230_models.ListStoreViewsRequest,
13794
14958
  ) -> sls_20201230_models.ListStoreViewsResponse:
13795
14959
  """
13796
- @summary 查询StoreView列表
14960
+ @summary Queries datasets in a project.
13797
14961
 
13798
14962
  @param request: ListStoreViewsRequest
13799
14963
  @return: ListStoreViewsResponse
@@ -14084,7 +15248,7 @@ class Client(OpenApiClient):
14084
15248
  runtime: util_models.RuntimeOptions,
14085
15249
  ) -> sls_20201230_models.OpenSlsServiceResponse:
14086
15250
  """
14087
- @summary openSlsService
15251
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14088
15252
 
14089
15253
  @param headers: map
14090
15254
  @param runtime: runtime options for this request RuntimeOptions
@@ -14115,7 +15279,7 @@ class Client(OpenApiClient):
14115
15279
  runtime: util_models.RuntimeOptions,
14116
15280
  ) -> sls_20201230_models.OpenSlsServiceResponse:
14117
15281
  """
14118
- @summary openSlsService
15282
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14119
15283
 
14120
15284
  @param headers: map
14121
15285
  @param runtime: runtime options for this request RuntimeOptions
@@ -14142,7 +15306,7 @@ class Client(OpenApiClient):
14142
15306
 
14143
15307
  def open_sls_service(self) -> sls_20201230_models.OpenSlsServiceResponse:
14144
15308
  """
14145
- @summary openSlsService
15309
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14146
15310
 
14147
15311
  @return: OpenSlsServiceResponse
14148
15312
  """
@@ -14152,7 +15316,7 @@ class Client(OpenApiClient):
14152
15316
 
14153
15317
  async def open_sls_service_async(self) -> sls_20201230_models.OpenSlsServiceResponse:
14154
15318
  """
14155
- @summary openSlsService
15319
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14156
15320
 
14157
15321
  @return: OpenSlsServiceResponse
14158
15322
  """
@@ -15488,7 +16652,7 @@ class Client(OpenApiClient):
15488
16652
  runtime: util_models.RuntimeOptions,
15489
16653
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15490
16654
  """
15491
- @summary 启动OSS导入任务
16655
+ @summary Starts an Object Storage Service (OSS) data import job.
15492
16656
 
15493
16657
  @param headers: map
15494
16658
  @param runtime: runtime options for this request RuntimeOptions
@@ -15524,7 +16688,7 @@ class Client(OpenApiClient):
15524
16688
  runtime: util_models.RuntimeOptions,
15525
16689
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15526
16690
  """
15527
- @summary 启动OSS导入任务
16691
+ @summary Starts an Object Storage Service (OSS) data import job.
15528
16692
 
15529
16693
  @param headers: map
15530
16694
  @param runtime: runtime options for this request RuntimeOptions
@@ -15558,7 +16722,7 @@ class Client(OpenApiClient):
15558
16722
  oss_ingestion_name: str,
15559
16723
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15560
16724
  """
15561
- @summary 启动OSS导入任务
16725
+ @summary Starts an Object Storage Service (OSS) data import job.
15562
16726
 
15563
16727
  @return: StartOSSIngestionResponse
15564
16728
  """
@@ -15572,7 +16736,7 @@ class Client(OpenApiClient):
15572
16736
  oss_ingestion_name: str,
15573
16737
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15574
16738
  """
15575
- @summary 启动OSS导入任务
16739
+ @summary Starts an Object Storage Service (OSS) data import job.
15576
16740
 
15577
16741
  @return: StartOSSIngestionResponse
15578
16742
  """
@@ -15888,7 +17052,7 @@ class Client(OpenApiClient):
15888
17052
  runtime: util_models.RuntimeOptions,
15889
17053
  ) -> sls_20201230_models.StopOSSIngestionResponse:
15890
17054
  """
15891
- @summary 停止OSS导入任务
17055
+ @summary Stops an Object Storage Service (OSS) data import job.
15892
17056
 
15893
17057
  @param headers: map
15894
17058
  @param runtime: runtime options for this request RuntimeOptions
@@ -15924,7 +17088,7 @@ class Client(OpenApiClient):
15924
17088
  runtime: util_models.RuntimeOptions,
15925
17089
  ) -> sls_20201230_models.StopOSSIngestionResponse:
15926
17090
  """
15927
- @summary 停止OSS导入任务
17091
+ @summary Stops an Object Storage Service (OSS) data import job.
15928
17092
 
15929
17093
  @param headers: map
15930
17094
  @param runtime: runtime options for this request RuntimeOptions
@@ -15958,7 +17122,7 @@ class Client(OpenApiClient):
15958
17122
  oss_ingestion_name: str,
15959
17123
  ) -> sls_20201230_models.StopOSSIngestionResponse:
15960
17124
  """
15961
- @summary 停止OSS导入任务
17125
+ @summary Stops an Object Storage Service (OSS) data import job.
15962
17126
 
15963
17127
  @return: StopOSSIngestionResponse
15964
17128
  """
@@ -15972,7 +17136,7 @@ class Client(OpenApiClient):
15972
17136
  oss_ingestion_name: str,
15973
17137
  ) -> sls_20201230_models.StopOSSIngestionResponse:
15974
17138
  """
15975
- @summary 停止OSS导入任务
17139
+ @summary Stops an Object Storage Service (OSS) data import job.
15976
17140
 
15977
17141
  @return: StopOSSIngestionResponse
15978
17142
  """
@@ -16309,7 +17473,7 @@ class Client(OpenApiClient):
16309
17473
  runtime: util_models.RuntimeOptions,
16310
17474
  ) -> sls_20201230_models.UpdateAlertResponse:
16311
17475
  """
16312
- @summary 更新告警
17476
+ @summary Updates an alert rule.
16313
17477
 
16314
17478
  @param request: UpdateAlertRequest
16315
17479
  @param headers: map
@@ -16358,7 +17522,7 @@ class Client(OpenApiClient):
16358
17522
  runtime: util_models.RuntimeOptions,
16359
17523
  ) -> sls_20201230_models.UpdateAlertResponse:
16360
17524
  """
16361
- @summary 更新告警
17525
+ @summary Updates an alert rule.
16362
17526
 
16363
17527
  @param request: UpdateAlertRequest
16364
17528
  @param headers: map
@@ -16405,7 +17569,7 @@ class Client(OpenApiClient):
16405
17569
  request: sls_20201230_models.UpdateAlertRequest,
16406
17570
  ) -> sls_20201230_models.UpdateAlertResponse:
16407
17571
  """
16408
- @summary 更新告警
17572
+ @summary Updates an alert rule.
16409
17573
 
16410
17574
  @param request: UpdateAlertRequest
16411
17575
  @return: UpdateAlertResponse
@@ -16421,7 +17585,7 @@ class Client(OpenApiClient):
16421
17585
  request: sls_20201230_models.UpdateAlertRequest,
16422
17586
  ) -> sls_20201230_models.UpdateAlertResponse:
16423
17587
  """
16424
- @summary 更新告警
17588
+ @summary Updates an alert rule.
16425
17589
 
16426
17590
  @param request: UpdateAlertRequest
16427
17591
  @return: UpdateAlertResponse
@@ -17388,6 +18552,8 @@ class Client(OpenApiClient):
17388
18552
  body['maxSplitShard'] = request.max_split_shard
17389
18553
  if not UtilClient.is_unset(request.mode):
17390
18554
  body['mode'] = request.mode
18555
+ if not UtilClient.is_unset(request.processor_id):
18556
+ body['processorId'] = request.processor_id
17391
18557
  if not UtilClient.is_unset(request.shard_count):
17392
18558
  body['shardCount'] = request.shard_count
17393
18559
  if not UtilClient.is_unset(request.telemetry_type):
@@ -17457,6 +18623,8 @@ class Client(OpenApiClient):
17457
18623
  body['maxSplitShard'] = request.max_split_shard
17458
18624
  if not UtilClient.is_unset(request.mode):
17459
18625
  body['mode'] = request.mode
18626
+ if not UtilClient.is_unset(request.processor_id):
18627
+ body['processorId'] = request.processor_id
17460
18628
  if not UtilClient.is_unset(request.shard_count):
17461
18629
  body['shardCount'] = request.shard_count
17462
18630
  if not UtilClient.is_unset(request.telemetry_type):
@@ -18188,6 +19356,136 @@ class Client(OpenApiClient):
18188
19356
  headers = {}
18189
19357
  return await self.update_machine_group_machine_with_options_async(project, machine_group, request, headers, runtime)
18190
19358
 
19359
+ def update_metric_store_with_options(
19360
+ self,
19361
+ project: str,
19362
+ name: str,
19363
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19364
+ headers: Dict[str, str],
19365
+ runtime: util_models.RuntimeOptions,
19366
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19367
+ """
19368
+ @summary 更新时序库
19369
+
19370
+ @param request: UpdateMetricStoreRequest
19371
+ @param headers: map
19372
+ @param runtime: runtime options for this request RuntimeOptions
19373
+ @return: UpdateMetricStoreResponse
19374
+ """
19375
+ UtilClient.validate_model(request)
19376
+ host_map = {}
19377
+ host_map['project'] = project
19378
+ body = {}
19379
+ if not UtilClient.is_unset(request.auto_split):
19380
+ body['autoSplit'] = request.auto_split
19381
+ if not UtilClient.is_unset(request.max_split_shard):
19382
+ body['maxSplitShard'] = request.max_split_shard
19383
+ if not UtilClient.is_unset(request.mode):
19384
+ body['mode'] = request.mode
19385
+ if not UtilClient.is_unset(request.ttl):
19386
+ body['ttl'] = request.ttl
19387
+ req = open_api_models.OpenApiRequest(
19388
+ host_map=host_map,
19389
+ headers=headers,
19390
+ body=OpenApiUtilClient.parse_to_map(body)
19391
+ )
19392
+ params = open_api_models.Params(
19393
+ action='UpdateMetricStore',
19394
+ version='2020-12-30',
19395
+ protocol='HTTPS',
19396
+ pathname=f'/metricstores/{name}',
19397
+ method='PUT',
19398
+ auth_type='AK',
19399
+ style='ROA',
19400
+ req_body_type='json',
19401
+ body_type='none'
19402
+ )
19403
+ return TeaCore.from_map(
19404
+ sls_20201230_models.UpdateMetricStoreResponse(),
19405
+ self.execute(params, req, runtime)
19406
+ )
19407
+
19408
+ async def update_metric_store_with_options_async(
19409
+ self,
19410
+ project: str,
19411
+ name: str,
19412
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19413
+ headers: Dict[str, str],
19414
+ runtime: util_models.RuntimeOptions,
19415
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19416
+ """
19417
+ @summary 更新时序库
19418
+
19419
+ @param request: UpdateMetricStoreRequest
19420
+ @param headers: map
19421
+ @param runtime: runtime options for this request RuntimeOptions
19422
+ @return: UpdateMetricStoreResponse
19423
+ """
19424
+ UtilClient.validate_model(request)
19425
+ host_map = {}
19426
+ host_map['project'] = project
19427
+ body = {}
19428
+ if not UtilClient.is_unset(request.auto_split):
19429
+ body['autoSplit'] = request.auto_split
19430
+ if not UtilClient.is_unset(request.max_split_shard):
19431
+ body['maxSplitShard'] = request.max_split_shard
19432
+ if not UtilClient.is_unset(request.mode):
19433
+ body['mode'] = request.mode
19434
+ if not UtilClient.is_unset(request.ttl):
19435
+ body['ttl'] = request.ttl
19436
+ req = open_api_models.OpenApiRequest(
19437
+ host_map=host_map,
19438
+ headers=headers,
19439
+ body=OpenApiUtilClient.parse_to_map(body)
19440
+ )
19441
+ params = open_api_models.Params(
19442
+ action='UpdateMetricStore',
19443
+ version='2020-12-30',
19444
+ protocol='HTTPS',
19445
+ pathname=f'/metricstores/{name}',
19446
+ method='PUT',
19447
+ auth_type='AK',
19448
+ style='ROA',
19449
+ req_body_type='json',
19450
+ body_type='none'
19451
+ )
19452
+ return TeaCore.from_map(
19453
+ sls_20201230_models.UpdateMetricStoreResponse(),
19454
+ await self.execute_async(params, req, runtime)
19455
+ )
19456
+
19457
+ def update_metric_store(
19458
+ self,
19459
+ project: str,
19460
+ name: str,
19461
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19462
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19463
+ """
19464
+ @summary 更新时序库
19465
+
19466
+ @param request: UpdateMetricStoreRequest
19467
+ @return: UpdateMetricStoreResponse
19468
+ """
19469
+ runtime = util_models.RuntimeOptions()
19470
+ headers = {}
19471
+ return self.update_metric_store_with_options(project, name, request, headers, runtime)
19472
+
19473
+ async def update_metric_store_async(
19474
+ self,
19475
+ project: str,
19476
+ name: str,
19477
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19478
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19479
+ """
19480
+ @summary 更新时序库
19481
+
19482
+ @param request: UpdateMetricStoreRequest
19483
+ @return: UpdateMetricStoreResponse
19484
+ """
19485
+ runtime = util_models.RuntimeOptions()
19486
+ headers = {}
19487
+ return await self.update_metric_store_with_options_async(project, name, request, headers, runtime)
19488
+
18191
19489
  def update_metric_store_metering_mode_with_options(
18192
19490
  self,
18193
19491
  project: str,
@@ -18838,6 +20136,13 @@ class Client(OpenApiClient):
18838
20136
 
18839
20137
  @description ### Usage notes
18840
20138
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20139
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20140
+ 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).
20141
+ ### Authentication resources
20142
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
20143
+ |Action|Resource|
20144
+ |:---|:---|
20145
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
18841
20146
 
18842
20147
  @param request: UpdateProjectRequest
18843
20148
  @param headers: map
@@ -18883,6 +20188,13 @@ class Client(OpenApiClient):
18883
20188
 
18884
20189
  @description ### Usage notes
18885
20190
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20191
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20192
+ 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).
20193
+ ### Authentication resources
20194
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
20195
+ |Action|Resource|
20196
+ |:---|:---|
20197
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
18886
20198
 
18887
20199
  @param request: UpdateProjectRequest
18888
20200
  @param headers: map
@@ -18926,6 +20238,13 @@ class Client(OpenApiClient):
18926
20238
 
18927
20239
  @description ### Usage notes
18928
20240
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20241
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20242
+ 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).
20243
+ ### Authentication resources
20244
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
20245
+ |Action|Resource|
20246
+ |:---|:---|
20247
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
18929
20248
 
18930
20249
  @param request: UpdateProjectRequest
18931
20250
  @return: UpdateProjectResponse
@@ -18944,6 +20263,13 @@ class Client(OpenApiClient):
18944
20263
 
18945
20264
  @description ### Usage notes
18946
20265
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20266
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20267
+ 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).
20268
+ ### Authentication resources
20269
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
20270
+ |Action|Resource|
20271
+ |:---|:---|
20272
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
18947
20273
 
18948
20274
  @param request: UpdateProjectRequest
18949
20275
  @return: UpdateProjectResponse
@@ -19229,7 +20555,7 @@ class Client(OpenApiClient):
19229
20555
  runtime: util_models.RuntimeOptions,
19230
20556
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19231
20557
  """
19232
- @summary 更新定时SQL任务
20558
+ @summary Updates a Scheduled SQL job.
19233
20559
 
19234
20560
  @param request: UpdateScheduledSQLRequest
19235
20561
  @param headers: map
@@ -19278,7 +20604,7 @@ class Client(OpenApiClient):
19278
20604
  runtime: util_models.RuntimeOptions,
19279
20605
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19280
20606
  """
19281
- @summary 更新定时SQL任务
20607
+ @summary Updates a Scheduled SQL job.
19282
20608
 
19283
20609
  @param request: UpdateScheduledSQLRequest
19284
20610
  @param headers: map
@@ -19325,7 +20651,7 @@ class Client(OpenApiClient):
19325
20651
  request: sls_20201230_models.UpdateScheduledSQLRequest,
19326
20652
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19327
20653
  """
19328
- @summary 更新定时SQL任务
20654
+ @summary Updates a Scheduled SQL job.
19329
20655
 
19330
20656
  @param request: UpdateScheduledSQLRequest
19331
20657
  @return: UpdateScheduledSQLResponse
@@ -19341,7 +20667,7 @@ class Client(OpenApiClient):
19341
20667
  request: sls_20201230_models.UpdateScheduledSQLRequest,
19342
20668
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19343
20669
  """
19344
- @summary 更新定时SQL任务
20670
+ @summary Updates a Scheduled SQL job.
19345
20671
 
19346
20672
  @param request: UpdateScheduledSQLRequest
19347
20673
  @return: UpdateScheduledSQLResponse
@@ -19358,7 +20684,7 @@ class Client(OpenApiClient):
19358
20684
  runtime: util_models.RuntimeOptions,
19359
20685
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19360
20686
  """
19361
- @summary 更新独享sql实例
20687
+ @summary Updates the configurations of the Dedicated SQL feature.
19362
20688
 
19363
20689
  @param request: UpdateSqlInstanceRequest
19364
20690
  @param headers: map
@@ -19402,7 +20728,7 @@ class Client(OpenApiClient):
19402
20728
  runtime: util_models.RuntimeOptions,
19403
20729
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19404
20730
  """
19405
- @summary 更新独享sql实例
20731
+ @summary Updates the configurations of the Dedicated SQL feature.
19406
20732
 
19407
20733
  @param request: UpdateSqlInstanceRequest
19408
20734
  @param headers: map
@@ -19444,7 +20770,7 @@ class Client(OpenApiClient):
19444
20770
  request: sls_20201230_models.UpdateSqlInstanceRequest,
19445
20771
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19446
20772
  """
19447
- @summary 更新独享sql实例
20773
+ @summary Updates the configurations of the Dedicated SQL feature.
19448
20774
 
19449
20775
  @param request: UpdateSqlInstanceRequest
19450
20776
  @return: UpdateSqlInstanceResponse
@@ -19459,7 +20785,7 @@ class Client(OpenApiClient):
19459
20785
  request: sls_20201230_models.UpdateSqlInstanceRequest,
19460
20786
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19461
20787
  """
19462
- @summary 更新独享sql实例
20788
+ @summary Updates the configurations of the Dedicated SQL feature.
19463
20789
 
19464
20790
  @param request: UpdateSqlInstanceRequest
19465
20791
  @return: UpdateSqlInstanceResponse
@@ -19477,7 +20803,7 @@ class Client(OpenApiClient):
19477
20803
  runtime: util_models.RuntimeOptions,
19478
20804
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19479
20805
  """
19480
- @summary 更新StoreView
20806
+ @summary Updates the configurations of a dataset.
19481
20807
 
19482
20808
  @param request: UpdateStoreViewRequest
19483
20809
  @param headers: map
@@ -19522,7 +20848,7 @@ class Client(OpenApiClient):
19522
20848
  runtime: util_models.RuntimeOptions,
19523
20849
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19524
20850
  """
19525
- @summary 更新StoreView
20851
+ @summary Updates the configurations of a dataset.
19526
20852
 
19527
20853
  @param request: UpdateStoreViewRequest
19528
20854
  @param headers: map
@@ -19565,7 +20891,7 @@ class Client(OpenApiClient):
19565
20891
  request: sls_20201230_models.UpdateStoreViewRequest,
19566
20892
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19567
20893
  """
19568
- @summary 更新StoreView
20894
+ @summary Updates the configurations of a dataset.
19569
20895
 
19570
20896
  @param request: UpdateStoreViewRequest
19571
20897
  @return: UpdateStoreViewResponse
@@ -19581,7 +20907,7 @@ class Client(OpenApiClient):
19581
20907
  request: sls_20201230_models.UpdateStoreViewRequest,
19582
20908
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19583
20909
  """
19584
- @summary 更新StoreView
20910
+ @summary Updates the configurations of a dataset.
19585
20911
 
19586
20912
  @param request: UpdateStoreViewRequest
19587
20913
  @return: UpdateStoreViewResponse