alibabacloud-sls20201230 5.3.0__py3-none-any.whl → 5.4.1__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
@@ -1709,25 +1745,10 @@ class Client(OpenApiClient):
1709
1745
  UtilClient.validate_model(request)
1710
1746
  host_map = {}
1711
1747
  host_map['project'] = project
1712
- body = {}
1713
- if not UtilClient.is_unset(request.keys):
1714
- body['keys'] = request.keys
1715
- if not UtilClient.is_unset(request.line):
1716
- body['line'] = request.line
1717
- if not UtilClient.is_unset(request.log_reduce):
1718
- body['log_reduce'] = request.log_reduce
1719
- if not UtilClient.is_unset(request.log_reduce_black_list):
1720
- body['log_reduce_black_list'] = request.log_reduce_black_list
1721
- if not UtilClient.is_unset(request.log_reduce_white_list):
1722
- body['log_reduce_white_list'] = request.log_reduce_white_list
1723
- if not UtilClient.is_unset(request.max_text_len):
1724
- body['max_text_len'] = request.max_text_len
1725
- if not UtilClient.is_unset(request.ttl):
1726
- body['ttl'] = request.ttl
1727
1748
  req = open_api_models.OpenApiRequest(
1728
1749
  host_map=host_map,
1729
1750
  headers=headers,
1730
- body=OpenApiUtilClient.parse_to_map(body)
1751
+ body=OpenApiUtilClient.parse_to_map(request.body)
1731
1752
  )
1732
1753
  params = open_api_models.Params(
1733
1754
  action='CreateIndex',
@@ -1766,25 +1787,10 @@ class Client(OpenApiClient):
1766
1787
  UtilClient.validate_model(request)
1767
1788
  host_map = {}
1768
1789
  host_map['project'] = project
1769
- body = {}
1770
- if not UtilClient.is_unset(request.keys):
1771
- body['keys'] = request.keys
1772
- if not UtilClient.is_unset(request.line):
1773
- body['line'] = request.line
1774
- if not UtilClient.is_unset(request.log_reduce):
1775
- body['log_reduce'] = request.log_reduce
1776
- if not UtilClient.is_unset(request.log_reduce_black_list):
1777
- body['log_reduce_black_list'] = request.log_reduce_black_list
1778
- if not UtilClient.is_unset(request.log_reduce_white_list):
1779
- body['log_reduce_white_list'] = request.log_reduce_white_list
1780
- if not UtilClient.is_unset(request.max_text_len):
1781
- body['max_text_len'] = request.max_text_len
1782
- if not UtilClient.is_unset(request.ttl):
1783
- body['ttl'] = request.ttl
1784
1790
  req = open_api_models.OpenApiRequest(
1785
1791
  host_map=host_map,
1786
1792
  headers=headers,
1787
- body=OpenApiUtilClient.parse_to_map(body)
1793
+ body=OpenApiUtilClient.parse_to_map(request.body)
1788
1794
  )
1789
1795
  params = open_api_models.Params(
1790
1796
  action='CreateIndex',
@@ -1846,10 +1852,20 @@ class Client(OpenApiClient):
1846
1852
  runtime: util_models.RuntimeOptions,
1847
1853
  ) -> sls_20201230_models.CreateLogStoreResponse:
1848
1854
  """
1849
- @summary Create a Logstore
1855
+ @summary Creates a Logstore.
1850
1856
 
1851
1857
  @description ### Usage notes
1852
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
1858
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
1859
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
1860
+ 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).
1861
+ 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).
1862
+ You can create up to 200 Logstores in each project.
1863
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
1864
+ ### Authentication resources
1865
+ 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.
1866
+ |Action|Resource|
1867
+ |:---|:---|
1868
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1853
1869
 
1854
1870
  @param request: CreateLogStoreRequest
1855
1871
  @param headers: map
@@ -1878,6 +1894,8 @@ class Client(OpenApiClient):
1878
1894
  body['maxSplitShard'] = request.max_split_shard
1879
1895
  if not UtilClient.is_unset(request.mode):
1880
1896
  body['mode'] = request.mode
1897
+ if not UtilClient.is_unset(request.processor_id):
1898
+ body['processorId'] = request.processor_id
1881
1899
  if not UtilClient.is_unset(request.shard_count):
1882
1900
  body['shardCount'] = request.shard_count
1883
1901
  if not UtilClient.is_unset(request.telemetry_type):
@@ -1913,10 +1931,20 @@ class Client(OpenApiClient):
1913
1931
  runtime: util_models.RuntimeOptions,
1914
1932
  ) -> sls_20201230_models.CreateLogStoreResponse:
1915
1933
  """
1916
- @summary Create a Logstore
1934
+ @summary Creates a Logstore.
1917
1935
 
1918
1936
  @description ### Usage notes
1919
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
1937
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
1938
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
1939
+ 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).
1940
+ 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).
1941
+ You can create up to 200 Logstores in each project.
1942
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
1943
+ ### Authentication resources
1944
+ 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.
1945
+ |Action|Resource|
1946
+ |:---|:---|
1947
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1920
1948
 
1921
1949
  @param request: CreateLogStoreRequest
1922
1950
  @param headers: map
@@ -1945,6 +1973,8 @@ class Client(OpenApiClient):
1945
1973
  body['maxSplitShard'] = request.max_split_shard
1946
1974
  if not UtilClient.is_unset(request.mode):
1947
1975
  body['mode'] = request.mode
1976
+ if not UtilClient.is_unset(request.processor_id):
1977
+ body['processorId'] = request.processor_id
1948
1978
  if not UtilClient.is_unset(request.shard_count):
1949
1979
  body['shardCount'] = request.shard_count
1950
1980
  if not UtilClient.is_unset(request.telemetry_type):
@@ -1978,10 +2008,20 @@ class Client(OpenApiClient):
1978
2008
  request: sls_20201230_models.CreateLogStoreRequest,
1979
2009
  ) -> sls_20201230_models.CreateLogStoreResponse:
1980
2010
  """
1981
- @summary Create a Logstore
2011
+ @summary Creates a Logstore.
1982
2012
 
1983
2013
  @description ### Usage notes
1984
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
2014
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2015
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2016
+ 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).
2017
+ 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).
2018
+ You can create up to 200 Logstores in each project.
2019
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
2020
+ ### Authentication resources
2021
+ 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.
2022
+ |Action|Resource|
2023
+ |:---|:---|
2024
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
1985
2025
 
1986
2026
  @param request: CreateLogStoreRequest
1987
2027
  @return: CreateLogStoreResponse
@@ -1996,10 +2036,20 @@ class Client(OpenApiClient):
1996
2036
  request: sls_20201230_models.CreateLogStoreRequest,
1997
2037
  ) -> sls_20201230_models.CreateLogStoreResponse:
1998
2038
  """
1999
- @summary Create a Logstore
2039
+ @summary Creates a Logstore.
2000
2040
 
2001
2041
  @description ### Usage notes
2002
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
2042
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2043
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2044
+ 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).
2045
+ 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).
2046
+ You can create up to 200 Logstores in each project.
2047
+ If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.
2048
+ ### Authentication resources
2049
+ 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.
2050
+ |Action|Resource|
2051
+ |:---|:---|
2052
+ |`log:CreateLogStore`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
2003
2053
 
2004
2054
  @param request: CreateLogStoreRequest
2005
2055
  @return: CreateLogStoreResponse
@@ -2422,6 +2472,144 @@ class Client(OpenApiClient):
2422
2472
  headers = {}
2423
2473
  return await self.create_machine_group_with_options_async(project, request, headers, runtime)
2424
2474
 
2475
+ def create_metric_store_with_options(
2476
+ self,
2477
+ project: str,
2478
+ request: sls_20201230_models.CreateMetricStoreRequest,
2479
+ headers: Dict[str, str],
2480
+ runtime: util_models.RuntimeOptions,
2481
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2482
+ """
2483
+ @summary 创建时序库
2484
+
2485
+ @param request: CreateMetricStoreRequest
2486
+ @param headers: map
2487
+ @param runtime: runtime options for this request RuntimeOptions
2488
+ @return: CreateMetricStoreResponse
2489
+ """
2490
+ UtilClient.validate_model(request)
2491
+ host_map = {}
2492
+ host_map['project'] = project
2493
+ body = {}
2494
+ if not UtilClient.is_unset(request.auto_split):
2495
+ body['autoSplit'] = request.auto_split
2496
+ if not UtilClient.is_unset(request.max_split_shard):
2497
+ body['maxSplitShard'] = request.max_split_shard
2498
+ if not UtilClient.is_unset(request.metric_type):
2499
+ body['metricType'] = request.metric_type
2500
+ if not UtilClient.is_unset(request.mode):
2501
+ body['mode'] = request.mode
2502
+ if not UtilClient.is_unset(request.name):
2503
+ body['name'] = request.name
2504
+ if not UtilClient.is_unset(request.shard_count):
2505
+ body['shardCount'] = request.shard_count
2506
+ if not UtilClient.is_unset(request.ttl):
2507
+ body['ttl'] = request.ttl
2508
+ req = open_api_models.OpenApiRequest(
2509
+ host_map=host_map,
2510
+ headers=headers,
2511
+ body=OpenApiUtilClient.parse_to_map(body)
2512
+ )
2513
+ params = open_api_models.Params(
2514
+ action='CreateMetricStore',
2515
+ version='2020-12-30',
2516
+ protocol='HTTPS',
2517
+ pathname=f'/metricstores',
2518
+ method='POST',
2519
+ auth_type='AK',
2520
+ style='ROA',
2521
+ req_body_type='json',
2522
+ body_type='none'
2523
+ )
2524
+ return TeaCore.from_map(
2525
+ sls_20201230_models.CreateMetricStoreResponse(),
2526
+ self.execute(params, req, runtime)
2527
+ )
2528
+
2529
+ async def create_metric_store_with_options_async(
2530
+ self,
2531
+ project: str,
2532
+ request: sls_20201230_models.CreateMetricStoreRequest,
2533
+ headers: Dict[str, str],
2534
+ runtime: util_models.RuntimeOptions,
2535
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2536
+ """
2537
+ @summary 创建时序库
2538
+
2539
+ @param request: CreateMetricStoreRequest
2540
+ @param headers: map
2541
+ @param runtime: runtime options for this request RuntimeOptions
2542
+ @return: CreateMetricStoreResponse
2543
+ """
2544
+ UtilClient.validate_model(request)
2545
+ host_map = {}
2546
+ host_map['project'] = project
2547
+ body = {}
2548
+ if not UtilClient.is_unset(request.auto_split):
2549
+ body['autoSplit'] = request.auto_split
2550
+ if not UtilClient.is_unset(request.max_split_shard):
2551
+ body['maxSplitShard'] = request.max_split_shard
2552
+ if not UtilClient.is_unset(request.metric_type):
2553
+ body['metricType'] = request.metric_type
2554
+ if not UtilClient.is_unset(request.mode):
2555
+ body['mode'] = request.mode
2556
+ if not UtilClient.is_unset(request.name):
2557
+ body['name'] = request.name
2558
+ if not UtilClient.is_unset(request.shard_count):
2559
+ body['shardCount'] = request.shard_count
2560
+ if not UtilClient.is_unset(request.ttl):
2561
+ body['ttl'] = request.ttl
2562
+ req = open_api_models.OpenApiRequest(
2563
+ host_map=host_map,
2564
+ headers=headers,
2565
+ body=OpenApiUtilClient.parse_to_map(body)
2566
+ )
2567
+ params = open_api_models.Params(
2568
+ action='CreateMetricStore',
2569
+ version='2020-12-30',
2570
+ protocol='HTTPS',
2571
+ pathname=f'/metricstores',
2572
+ method='POST',
2573
+ auth_type='AK',
2574
+ style='ROA',
2575
+ req_body_type='json',
2576
+ body_type='none'
2577
+ )
2578
+ return TeaCore.from_map(
2579
+ sls_20201230_models.CreateMetricStoreResponse(),
2580
+ await self.execute_async(params, req, runtime)
2581
+ )
2582
+
2583
+ def create_metric_store(
2584
+ self,
2585
+ project: str,
2586
+ request: sls_20201230_models.CreateMetricStoreRequest,
2587
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2588
+ """
2589
+ @summary 创建时序库
2590
+
2591
+ @param request: CreateMetricStoreRequest
2592
+ @return: CreateMetricStoreResponse
2593
+ """
2594
+ runtime = util_models.RuntimeOptions()
2595
+ headers = {}
2596
+ return self.create_metric_store_with_options(project, request, headers, runtime)
2597
+
2598
+ async def create_metric_store_async(
2599
+ self,
2600
+ project: str,
2601
+ request: sls_20201230_models.CreateMetricStoreRequest,
2602
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2603
+ """
2604
+ @summary 创建时序库
2605
+
2606
+ @param request: CreateMetricStoreRequest
2607
+ @return: CreateMetricStoreResponse
2608
+ """
2609
+ runtime = util_models.RuntimeOptions()
2610
+ headers = {}
2611
+ return await self.create_metric_store_with_options_async(project, request, headers, runtime)
2612
+
2425
2613
  def create_ossexport_with_options(
2426
2614
  self,
2427
2615
  project: str,
@@ -2430,7 +2618,7 @@ class Client(OpenApiClient):
2430
2618
  runtime: util_models.RuntimeOptions,
2431
2619
  ) -> sls_20201230_models.CreateOSSExportResponse:
2432
2620
  """
2433
- @summary 创建OSS投递任务
2621
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2434
2622
 
2435
2623
  @param request: CreateOSSExportRequest
2436
2624
  @param headers: map
@@ -2478,7 +2666,7 @@ class Client(OpenApiClient):
2478
2666
  runtime: util_models.RuntimeOptions,
2479
2667
  ) -> sls_20201230_models.CreateOSSExportResponse:
2480
2668
  """
2481
- @summary 创建OSS投递任务
2669
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2482
2670
 
2483
2671
  @param request: CreateOSSExportRequest
2484
2672
  @param headers: map
@@ -2524,7 +2712,7 @@ class Client(OpenApiClient):
2524
2712
  request: sls_20201230_models.CreateOSSExportRequest,
2525
2713
  ) -> sls_20201230_models.CreateOSSExportResponse:
2526
2714
  """
2527
- @summary 创建OSS投递任务
2715
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2528
2716
 
2529
2717
  @param request: CreateOSSExportRequest
2530
2718
  @return: CreateOSSExportResponse
@@ -2539,7 +2727,7 @@ class Client(OpenApiClient):
2539
2727
  request: sls_20201230_models.CreateOSSExportRequest,
2540
2728
  ) -> sls_20201230_models.CreateOSSExportResponse:
2541
2729
  """
2542
- @summary 创建OSS投递任务
2730
+ @summary Ships logs from a Simple Log Service Logstore to an Object Storage Service (OSS) bucket.
2543
2731
 
2544
2732
  @param request: CreateOSSExportRequest
2545
2733
  @return: CreateOSSExportResponse
@@ -2682,7 +2870,7 @@ class Client(OpenApiClient):
2682
2870
  runtime: util_models.RuntimeOptions,
2683
2871
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2684
2872
  """
2685
- @summary 创建OSS导入任务
2873
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2686
2874
 
2687
2875
  @param request: CreateOSSIngestionRequest
2688
2876
  @param headers: map
@@ -2732,7 +2920,7 @@ class Client(OpenApiClient):
2732
2920
  runtime: util_models.RuntimeOptions,
2733
2921
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2734
2922
  """
2735
- @summary 创建OSS导入任务
2923
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2736
2924
 
2737
2925
  @param request: CreateOSSIngestionRequest
2738
2926
  @param headers: map
@@ -2780,7 +2968,7 @@ class Client(OpenApiClient):
2780
2968
  request: sls_20201230_models.CreateOSSIngestionRequest,
2781
2969
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2782
2970
  """
2783
- @summary 创建OSS导入任务
2971
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2784
2972
 
2785
2973
  @param request: CreateOSSIngestionRequest
2786
2974
  @return: CreateOSSIngestionResponse
@@ -2795,7 +2983,7 @@ class Client(OpenApiClient):
2795
2983
  request: sls_20201230_models.CreateOSSIngestionRequest,
2796
2984
  ) -> sls_20201230_models.CreateOSSIngestionResponse:
2797
2985
  """
2798
- @summary 创建OSS导入任务
2986
+ @summary Creates an Object Storage Service (OSS) data import job in a project.
2799
2987
 
2800
2988
  @param request: CreateOSSIngestionRequest
2801
2989
  @return: CreateOSSIngestionResponse
@@ -3334,7 +3522,7 @@ class Client(OpenApiClient):
3334
3522
  runtime: util_models.RuntimeOptions,
3335
3523
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3336
3524
  """
3337
- @summary 创建定时SQL任务
3525
+ @summary Creates a Scheduled SQL job in a project.
3338
3526
 
3339
3527
  @param request: CreateScheduledSQLRequest
3340
3528
  @param headers: map
@@ -3384,7 +3572,7 @@ class Client(OpenApiClient):
3384
3572
  runtime: util_models.RuntimeOptions,
3385
3573
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3386
3574
  """
3387
- @summary 创建定时SQL任务
3575
+ @summary Creates a Scheduled SQL job in a project.
3388
3576
 
3389
3577
  @param request: CreateScheduledSQLRequest
3390
3578
  @param headers: map
@@ -3432,7 +3620,7 @@ class Client(OpenApiClient):
3432
3620
  request: sls_20201230_models.CreateScheduledSQLRequest,
3433
3621
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3434
3622
  """
3435
- @summary 创建定时SQL任务
3623
+ @summary Creates a Scheduled SQL job in a project.
3436
3624
 
3437
3625
  @param request: CreateScheduledSQLRequest
3438
3626
  @return: CreateScheduledSQLResponse
@@ -3447,7 +3635,7 @@ class Client(OpenApiClient):
3447
3635
  request: sls_20201230_models.CreateScheduledSQLRequest,
3448
3636
  ) -> sls_20201230_models.CreateScheduledSQLResponse:
3449
3637
  """
3450
- @summary 创建定时SQL任务
3638
+ @summary Creates a Scheduled SQL job in a project.
3451
3639
 
3452
3640
  @param request: CreateScheduledSQLRequest
3453
3641
  @return: CreateScheduledSQLResponse
@@ -3464,7 +3652,9 @@ class Client(OpenApiClient):
3464
3652
  runtime: util_models.RuntimeOptions,
3465
3653
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3466
3654
  """
3467
- @summary 创建独享sql实例
3655
+ @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.
3656
+
3657
+ @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.
3468
3658
 
3469
3659
  @param request: CreateSqlInstanceRequest
3470
3660
  @param headers: map
@@ -3508,7 +3698,9 @@ class Client(OpenApiClient):
3508
3698
  runtime: util_models.RuntimeOptions,
3509
3699
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3510
3700
  """
3511
- @summary 创建独享sql实例
3701
+ @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.
3702
+
3703
+ @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.
3512
3704
 
3513
3705
  @param request: CreateSqlInstanceRequest
3514
3706
  @param headers: map
@@ -3550,7 +3742,9 @@ class Client(OpenApiClient):
3550
3742
  request: sls_20201230_models.CreateSqlInstanceRequest,
3551
3743
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3552
3744
  """
3553
- @summary 创建独享sql实例
3745
+ @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.
3746
+
3747
+ @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.
3554
3748
 
3555
3749
  @param request: CreateSqlInstanceRequest
3556
3750
  @return: CreateSqlInstanceResponse
@@ -3565,7 +3759,9 @@ class Client(OpenApiClient):
3565
3759
  request: sls_20201230_models.CreateSqlInstanceRequest,
3566
3760
  ) -> sls_20201230_models.CreateSqlInstanceResponse:
3567
3761
  """
3568
- @summary 创建独享sql实例
3762
+ @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.
3763
+
3764
+ @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.
3569
3765
 
3570
3766
  @param request: CreateSqlInstanceRequest
3571
3767
  @return: CreateSqlInstanceResponse
@@ -3812,7 +4008,7 @@ class Client(OpenApiClient):
3812
4008
  runtime: util_models.RuntimeOptions,
3813
4009
  ) -> sls_20201230_models.DeleteAlertResponse:
3814
4010
  """
3815
- @summary 删除告警
4011
+ @summary Deletes an alert rule.
3816
4012
 
3817
4013
  @param headers: map
3818
4014
  @param runtime: runtime options for this request RuntimeOptions
@@ -3848,7 +4044,7 @@ class Client(OpenApiClient):
3848
4044
  runtime: util_models.RuntimeOptions,
3849
4045
  ) -> sls_20201230_models.DeleteAlertResponse:
3850
4046
  """
3851
- @summary 删除告警
4047
+ @summary Deletes an alert rule.
3852
4048
 
3853
4049
  @param headers: map
3854
4050
  @param runtime: runtime options for this request RuntimeOptions
@@ -3882,7 +4078,7 @@ class Client(OpenApiClient):
3882
4078
  alert_name: str,
3883
4079
  ) -> sls_20201230_models.DeleteAlertResponse:
3884
4080
  """
3885
- @summary 删除告警
4081
+ @summary Deletes an alert rule.
3886
4082
 
3887
4083
  @return: DeleteAlertResponse
3888
4084
  """
@@ -3896,7 +4092,7 @@ class Client(OpenApiClient):
3896
4092
  alert_name: str,
3897
4093
  ) -> sls_20201230_models.DeleteAlertResponse:
3898
4094
  """
3899
- @summary 删除告警
4095
+ @summary Deletes an alert rule.
3900
4096
 
3901
4097
  @return: DeleteAlertResponse
3902
4098
  """
@@ -4457,7 +4653,17 @@ class Client(OpenApiClient):
4457
4653
  """
4458
4654
  @summary Deletes a consumer group.
4459
4655
 
4460
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4656
+ @description ### Usage notes
4657
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4658
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4659
+ 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).
4660
+ 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).
4661
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4662
+ ### Authentication resources
4663
+ 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.
4664
+ |Action|Resource|
4665
+ |:---|:---|
4666
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4461
4667
 
4462
4668
  @param headers: map
4463
4669
  @param runtime: runtime options for this request RuntimeOptions
@@ -4496,7 +4702,17 @@ class Client(OpenApiClient):
4496
4702
  """
4497
4703
  @summary Deletes a consumer group.
4498
4704
 
4499
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4705
+ @description ### Usage notes
4706
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4707
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4708
+ 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).
4709
+ 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).
4710
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4711
+ ### Authentication resources
4712
+ 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.
4713
+ |Action|Resource|
4714
+ |:---|:---|
4715
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4500
4716
 
4501
4717
  @param headers: map
4502
4718
  @param runtime: runtime options for this request RuntimeOptions
@@ -4533,7 +4749,17 @@ class Client(OpenApiClient):
4533
4749
  """
4534
4750
  @summary Deletes a consumer group.
4535
4751
 
4536
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4752
+ @description ### Usage notes
4753
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4754
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4755
+ 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).
4756
+ 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).
4757
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4758
+ ### Authentication resources
4759
+ 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.
4760
+ |Action|Resource|
4761
+ |:---|:---|
4762
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4537
4763
 
4538
4764
  @return: DeleteConsumerGroupResponse
4539
4765
  """
@@ -4550,7 +4776,17 @@ class Client(OpenApiClient):
4550
4776
  """
4551
4777
  @summary Deletes a consumer group.
4552
4778
 
4553
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4779
+ @description ### Usage notes
4780
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4781
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4782
+ 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).
4783
+ 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).
4784
+ The name of the consumer group is obtained. For more information, see [ListConsumerGroup](https://help.aliyun.com/document_detail/74964.html).
4785
+ ### Authentication resources
4786
+ 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.
4787
+ |Action|Resource|
4788
+ |:---|:---|
4789
+ |`log:DeleteConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
4554
4790
 
4555
4791
  @return: DeleteConsumerGroupResponse
4556
4792
  """
@@ -5638,19 +5874,19 @@ class Client(OpenApiClient):
5638
5874
  headers = {}
5639
5875
  return await self.delete_machine_group_with_options_async(project, machine_group, headers, runtime)
5640
5876
 
5641
- def delete_ossexport_with_options(
5877
+ def delete_metric_store_with_options(
5642
5878
  self,
5643
5879
  project: str,
5644
- oss_export_name: str,
5880
+ name: str,
5645
5881
  headers: Dict[str, str],
5646
5882
  runtime: util_models.RuntimeOptions,
5647
- ) -> sls_20201230_models.DeleteOSSExportResponse:
5883
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5648
5884
  """
5649
- @summary Deletes an Object Storage Service (OSS) data shipping job.
5885
+ @summary 删除时序库
5650
5886
 
5651
5887
  @param headers: map
5652
5888
  @param runtime: runtime options for this request RuntimeOptions
5653
- @return: DeleteOSSExportResponse
5889
+ @return: DeleteMetricStoreResponse
5654
5890
  """
5655
5891
  host_map = {}
5656
5892
  host_map['project'] = project
@@ -5659,34 +5895,34 @@ class Client(OpenApiClient):
5659
5895
  headers=headers
5660
5896
  )
5661
5897
  params = open_api_models.Params(
5662
- action='DeleteOSSExport',
5898
+ action='DeleteMetricStore',
5663
5899
  version='2020-12-30',
5664
5900
  protocol='HTTPS',
5665
- pathname=f'/ossexports/{oss_export_name}',
5901
+ pathname=f'/metricstores/{name}',
5666
5902
  method='DELETE',
5667
5903
  auth_type='AK',
5668
5904
  style='ROA',
5669
- req_body_type='json',
5905
+ req_body_type='none',
5670
5906
  body_type='none'
5671
5907
  )
5672
5908
  return TeaCore.from_map(
5673
- sls_20201230_models.DeleteOSSExportResponse(),
5909
+ sls_20201230_models.DeleteMetricStoreResponse(),
5674
5910
  self.execute(params, req, runtime)
5675
5911
  )
5676
5912
 
5677
- async def delete_ossexport_with_options_async(
5913
+ async def delete_metric_store_with_options_async(
5678
5914
  self,
5679
5915
  project: str,
5680
- oss_export_name: str,
5916
+ name: str,
5681
5917
  headers: Dict[str, str],
5682
5918
  runtime: util_models.RuntimeOptions,
5683
- ) -> sls_20201230_models.DeleteOSSExportResponse:
5919
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5684
5920
  """
5685
- @summary Deletes an Object Storage Service (OSS) data shipping job.
5921
+ @summary 删除时序库
5686
5922
 
5687
5923
  @param headers: map
5688
5924
  @param runtime: runtime options for this request RuntimeOptions
5689
- @return: DeleteOSSExportResponse
5925
+ @return: DeleteMetricStoreResponse
5690
5926
  """
5691
5927
  host_map = {}
5692
5928
  host_map['project'] = project
@@ -5695,42 +5931,142 @@ class Client(OpenApiClient):
5695
5931
  headers=headers
5696
5932
  )
5697
5933
  params = open_api_models.Params(
5698
- action='DeleteOSSExport',
5934
+ action='DeleteMetricStore',
5699
5935
  version='2020-12-30',
5700
5936
  protocol='HTTPS',
5701
- pathname=f'/ossexports/{oss_export_name}',
5937
+ pathname=f'/metricstores/{name}',
5702
5938
  method='DELETE',
5703
5939
  auth_type='AK',
5704
5940
  style='ROA',
5705
- req_body_type='json',
5941
+ req_body_type='none',
5706
5942
  body_type='none'
5707
5943
  )
5708
5944
  return TeaCore.from_map(
5709
- sls_20201230_models.DeleteOSSExportResponse(),
5945
+ sls_20201230_models.DeleteMetricStoreResponse(),
5710
5946
  await self.execute_async(params, req, runtime)
5711
5947
  )
5712
5948
 
5713
- def delete_ossexport(
5949
+ def delete_metric_store(
5714
5950
  self,
5715
5951
  project: str,
5716
- oss_export_name: str,
5717
- ) -> sls_20201230_models.DeleteOSSExportResponse:
5952
+ name: str,
5953
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5718
5954
  """
5719
- @summary Deletes an Object Storage Service (OSS) data shipping job.
5955
+ @summary 删除时序库
5720
5956
 
5721
- @return: DeleteOSSExportResponse
5957
+ @return: DeleteMetricStoreResponse
5722
5958
  """
5723
5959
  runtime = util_models.RuntimeOptions()
5724
5960
  headers = {}
5725
- return self.delete_ossexport_with_options(project, oss_export_name, headers, runtime)
5961
+ return self.delete_metric_store_with_options(project, name, headers, runtime)
5726
5962
 
5727
- async def delete_ossexport_async(
5963
+ async def delete_metric_store_async(
5728
5964
  self,
5729
5965
  project: str,
5730
- oss_export_name: str,
5731
- ) -> sls_20201230_models.DeleteOSSExportResponse:
5966
+ name: str,
5967
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
5732
5968
  """
5733
- @summary Deletes an Object Storage Service (OSS) data shipping job.
5969
+ @summary 删除时序库
5970
+
5971
+ @return: DeleteMetricStoreResponse
5972
+ """
5973
+ runtime = util_models.RuntimeOptions()
5974
+ headers = {}
5975
+ return await self.delete_metric_store_with_options_async(project, name, headers, runtime)
5976
+
5977
+ def delete_ossexport_with_options(
5978
+ self,
5979
+ project: str,
5980
+ oss_export_name: str,
5981
+ headers: Dict[str, str],
5982
+ runtime: util_models.RuntimeOptions,
5983
+ ) -> sls_20201230_models.DeleteOSSExportResponse:
5984
+ """
5985
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5986
+
5987
+ @param headers: map
5988
+ @param runtime: runtime options for this request RuntimeOptions
5989
+ @return: DeleteOSSExportResponse
5990
+ """
5991
+ host_map = {}
5992
+ host_map['project'] = project
5993
+ req = open_api_models.OpenApiRequest(
5994
+ host_map=host_map,
5995
+ headers=headers
5996
+ )
5997
+ params = open_api_models.Params(
5998
+ action='DeleteOSSExport',
5999
+ version='2020-12-30',
6000
+ protocol='HTTPS',
6001
+ pathname=f'/ossexports/{oss_export_name}',
6002
+ method='DELETE',
6003
+ auth_type='AK',
6004
+ style='ROA',
6005
+ req_body_type='json',
6006
+ body_type='none'
6007
+ )
6008
+ return TeaCore.from_map(
6009
+ sls_20201230_models.DeleteOSSExportResponse(),
6010
+ self.execute(params, req, runtime)
6011
+ )
6012
+
6013
+ async def delete_ossexport_with_options_async(
6014
+ self,
6015
+ project: str,
6016
+ oss_export_name: str,
6017
+ headers: Dict[str, str],
6018
+ runtime: util_models.RuntimeOptions,
6019
+ ) -> sls_20201230_models.DeleteOSSExportResponse:
6020
+ """
6021
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
6022
+
6023
+ @param headers: map
6024
+ @param runtime: runtime options for this request RuntimeOptions
6025
+ @return: DeleteOSSExportResponse
6026
+ """
6027
+ host_map = {}
6028
+ host_map['project'] = project
6029
+ req = open_api_models.OpenApiRequest(
6030
+ host_map=host_map,
6031
+ headers=headers
6032
+ )
6033
+ params = open_api_models.Params(
6034
+ action='DeleteOSSExport',
6035
+ version='2020-12-30',
6036
+ protocol='HTTPS',
6037
+ pathname=f'/ossexports/{oss_export_name}',
6038
+ method='DELETE',
6039
+ auth_type='AK',
6040
+ style='ROA',
6041
+ req_body_type='json',
6042
+ body_type='none'
6043
+ )
6044
+ return TeaCore.from_map(
6045
+ sls_20201230_models.DeleteOSSExportResponse(),
6046
+ await self.execute_async(params, req, runtime)
6047
+ )
6048
+
6049
+ def delete_ossexport(
6050
+ self,
6051
+ project: str,
6052
+ oss_export_name: str,
6053
+ ) -> sls_20201230_models.DeleteOSSExportResponse:
6054
+ """
6055
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
6056
+
6057
+ @return: DeleteOSSExportResponse
6058
+ """
6059
+ runtime = util_models.RuntimeOptions()
6060
+ headers = {}
6061
+ return self.delete_ossexport_with_options(project, oss_export_name, headers, runtime)
6062
+
6063
+ async def delete_ossexport_async(
6064
+ self,
6065
+ project: str,
6066
+ oss_export_name: str,
6067
+ ) -> sls_20201230_models.DeleteOSSExportResponse:
6068
+ """
6069
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5734
6070
 
5735
6071
  @return: DeleteOSSExportResponse
5736
6072
  """
@@ -5846,7 +6182,7 @@ class Client(OpenApiClient):
5846
6182
  runtime: util_models.RuntimeOptions,
5847
6183
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5848
6184
  """
5849
- @summary 删除OSS导入任务
6185
+ @summary Deletes an Object Storage Service (OSS) data import job.
5850
6186
 
5851
6187
  @param headers: map
5852
6188
  @param runtime: runtime options for this request RuntimeOptions
@@ -5882,7 +6218,7 @@ class Client(OpenApiClient):
5882
6218
  runtime: util_models.RuntimeOptions,
5883
6219
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5884
6220
  """
5885
- @summary 删除OSS导入任务
6221
+ @summary Deletes an Object Storage Service (OSS) data import job.
5886
6222
 
5887
6223
  @param headers: map
5888
6224
  @param runtime: runtime options for this request RuntimeOptions
@@ -5916,7 +6252,7 @@ class Client(OpenApiClient):
5916
6252
  oss_ingestion_name: str,
5917
6253
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5918
6254
  """
5919
- @summary 删除OSS导入任务
6255
+ @summary Deletes an Object Storage Service (OSS) data import job.
5920
6256
 
5921
6257
  @return: DeleteOSSIngestionResponse
5922
6258
  """
@@ -5930,7 +6266,7 @@ class Client(OpenApiClient):
5930
6266
  oss_ingestion_name: str,
5931
6267
  ) -> sls_20201230_models.DeleteOSSIngestionResponse:
5932
6268
  """
5933
- @summary 删除OSS导入任务
6269
+ @summary Deletes an Object Storage Service (OSS) data import job.
5934
6270
 
5935
6271
  @return: DeleteOSSIngestionResponse
5936
6272
  """
@@ -5945,7 +6281,18 @@ class Client(OpenApiClient):
5945
6281
  runtime: util_models.RuntimeOptions,
5946
6282
  ) -> sls_20201230_models.DeleteProjectResponse:
5947
6283
  """
5948
- @summary 删除project
6284
+ @summary Deletes a project.
6285
+
6286
+ @description ### Usage notes
6287
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6288
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6289
+ 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).
6290
+ 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.
6291
+ ### Authentication resources
6292
+ 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.
6293
+ |Action|Resource|
6294
+ |:---|:---|
6295
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5949
6296
 
5950
6297
  @param headers: map
5951
6298
  @param runtime: runtime options for this request RuntimeOptions
@@ -5980,7 +6327,18 @@ class Client(OpenApiClient):
5980
6327
  runtime: util_models.RuntimeOptions,
5981
6328
  ) -> sls_20201230_models.DeleteProjectResponse:
5982
6329
  """
5983
- @summary 删除project
6330
+ @summary Deletes a project.
6331
+
6332
+ @description ### Usage notes
6333
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6334
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6335
+ 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).
6336
+ 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.
6337
+ ### Authentication resources
6338
+ 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.
6339
+ |Action|Resource|
6340
+ |:---|:---|
6341
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
5984
6342
 
5985
6343
  @param headers: map
5986
6344
  @param runtime: runtime options for this request RuntimeOptions
@@ -6013,7 +6371,18 @@ class Client(OpenApiClient):
6013
6371
  project: str,
6014
6372
  ) -> sls_20201230_models.DeleteProjectResponse:
6015
6373
  """
6016
- @summary 删除project
6374
+ @summary Deletes a project.
6375
+
6376
+ @description ### Usage notes
6377
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6378
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6379
+ 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).
6380
+ 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.
6381
+ ### Authentication resources
6382
+ 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.
6383
+ |Action|Resource|
6384
+ |:---|:---|
6385
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6017
6386
 
6018
6387
  @return: DeleteProjectResponse
6019
6388
  """
@@ -6026,7 +6395,18 @@ class Client(OpenApiClient):
6026
6395
  project: str,
6027
6396
  ) -> sls_20201230_models.DeleteProjectResponse:
6028
6397
  """
6029
- @summary 删除project
6398
+ @summary Deletes a project.
6399
+
6400
+ @description ### Usage notes
6401
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6402
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6403
+ 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).
6404
+ 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.
6405
+ ### Authentication resources
6406
+ 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.
6407
+ |Action|Resource|
6408
+ |:---|:---|
6409
+ |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6030
6410
 
6031
6411
  @return: DeleteProjectResponse
6032
6412
  """
@@ -6262,7 +6642,7 @@ class Client(OpenApiClient):
6262
6642
  runtime: util_models.RuntimeOptions,
6263
6643
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6264
6644
  """
6265
- @summary 删除定时SQL任务
6645
+ @summary Deletes a Scheduled SQL job.
6266
6646
 
6267
6647
  @param headers: map
6268
6648
  @param runtime: runtime options for this request RuntimeOptions
@@ -6298,7 +6678,7 @@ class Client(OpenApiClient):
6298
6678
  runtime: util_models.RuntimeOptions,
6299
6679
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6300
6680
  """
6301
- @summary 删除定时SQL任务
6681
+ @summary Deletes a Scheduled SQL job.
6302
6682
 
6303
6683
  @param headers: map
6304
6684
  @param runtime: runtime options for this request RuntimeOptions
@@ -6332,7 +6712,7 @@ class Client(OpenApiClient):
6332
6712
  scheduled_sqlname: str,
6333
6713
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6334
6714
  """
6335
- @summary 删除定时SQL任务
6715
+ @summary Deletes a Scheduled SQL job.
6336
6716
 
6337
6717
  @return: DeleteScheduledSQLResponse
6338
6718
  """
@@ -6346,7 +6726,7 @@ class Client(OpenApiClient):
6346
6726
  scheduled_sqlname: str,
6347
6727
  ) -> sls_20201230_models.DeleteScheduledSQLResponse:
6348
6728
  """
6349
- @summary 删除定时SQL任务
6729
+ @summary Deletes a Scheduled SQL job.
6350
6730
 
6351
6731
  @return: DeleteScheduledSQLResponse
6352
6732
  """
@@ -6362,7 +6742,7 @@ class Client(OpenApiClient):
6362
6742
  runtime: util_models.RuntimeOptions,
6363
6743
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6364
6744
  """
6365
- @summary 删除StoreView
6745
+ @summary Deletes a dataset by using the name of the dataset.
6366
6746
 
6367
6747
  @param headers: map
6368
6748
  @param runtime: runtime options for this request RuntimeOptions
@@ -6398,7 +6778,7 @@ class Client(OpenApiClient):
6398
6778
  runtime: util_models.RuntimeOptions,
6399
6779
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6400
6780
  """
6401
- @summary 删除StoreView
6781
+ @summary Deletes a dataset by using the name of the dataset.
6402
6782
 
6403
6783
  @param headers: map
6404
6784
  @param runtime: runtime options for this request RuntimeOptions
@@ -6432,7 +6812,7 @@ class Client(OpenApiClient):
6432
6812
  name: str,
6433
6813
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6434
6814
  """
6435
- @summary 删除StoreView
6815
+ @summary Deletes a dataset by using the name of the dataset.
6436
6816
 
6437
6817
  @return: DeleteStoreViewResponse
6438
6818
  """
@@ -6446,7 +6826,7 @@ class Client(OpenApiClient):
6446
6826
  name: str,
6447
6827
  ) -> sls_20201230_models.DeleteStoreViewResponse:
6448
6828
  """
6449
- @summary 删除StoreView
6829
+ @summary Deletes a dataset by using the name of the dataset.
6450
6830
 
6451
6831
  @return: DeleteStoreViewResponse
6452
6832
  """
@@ -6462,7 +6842,7 @@ class Client(OpenApiClient):
6462
6842
  runtime: util_models.RuntimeOptions,
6463
6843
  ) -> sls_20201230_models.DisableAlertResponse:
6464
6844
  """
6465
- @summary 禁用告警
6845
+ @summary Disables an alert rule.
6466
6846
 
6467
6847
  @param headers: map
6468
6848
  @param runtime: runtime options for this request RuntimeOptions
@@ -6498,7 +6878,7 @@ class Client(OpenApiClient):
6498
6878
  runtime: util_models.RuntimeOptions,
6499
6879
  ) -> sls_20201230_models.DisableAlertResponse:
6500
6880
  """
6501
- @summary 禁用告警
6881
+ @summary Disables an alert rule.
6502
6882
 
6503
6883
  @param headers: map
6504
6884
  @param runtime: runtime options for this request RuntimeOptions
@@ -6532,7 +6912,7 @@ class Client(OpenApiClient):
6532
6912
  alert_name: str,
6533
6913
  ) -> sls_20201230_models.DisableAlertResponse:
6534
6914
  """
6535
- @summary 禁用告警
6915
+ @summary Disables an alert rule.
6536
6916
 
6537
6917
  @return: DisableAlertResponse
6538
6918
  """
@@ -6546,7 +6926,7 @@ class Client(OpenApiClient):
6546
6926
  alert_name: str,
6547
6927
  ) -> sls_20201230_models.DisableAlertResponse:
6548
6928
  """
6549
- @summary 禁用告警
6929
+ @summary Disables an alert rule.
6550
6930
 
6551
6931
  @return: DisableAlertResponse
6552
6932
  """
@@ -6662,7 +7042,7 @@ class Client(OpenApiClient):
6662
7042
  runtime: util_models.RuntimeOptions,
6663
7043
  ) -> sls_20201230_models.EnableAlertResponse:
6664
7044
  """
6665
- @summary 启用告警
7045
+ @summary Enables an alert rule.
6666
7046
 
6667
7047
  @param headers: map
6668
7048
  @param runtime: runtime options for this request RuntimeOptions
@@ -6698,7 +7078,7 @@ class Client(OpenApiClient):
6698
7078
  runtime: util_models.RuntimeOptions,
6699
7079
  ) -> sls_20201230_models.EnableAlertResponse:
6700
7080
  """
6701
- @summary 启用告警
7081
+ @summary Enables an alert rule.
6702
7082
 
6703
7083
  @param headers: map
6704
7084
  @param runtime: runtime options for this request RuntimeOptions
@@ -6732,7 +7112,7 @@ class Client(OpenApiClient):
6732
7112
  alert_name: str,
6733
7113
  ) -> sls_20201230_models.EnableAlertResponse:
6734
7114
  """
6735
- @summary 启用告警
7115
+ @summary Enables an alert rule.
6736
7116
 
6737
7117
  @return: EnableAlertResponse
6738
7118
  """
@@ -6746,7 +7126,7 @@ class Client(OpenApiClient):
6746
7126
  alert_name: str,
6747
7127
  ) -> sls_20201230_models.EnableAlertResponse:
6748
7128
  """
6749
- @summary 启用告警
7129
+ @summary Enables an alert rule.
6750
7130
 
6751
7131
  @return: EnableAlertResponse
6752
7132
  """
@@ -6862,7 +7242,7 @@ class Client(OpenApiClient):
6862
7242
  runtime: util_models.RuntimeOptions,
6863
7243
  ) -> sls_20201230_models.GetAlertResponse:
6864
7244
  """
6865
- @summary GetAlert
7245
+ @summary Queries the information about an alert rule.
6866
7246
 
6867
7247
  @param headers: map
6868
7248
  @param runtime: runtime options for this request RuntimeOptions
@@ -6898,7 +7278,7 @@ class Client(OpenApiClient):
6898
7278
  runtime: util_models.RuntimeOptions,
6899
7279
  ) -> sls_20201230_models.GetAlertResponse:
6900
7280
  """
6901
- @summary GetAlert
7281
+ @summary Queries the information about an alert rule.
6902
7282
 
6903
7283
  @param headers: map
6904
7284
  @param runtime: runtime options for this request RuntimeOptions
@@ -6932,7 +7312,7 @@ class Client(OpenApiClient):
6932
7312
  alert_name: str,
6933
7313
  ) -> sls_20201230_models.GetAlertResponse:
6934
7314
  """
6935
- @summary GetAlert
7315
+ @summary Queries the information about an alert rule.
6936
7316
 
6937
7317
  @return: GetAlertResponse
6938
7318
  """
@@ -6946,7 +7326,7 @@ class Client(OpenApiClient):
6946
7326
  alert_name: str,
6947
7327
  ) -> sls_20201230_models.GetAlertResponse:
6948
7328
  """
6949
- @summary GetAlert
7329
+ @summary Queries the information about an alert rule.
6950
7330
 
6951
7331
  @return: GetAlertResponse
6952
7332
  """
@@ -6962,7 +7342,7 @@ class Client(OpenApiClient):
6962
7342
  runtime: util_models.RuntimeOptions,
6963
7343
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6964
7344
  """
6965
- @summary Queries data in a dataset based on the unique identifier of the data.
7345
+ @summary Queries data in datasets based on the unique identifier of the data.
6966
7346
 
6967
7347
  @param headers: map
6968
7348
  @param runtime: runtime options for this request RuntimeOptions
@@ -6995,7 +7375,7 @@ class Client(OpenApiClient):
6995
7375
  runtime: util_models.RuntimeOptions,
6996
7376
  ) -> sls_20201230_models.GetAnnotationDataResponse:
6997
7377
  """
6998
- @summary Queries data in a dataset based on the unique identifier of the data.
7378
+ @summary Queries data in datasets based on the unique identifier of the data.
6999
7379
 
7000
7380
  @param headers: map
7001
7381
  @param runtime: runtime options for this request RuntimeOptions
@@ -7026,7 +7406,7 @@ class Client(OpenApiClient):
7026
7406
  annotationdata_id: str,
7027
7407
  ) -> sls_20201230_models.GetAnnotationDataResponse:
7028
7408
  """
7029
- @summary Queries data in a dataset based on the unique identifier of the data.
7409
+ @summary Queries data in datasets based on the unique identifier of the data.
7030
7410
 
7031
7411
  @return: GetAnnotationDataResponse
7032
7412
  """
@@ -7040,7 +7420,7 @@ class Client(OpenApiClient):
7040
7420
  annotationdata_id: str,
7041
7421
  ) -> sls_20201230_models.GetAnnotationDataResponse:
7042
7422
  """
7043
- @summary Queries data in a dataset based on the unique identifier of the data.
7423
+ @summary Queries data in datasets based on the unique identifier of the data.
7044
7424
 
7045
7425
  @return: GetAnnotationDataResponse
7046
7426
  """
@@ -7825,8 +8205,19 @@ class Client(OpenApiClient):
7825
8205
  """
7826
8206
  @summary Queries the contextual logs of a specified log.
7827
8207
 
7828
- @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.
8208
+ @description ### Usage notes
8209
+ 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.
7829
8210
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8211
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8212
+ 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).
8213
+ 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).
8214
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8215
+ 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.
8216
+ ### Authentication resources
8217
+ 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.
8218
+ |Action|Resource|
8219
+ |:---|:---|
8220
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7830
8221
 
7831
8222
  @param request: GetContextLogsRequest
7832
8223
  @param headers: map
@@ -7879,8 +8270,19 @@ class Client(OpenApiClient):
7879
8270
  """
7880
8271
  @summary Queries the contextual logs of a specified log.
7881
8272
 
7882
- @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.
8273
+ @description ### Usage notes
8274
+ 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.
7883
8275
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8276
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8277
+ 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).
8278
+ 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).
8279
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8280
+ 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.
8281
+ ### Authentication resources
8282
+ 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.
8283
+ |Action|Resource|
8284
+ |:---|:---|
8285
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7884
8286
 
7885
8287
  @param request: GetContextLogsRequest
7886
8288
  @param headers: map
@@ -7931,8 +8333,19 @@ class Client(OpenApiClient):
7931
8333
  """
7932
8334
  @summary Queries the contextual logs of a specified log.
7933
8335
 
7934
- @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.
8336
+ @description ### Usage notes
8337
+ 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.
7935
8338
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
8339
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
8340
+ 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).
8341
+ 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).
8342
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
8343
+ 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.
8344
+ ### Authentication resources
8345
+ 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.
8346
+ |Action|Resource|
8347
+ |:---|:---|
8348
+ |`log:GetLogStoreContextLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
7936
8349
 
7937
8350
  @param request: GetContextLogsRequest
7938
8351
  @return: GetContextLogsResponse
@@ -7950,8 +8363,19 @@ class Client(OpenApiClient):
7950
8363
  """
7951
8364
  @summary Queries the contextual logs of a specified log.
7952
8365
 
7953
- @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.
7954
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}`|
7955
8379
 
7956
8380
  @param request: GetContextLogsRequest
7957
8381
  @return: GetContextLogsResponse
@@ -9074,7 +9498,7 @@ class Client(OpenApiClient):
9074
9498
  runtime: util_models.RuntimeOptions,
9075
9499
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
9076
9500
  """
9077
- @summary 获取LogStore计量模式
9501
+ @summary Queries the billing mode of a Logstore.
9078
9502
 
9079
9503
  @param headers: map
9080
9504
  @param runtime: runtime options for this request RuntimeOptions
@@ -9110,7 +9534,7 @@ class Client(OpenApiClient):
9110
9534
  runtime: util_models.RuntimeOptions,
9111
9535
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
9112
9536
  """
9113
- @summary 获取LogStore计量模式
9537
+ @summary Queries the billing mode of a Logstore.
9114
9538
 
9115
9539
  @param headers: map
9116
9540
  @param runtime: runtime options for this request RuntimeOptions
@@ -9144,7 +9568,7 @@ class Client(OpenApiClient):
9144
9568
  logstore: str,
9145
9569
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
9146
9570
  """
9147
- @summary 获取LogStore计量模式
9571
+ @summary Queries the billing mode of a Logstore.
9148
9572
 
9149
9573
  @return: GetLogStoreMeteringModeResponse
9150
9574
  """
@@ -9158,7 +9582,7 @@ class Client(OpenApiClient):
9158
9582
  logstore: str,
9159
9583
  ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
9160
9584
  """
9161
- @summary 获取LogStore计量模式
9585
+ @summary Queries the billing mode of a Logstore.
9162
9586
 
9163
9587
  @return: GetLogStoreMeteringModeResponse
9164
9588
  """
@@ -9469,13 +9893,11 @@ class Client(OpenApiClient):
9469
9893
  runtime: util_models.RuntimeOptions,
9470
9894
  ) -> sls_20201230_models.GetLogsV2Response:
9471
9895
  """
9472
- @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.
9896
+ @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.
9473
9897
 
9474
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9475
- 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.
9476
- 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:
9477
- 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.
9478
- 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.
9898
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
9899
+ You can call this operation by using Simple Log Service SDK for Go or Java.
9900
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9479
9901
 
9480
9902
  @param request: GetLogsV2Request
9481
9903
  @param headers: GetLogsV2Headers
@@ -9543,13 +9965,11 @@ class Client(OpenApiClient):
9543
9965
  runtime: util_models.RuntimeOptions,
9544
9966
  ) -> sls_20201230_models.GetLogsV2Response:
9545
9967
  """
9546
- @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.
9968
+ @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.
9547
9969
 
9548
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9549
- 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.
9550
- 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:
9551
- 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.
9552
- 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.
9970
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
9971
+ You can call this operation by using Simple Log Service SDK for Go or Java.
9972
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9553
9973
 
9554
9974
  @param request: GetLogsV2Request
9555
9975
  @param headers: GetLogsV2Headers
@@ -9615,13 +10035,11 @@ class Client(OpenApiClient):
9615
10035
  request: sls_20201230_models.GetLogsV2Request,
9616
10036
  ) -> sls_20201230_models.GetLogsV2Response:
9617
10037
  """
9618
- @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.
10038
+ @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.
9619
10039
 
9620
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9621
- 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.
9622
- 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:
9623
- 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.
9624
- 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.
10040
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10041
+ You can call this operation by using Simple Log Service SDK for Go or Java.
10042
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9625
10043
 
9626
10044
  @param request: GetLogsV2Request
9627
10045
  @return: GetLogsV2Response
@@ -9637,13 +10055,11 @@ class Client(OpenApiClient):
9637
10055
  request: sls_20201230_models.GetLogsV2Request,
9638
10056
  ) -> sls_20201230_models.GetLogsV2Response:
9639
10057
  """
9640
- @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.
10058
+ @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.
9641
10059
 
9642
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9643
- 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.
9644
- 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:
9645
- 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.
9646
- 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.
10060
+ @description You can call this operation by using Alibaba Cloud SDK for Go, Java, TypeScript, or Python.
10061
+ You can call this operation by using Simple Log Service SDK for Go or Java.
10062
+ For more information, see [GetLogs](https://help.aliyun.com/document_detail/29029.html).
9647
10063
 
9648
10064
  @param request: GetLogsV2Request
9649
10065
  @return: GetLogsV2Response
@@ -9768,7 +10184,7 @@ class Client(OpenApiClient):
9768
10184
  runtime: util_models.RuntimeOptions,
9769
10185
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9770
10186
  """
9771
- @summary GetMLServiceResults
10187
+ @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.
9772
10188
 
9773
10189
  @param request: GetMLServiceResultsRequest
9774
10190
  @param headers: map
@@ -9810,7 +10226,7 @@ class Client(OpenApiClient):
9810
10226
  runtime: util_models.RuntimeOptions,
9811
10227
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9812
10228
  """
9813
- @summary GetMLServiceResults
10229
+ @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.
9814
10230
 
9815
10231
  @param request: GetMLServiceResultsRequest
9816
10232
  @param headers: map
@@ -9850,7 +10266,7 @@ class Client(OpenApiClient):
9850
10266
  request: sls_20201230_models.GetMLServiceResultsRequest,
9851
10267
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9852
10268
  """
9853
- @summary GetMLServiceResults
10269
+ @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.
9854
10270
 
9855
10271
  @param request: GetMLServiceResultsRequest
9856
10272
  @return: GetMLServiceResultsResponse
@@ -9865,7 +10281,7 @@ class Client(OpenApiClient):
9865
10281
  request: sls_20201230_models.GetMLServiceResultsRequest,
9866
10282
  ) -> sls_20201230_models.GetMLServiceResultsResponse:
9867
10283
  """
9868
- @summary GetMLServiceResults
10284
+ @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.
9869
10285
 
9870
10286
  @param request: GetMLServiceResultsRequest
9871
10287
  @return: GetMLServiceResultsResponse
@@ -9982,6 +10398,106 @@ class Client(OpenApiClient):
9982
10398
  headers = {}
9983
10399
  return await self.get_machine_group_with_options_async(project, machine_group, headers, runtime)
9984
10400
 
10401
+ def get_metric_store_with_options(
10402
+ self,
10403
+ project: str,
10404
+ name: str,
10405
+ headers: Dict[str, str],
10406
+ runtime: util_models.RuntimeOptions,
10407
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10408
+ """
10409
+ @summary 查询时序库
10410
+
10411
+ @param headers: map
10412
+ @param runtime: runtime options for this request RuntimeOptions
10413
+ @return: GetMetricStoreResponse
10414
+ """
10415
+ host_map = {}
10416
+ host_map['project'] = project
10417
+ req = open_api_models.OpenApiRequest(
10418
+ host_map=host_map,
10419
+ headers=headers
10420
+ )
10421
+ params = open_api_models.Params(
10422
+ action='GetMetricStore',
10423
+ version='2020-12-30',
10424
+ protocol='HTTPS',
10425
+ pathname=f'/metricstores/{name}',
10426
+ method='GET',
10427
+ auth_type='AK',
10428
+ style='ROA',
10429
+ req_body_type='none',
10430
+ body_type='json'
10431
+ )
10432
+ return TeaCore.from_map(
10433
+ sls_20201230_models.GetMetricStoreResponse(),
10434
+ self.execute(params, req, runtime)
10435
+ )
10436
+
10437
+ async def get_metric_store_with_options_async(
10438
+ self,
10439
+ project: str,
10440
+ name: str,
10441
+ headers: Dict[str, str],
10442
+ runtime: util_models.RuntimeOptions,
10443
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10444
+ """
10445
+ @summary 查询时序库
10446
+
10447
+ @param headers: map
10448
+ @param runtime: runtime options for this request RuntimeOptions
10449
+ @return: GetMetricStoreResponse
10450
+ """
10451
+ host_map = {}
10452
+ host_map['project'] = project
10453
+ req = open_api_models.OpenApiRequest(
10454
+ host_map=host_map,
10455
+ headers=headers
10456
+ )
10457
+ params = open_api_models.Params(
10458
+ action='GetMetricStore',
10459
+ version='2020-12-30',
10460
+ protocol='HTTPS',
10461
+ pathname=f'/metricstores/{name}',
10462
+ method='GET',
10463
+ auth_type='AK',
10464
+ style='ROA',
10465
+ req_body_type='none',
10466
+ body_type='json'
10467
+ )
10468
+ return TeaCore.from_map(
10469
+ sls_20201230_models.GetMetricStoreResponse(),
10470
+ await self.execute_async(params, req, runtime)
10471
+ )
10472
+
10473
+ def get_metric_store(
10474
+ self,
10475
+ project: str,
10476
+ name: str,
10477
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10478
+ """
10479
+ @summary 查询时序库
10480
+
10481
+ @return: GetMetricStoreResponse
10482
+ """
10483
+ runtime = util_models.RuntimeOptions()
10484
+ headers = {}
10485
+ return self.get_metric_store_with_options(project, name, headers, runtime)
10486
+
10487
+ async def get_metric_store_async(
10488
+ self,
10489
+ project: str,
10490
+ name: str,
10491
+ ) -> sls_20201230_models.GetMetricStoreResponse:
10492
+ """
10493
+ @summary 查询时序库
10494
+
10495
+ @return: GetMetricStoreResponse
10496
+ """
10497
+ runtime = util_models.RuntimeOptions()
10498
+ headers = {}
10499
+ return await self.get_metric_store_with_options_async(project, name, headers, runtime)
10500
+
9985
10501
  def get_metric_store_metering_mode_with_options(
9986
10502
  self,
9987
10503
  project: str,
@@ -9990,7 +10506,7 @@ class Client(OpenApiClient):
9990
10506
  runtime: util_models.RuntimeOptions,
9991
10507
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
9992
10508
  """
9993
- @summary 获取 MetricStore 计量模式
10509
+ @summary Queries the billing mode of a Metricstore.
9994
10510
 
9995
10511
  @param headers: map
9996
10512
  @param runtime: runtime options for this request RuntimeOptions
@@ -10026,7 +10542,7 @@ class Client(OpenApiClient):
10026
10542
  runtime: util_models.RuntimeOptions,
10027
10543
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
10028
10544
  """
10029
- @summary 获取 MetricStore 计量模式
10545
+ @summary Queries the billing mode of a Metricstore.
10030
10546
 
10031
10547
  @param headers: map
10032
10548
  @param runtime: runtime options for this request RuntimeOptions
@@ -10060,7 +10576,7 @@ class Client(OpenApiClient):
10060
10576
  metric_store: str,
10061
10577
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
10062
10578
  """
10063
- @summary 获取 MetricStore 计量模式
10579
+ @summary Queries the billing mode of a Metricstore.
10064
10580
 
10065
10581
  @return: GetMetricStoreMeteringModeResponse
10066
10582
  """
@@ -10074,7 +10590,7 @@ class Client(OpenApiClient):
10074
10590
  metric_store: str,
10075
10591
  ) -> sls_20201230_models.GetMetricStoreMeteringModeResponse:
10076
10592
  """
10077
- @summary 获取 MetricStore 计量模式
10593
+ @summary Queries the billing mode of a Metricstore.
10078
10594
 
10079
10595
  @return: GetMetricStoreMeteringModeResponse
10080
10596
  """
@@ -10290,7 +10806,7 @@ class Client(OpenApiClient):
10290
10806
  runtime: util_models.RuntimeOptions,
10291
10807
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10292
10808
  """
10293
- @summary 获取oss导入任务信息
10809
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10294
10810
 
10295
10811
  @param headers: map
10296
10812
  @param runtime: runtime options for this request RuntimeOptions
@@ -10326,7 +10842,7 @@ class Client(OpenApiClient):
10326
10842
  runtime: util_models.RuntimeOptions,
10327
10843
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10328
10844
  """
10329
- @summary 获取oss导入任务信息
10845
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10330
10846
 
10331
10847
  @param headers: map
10332
10848
  @param runtime: runtime options for this request RuntimeOptions
@@ -10360,7 +10876,7 @@ class Client(OpenApiClient):
10360
10876
  oss_ingestion_name: str,
10361
10877
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10362
10878
  """
10363
- @summary 获取oss导入任务信息
10879
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10364
10880
 
10365
10881
  @return: GetOSSIngestionResponse
10366
10882
  """
@@ -10374,7 +10890,7 @@ class Client(OpenApiClient):
10374
10890
  oss_ingestion_name: str,
10375
10891
  ) -> sls_20201230_models.GetOSSIngestionResponse:
10376
10892
  """
10377
- @summary 获取oss导入任务信息
10893
+ @summary Queries the information about an Object Storage Service (OSS) data import job.
10378
10894
 
10379
10895
  @return: GetOSSIngestionResponse
10380
10896
  """
@@ -10501,11 +11017,20 @@ class Client(OpenApiClient):
10501
11017
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10502
11018
 
10503
11019
  @description ### Usage notes
10504
- You can use the query parameter to specify a standard SQL statement.
10505
- You must specify a project in the domain name of the request.
10506
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10507
- 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.
10508
11020
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11021
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11022
+ 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).
11023
+ 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).
11024
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11025
+ 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).
11026
+ You must set query to a standard SQL statement.
11027
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11028
+ 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.
11029
+ ### Authentication resources
11030
+ 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.
11031
+ |Action|Resource|
11032
+ |:---|:---|
11033
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10509
11034
 
10510
11035
  @param request: GetProjectLogsRequest
10511
11036
  @param headers: map
@@ -10552,11 +11077,20 @@ class Client(OpenApiClient):
10552
11077
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10553
11078
 
10554
11079
  @description ### Usage notes
10555
- You can use the query parameter to specify a standard SQL statement.
10556
- You must specify a project in the domain name of the request.
10557
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10558
- 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.
10559
11080
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11081
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11082
+ 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).
11083
+ 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).
11084
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11085
+ 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).
11086
+ You must set query to a standard SQL statement.
11087
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11088
+ 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.
11089
+ ### Authentication resources
11090
+ 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.
11091
+ |Action|Resource|
11092
+ |:---|:---|
11093
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10560
11094
 
10561
11095
  @param request: GetProjectLogsRequest
10562
11096
  @param headers: map
@@ -10601,11 +11135,20 @@ class Client(OpenApiClient):
10601
11135
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10602
11136
 
10603
11137
  @description ### Usage notes
10604
- You can use the query parameter to specify a standard SQL statement.
10605
- You must specify a project in the domain name of the request.
10606
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10607
- 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.
10608
11138
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11139
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11140
+ 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).
11141
+ 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).
11142
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11143
+ 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).
11144
+ You must set query to a standard SQL statement.
11145
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11146
+ 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.
11147
+ ### Authentication resources
11148
+ 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.
11149
+ |Action|Resource|
11150
+ |:---|:---|
11151
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10609
11152
 
10610
11153
  @param request: GetProjectLogsRequest
10611
11154
  @return: GetProjectLogsResponse
@@ -10623,11 +11166,20 @@ class Client(OpenApiClient):
10623
11166
  @summary Queries logs in a project. You can use this operation to query logs at the project level.
10624
11167
 
10625
11168
  @description ### Usage notes
10626
- You can use the query parameter to specify a standard SQL statement.
10627
- You must specify a project in the domain name of the request.
10628
- You must specify a Logstore in the FROM clause of the SQL statement. A Logstore can be used as an SQL table.
10629
- 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.
10630
11169
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11170
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11171
+ 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).
11172
+ 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).
11173
+ Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
11174
+ 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).
11175
+ You must set query to a standard SQL statement.
11176
+ You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.
11177
+ 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.
11178
+ ### Authentication resources
11179
+ 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.
11180
+ |Action|Resource|
11181
+ |:---|:---|
11182
+ |`log:GetProjectLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
10631
11183
 
10632
11184
  @param request: GetProjectLogsRequest
10633
11185
  @return: GetProjectLogsResponse
@@ -10876,7 +11428,7 @@ class Client(OpenApiClient):
10876
11428
  runtime: util_models.RuntimeOptions,
10877
11429
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10878
11430
  """
10879
- @summary 查看定时SQL任务
11431
+ @summary Queries the information about a Scheduled SQL job.
10880
11432
 
10881
11433
  @param headers: map
10882
11434
  @param runtime: runtime options for this request RuntimeOptions
@@ -10912,7 +11464,7 @@ class Client(OpenApiClient):
10912
11464
  runtime: util_models.RuntimeOptions,
10913
11465
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10914
11466
  """
10915
- @summary 查看定时SQL任务
11467
+ @summary Queries the information about a Scheduled SQL job.
10916
11468
 
10917
11469
  @param headers: map
10918
11470
  @param runtime: runtime options for this request RuntimeOptions
@@ -10946,7 +11498,7 @@ class Client(OpenApiClient):
10946
11498
  scheduled_sqlname: str,
10947
11499
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10948
11500
  """
10949
- @summary 查看定时SQL任务
11501
+ @summary Queries the information about a Scheduled SQL job.
10950
11502
 
10951
11503
  @return: GetScheduledSQLResponse
10952
11504
  """
@@ -10960,7 +11512,7 @@ class Client(OpenApiClient):
10960
11512
  scheduled_sqlname: str,
10961
11513
  ) -> sls_20201230_models.GetScheduledSQLResponse:
10962
11514
  """
10963
- @summary 查看定时SQL任务
11515
+ @summary Queries the information about a Scheduled SQL job.
10964
11516
 
10965
11517
  @return: GetScheduledSQLResponse
10966
11518
  """
@@ -10974,7 +11526,7 @@ class Client(OpenApiClient):
10974
11526
  runtime: util_models.RuntimeOptions,
10975
11527
  ) -> sls_20201230_models.GetSlsServiceResponse:
10976
11528
  """
10977
- @summary getSlsService
11529
+ @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.
10978
11530
 
10979
11531
  @param headers: map
10980
11532
  @param runtime: runtime options for this request RuntimeOptions
@@ -11005,7 +11557,7 @@ class Client(OpenApiClient):
11005
11557
  runtime: util_models.RuntimeOptions,
11006
11558
  ) -> sls_20201230_models.GetSlsServiceResponse:
11007
11559
  """
11008
- @summary getSlsService
11560
+ @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.
11009
11561
 
11010
11562
  @param headers: map
11011
11563
  @param runtime: runtime options for this request RuntimeOptions
@@ -11032,7 +11584,7 @@ class Client(OpenApiClient):
11032
11584
 
11033
11585
  def get_sls_service(self) -> sls_20201230_models.GetSlsServiceResponse:
11034
11586
  """
11035
- @summary getSlsService
11587
+ @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.
11036
11588
 
11037
11589
  @return: GetSlsServiceResponse
11038
11590
  """
@@ -11042,7 +11594,7 @@ class Client(OpenApiClient):
11042
11594
 
11043
11595
  async def get_sls_service_async(self) -> sls_20201230_models.GetSlsServiceResponse:
11044
11596
  """
11045
- @summary getSlsService
11597
+ @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.
11046
11598
 
11047
11599
  @return: GetSlsServiceResponse
11048
11600
  """
@@ -11057,7 +11609,7 @@ class Client(OpenApiClient):
11057
11609
  runtime: util_models.RuntimeOptions,
11058
11610
  ) -> sls_20201230_models.GetSqlInstanceResponse:
11059
11611
  """
11060
- @summary 查询独享sql实例
11612
+ @summary Queries the configurations of the Dedicated SQL feature.
11061
11613
 
11062
11614
  @param headers: map
11063
11615
  @param runtime: runtime options for this request RuntimeOptions
@@ -11092,7 +11644,7 @@ class Client(OpenApiClient):
11092
11644
  runtime: util_models.RuntimeOptions,
11093
11645
  ) -> sls_20201230_models.GetSqlInstanceResponse:
11094
11646
  """
11095
- @summary 查询独享sql实例
11647
+ @summary Queries the configurations of the Dedicated SQL feature.
11096
11648
 
11097
11649
  @param headers: map
11098
11650
  @param runtime: runtime options for this request RuntimeOptions
@@ -11125,7 +11677,7 @@ class Client(OpenApiClient):
11125
11677
  project: str,
11126
11678
  ) -> sls_20201230_models.GetSqlInstanceResponse:
11127
11679
  """
11128
- @summary 查询独享sql实例
11680
+ @summary Queries the configurations of the Dedicated SQL feature.
11129
11681
 
11130
11682
  @return: GetSqlInstanceResponse
11131
11683
  """
@@ -11138,7 +11690,7 @@ class Client(OpenApiClient):
11138
11690
  project: str,
11139
11691
  ) -> sls_20201230_models.GetSqlInstanceResponse:
11140
11692
  """
11141
- @summary 查询独享sql实例
11693
+ @summary Queries the configurations of the Dedicated SQL feature.
11142
11694
 
11143
11695
  @return: GetSqlInstanceResponse
11144
11696
  """
@@ -11154,7 +11706,7 @@ class Client(OpenApiClient):
11154
11706
  runtime: util_models.RuntimeOptions,
11155
11707
  ) -> sls_20201230_models.GetStoreViewResponse:
11156
11708
  """
11157
- @summary 查询StoreView
11709
+ @summary Queries the configurations of a dataset by using the name of the dataset.
11158
11710
 
11159
11711
  @param headers: map
11160
11712
  @param runtime: runtime options for this request RuntimeOptions
@@ -11190,7 +11742,7 @@ class Client(OpenApiClient):
11190
11742
  runtime: util_models.RuntimeOptions,
11191
11743
  ) -> sls_20201230_models.GetStoreViewResponse:
11192
11744
  """
11193
- @summary 查询StoreView
11745
+ @summary Queries the configurations of a dataset by using the name of the dataset.
11194
11746
 
11195
11747
  @param headers: map
11196
11748
  @param runtime: runtime options for this request RuntimeOptions
@@ -11224,7 +11776,7 @@ class Client(OpenApiClient):
11224
11776
  name: str,
11225
11777
  ) -> sls_20201230_models.GetStoreViewResponse:
11226
11778
  """
11227
- @summary 查询StoreView
11779
+ @summary Queries the configurations of a dataset by using the name of the dataset.
11228
11780
 
11229
11781
  @return: GetStoreViewResponse
11230
11782
  """
@@ -11238,7 +11790,7 @@ class Client(OpenApiClient):
11238
11790
  name: str,
11239
11791
  ) -> sls_20201230_models.GetStoreViewResponse:
11240
11792
  """
11241
- @summary 查询StoreView
11793
+ @summary Queries the configurations of a dataset by using the name of the dataset.
11242
11794
 
11243
11795
  @return: GetStoreViewResponse
11244
11796
  """
@@ -11254,7 +11806,7 @@ class Client(OpenApiClient):
11254
11806
  runtime: util_models.RuntimeOptions,
11255
11807
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11256
11808
  """
11257
- @summary 查询StoreView索引
11809
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11258
11810
 
11259
11811
  @param headers: map
11260
11812
  @param runtime: runtime options for this request RuntimeOptions
@@ -11290,7 +11842,7 @@ class Client(OpenApiClient):
11290
11842
  runtime: util_models.RuntimeOptions,
11291
11843
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11292
11844
  """
11293
- @summary 查询StoreView索引
11845
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11294
11846
 
11295
11847
  @param headers: map
11296
11848
  @param runtime: runtime options for this request RuntimeOptions
@@ -11324,7 +11876,7 @@ class Client(OpenApiClient):
11324
11876
  name: str,
11325
11877
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11326
11878
  """
11327
- @summary 查询StoreView索引
11879
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11328
11880
 
11329
11881
  @return: GetStoreViewIndexResponse
11330
11882
  """
@@ -11338,7 +11890,7 @@ class Client(OpenApiClient):
11338
11890
  name: str,
11339
11891
  ) -> sls_20201230_models.GetStoreViewIndexResponse:
11340
11892
  """
11341
- @summary 查询StoreView索引
11893
+ @summary Queries the indexes of a dataset by using the name of the dataset. Only datasets of the logstore type are supported.
11342
11894
 
11343
11895
  @return: GetStoreViewIndexResponse
11344
11896
  """
@@ -11354,7 +11906,7 @@ class Client(OpenApiClient):
11354
11906
  runtime: util_models.RuntimeOptions,
11355
11907
  ) -> sls_20201230_models.ListAlertsResponse:
11356
11908
  """
11357
- @summary 查询告警列表
11909
+ @summary Queries a list of alert rules in a project.
11358
11910
 
11359
11911
  @param request: ListAlertsRequest
11360
11912
  @param headers: map
@@ -11400,7 +11952,7 @@ class Client(OpenApiClient):
11400
11952
  runtime: util_models.RuntimeOptions,
11401
11953
  ) -> sls_20201230_models.ListAlertsResponse:
11402
11954
  """
11403
- @summary 查询告警列表
11955
+ @summary Queries a list of alert rules in a project.
11404
11956
 
11405
11957
  @param request: ListAlertsRequest
11406
11958
  @param headers: map
@@ -11444,7 +11996,7 @@ class Client(OpenApiClient):
11444
11996
  request: sls_20201230_models.ListAlertsRequest,
11445
11997
  ) -> sls_20201230_models.ListAlertsResponse:
11446
11998
  """
11447
- @summary 查询告警列表
11999
+ @summary Queries a list of alert rules in a project.
11448
12000
 
11449
12001
  @param request: ListAlertsRequest
11450
12002
  @return: ListAlertsResponse
@@ -11459,7 +12011,7 @@ class Client(OpenApiClient):
11459
12011
  request: sls_20201230_models.ListAlertsRequest,
11460
12012
  ) -> sls_20201230_models.ListAlertsResponse:
11461
12013
  """
11462
- @summary 查询告警列表
12014
+ @summary Queries a list of alert rules in a project.
11463
12015
 
11464
12016
  @param request: ListAlertsRequest
11465
12017
  @return: ListAlertsResponse
@@ -11805,6 +12357,8 @@ class Client(OpenApiClient):
11805
12357
  """
11806
12358
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11807
12359
 
12360
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12361
+
11808
12362
  @param request: ListCollectionPoliciesRequest
11809
12363
  @param headers: map
11810
12364
  @param runtime: runtime options for this request RuntimeOptions
@@ -11855,6 +12409,8 @@ class Client(OpenApiClient):
11855
12409
  """
11856
12410
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11857
12411
 
12412
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12413
+
11858
12414
  @param request: ListCollectionPoliciesRequest
11859
12415
  @param headers: map
11860
12416
  @param runtime: runtime options for this request RuntimeOptions
@@ -11903,6 +12459,8 @@ class Client(OpenApiClient):
11903
12459
  """
11904
12460
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11905
12461
 
12462
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12463
+
11906
12464
  @param request: ListCollectionPoliciesRequest
11907
12465
  @return: ListCollectionPoliciesResponse
11908
12466
  """
@@ -11917,6 +12475,8 @@ class Client(OpenApiClient):
11917
12475
  """
11918
12476
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11919
12477
 
12478
+ @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
12479
+
11920
12480
  @param request: ListCollectionPoliciesRequest
11921
12481
  @return: ListCollectionPoliciesResponse
11922
12482
  """
@@ -13194,25 +13754,157 @@ class Client(OpenApiClient):
13194
13754
  async def list_machines_with_options_async(
13195
13755
  self,
13196
13756
  project: str,
13197
- machine_group: str,
13198
- request: sls_20201230_models.ListMachinesRequest,
13757
+ machine_group: str,
13758
+ request: sls_20201230_models.ListMachinesRequest,
13759
+ headers: Dict[str, str],
13760
+ runtime: util_models.RuntimeOptions,
13761
+ ) -> sls_20201230_models.ListMachinesResponse:
13762
+ """
13763
+ @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13764
+
13765
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13766
+
13767
+ @param request: ListMachinesRequest
13768
+ @param headers: map
13769
+ @param runtime: runtime options for this request RuntimeOptions
13770
+ @return: ListMachinesResponse
13771
+ """
13772
+ UtilClient.validate_model(request)
13773
+ host_map = {}
13774
+ host_map['project'] = project
13775
+ query = {}
13776
+ if not UtilClient.is_unset(request.offset):
13777
+ query['offset'] = request.offset
13778
+ if not UtilClient.is_unset(request.size):
13779
+ query['size'] = request.size
13780
+ req = open_api_models.OpenApiRequest(
13781
+ host_map=host_map,
13782
+ headers=headers,
13783
+ query=OpenApiUtilClient.query(query)
13784
+ )
13785
+ params = open_api_models.Params(
13786
+ action='ListMachines',
13787
+ version='2020-12-30',
13788
+ protocol='HTTPS',
13789
+ pathname=f'/machinegroups/{machine_group}/machines',
13790
+ method='GET',
13791
+ auth_type='AK',
13792
+ style='ROA',
13793
+ req_body_type='json',
13794
+ body_type='json'
13795
+ )
13796
+ return TeaCore.from_map(
13797
+ sls_20201230_models.ListMachinesResponse(),
13798
+ await self.execute_async(params, req, runtime)
13799
+ )
13800
+
13801
+ def list_machines(
13802
+ self,
13803
+ project: str,
13804
+ machine_group: str,
13805
+ request: sls_20201230_models.ListMachinesRequest,
13806
+ ) -> sls_20201230_models.ListMachinesResponse:
13807
+ """
13808
+ @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13809
+
13810
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13811
+
13812
+ @param request: ListMachinesRequest
13813
+ @return: ListMachinesResponse
13814
+ """
13815
+ runtime = util_models.RuntimeOptions()
13816
+ headers = {}
13817
+ return self.list_machines_with_options(project, machine_group, request, headers, runtime)
13818
+
13819
+ async def list_machines_async(
13820
+ self,
13821
+ project: str,
13822
+ machine_group: str,
13823
+ request: sls_20201230_models.ListMachinesRequest,
13824
+ ) -> sls_20201230_models.ListMachinesResponse:
13825
+ """
13826
+ @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13827
+
13828
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13829
+
13830
+ @param request: ListMachinesRequest
13831
+ @return: ListMachinesResponse
13832
+ """
13833
+ runtime = util_models.RuntimeOptions()
13834
+ headers = {}
13835
+ return await self.list_machines_with_options_async(project, machine_group, request, headers, runtime)
13836
+
13837
+ def list_metric_stores_with_options(
13838
+ self,
13839
+ project: str,
13840
+ request: sls_20201230_models.ListMetricStoresRequest,
13841
+ headers: Dict[str, str],
13842
+ runtime: util_models.RuntimeOptions,
13843
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13844
+ """
13845
+ @summary 查询时序库
13846
+
13847
+ @param request: ListMetricStoresRequest
13848
+ @param headers: map
13849
+ @param runtime: runtime options for this request RuntimeOptions
13850
+ @return: ListMetricStoresResponse
13851
+ """
13852
+ UtilClient.validate_model(request)
13853
+ host_map = {}
13854
+ host_map['project'] = project
13855
+ query = {}
13856
+ if not UtilClient.is_unset(request.mode):
13857
+ query['mode'] = request.mode
13858
+ if not UtilClient.is_unset(request.name):
13859
+ query['name'] = request.name
13860
+ if not UtilClient.is_unset(request.offset):
13861
+ query['offset'] = request.offset
13862
+ if not UtilClient.is_unset(request.size):
13863
+ query['size'] = request.size
13864
+ req = open_api_models.OpenApiRequest(
13865
+ host_map=host_map,
13866
+ headers=headers,
13867
+ query=OpenApiUtilClient.query(query)
13868
+ )
13869
+ params = open_api_models.Params(
13870
+ action='ListMetricStores',
13871
+ version='2020-12-30',
13872
+ protocol='HTTPS',
13873
+ pathname=f'/metricstores',
13874
+ method='GET',
13875
+ auth_type='AK',
13876
+ style='ROA',
13877
+ req_body_type='none',
13878
+ body_type='json'
13879
+ )
13880
+ return TeaCore.from_map(
13881
+ sls_20201230_models.ListMetricStoresResponse(),
13882
+ self.execute(params, req, runtime)
13883
+ )
13884
+
13885
+ async def list_metric_stores_with_options_async(
13886
+ self,
13887
+ project: str,
13888
+ request: sls_20201230_models.ListMetricStoresRequest,
13199
13889
  headers: Dict[str, str],
13200
13890
  runtime: util_models.RuntimeOptions,
13201
- ) -> sls_20201230_models.ListMachinesResponse:
13891
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13202
13892
  """
13203
- @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13893
+ @summary 查询时序库
13204
13894
 
13205
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13206
-
13207
- @param request: ListMachinesRequest
13895
+ @param request: ListMetricStoresRequest
13208
13896
  @param headers: map
13209
13897
  @param runtime: runtime options for this request RuntimeOptions
13210
- @return: ListMachinesResponse
13898
+ @return: ListMetricStoresResponse
13211
13899
  """
13212
13900
  UtilClient.validate_model(request)
13213
13901
  host_map = {}
13214
13902
  host_map['project'] = project
13215
13903
  query = {}
13904
+ if not UtilClient.is_unset(request.mode):
13905
+ query['mode'] = request.mode
13906
+ if not UtilClient.is_unset(request.name):
13907
+ query['name'] = request.name
13216
13908
  if not UtilClient.is_unset(request.offset):
13217
13909
  query['offset'] = request.offset
13218
13910
  if not UtilClient.is_unset(request.size):
@@ -13223,56 +13915,50 @@ class Client(OpenApiClient):
13223
13915
  query=OpenApiUtilClient.query(query)
13224
13916
  )
13225
13917
  params = open_api_models.Params(
13226
- action='ListMachines',
13918
+ action='ListMetricStores',
13227
13919
  version='2020-12-30',
13228
13920
  protocol='HTTPS',
13229
- pathname=f'/machinegroups/{machine_group}/machines',
13921
+ pathname=f'/metricstores',
13230
13922
  method='GET',
13231
13923
  auth_type='AK',
13232
13924
  style='ROA',
13233
- req_body_type='json',
13925
+ req_body_type='none',
13234
13926
  body_type='json'
13235
13927
  )
13236
13928
  return TeaCore.from_map(
13237
- sls_20201230_models.ListMachinesResponse(),
13929
+ sls_20201230_models.ListMetricStoresResponse(),
13238
13930
  await self.execute_async(params, req, runtime)
13239
13931
  )
13240
13932
 
13241
- def list_machines(
13933
+ def list_metric_stores(
13242
13934
  self,
13243
13935
  project: str,
13244
- machine_group: str,
13245
- request: sls_20201230_models.ListMachinesRequest,
13246
- ) -> sls_20201230_models.ListMachinesResponse:
13936
+ request: sls_20201230_models.ListMetricStoresRequest,
13937
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13247
13938
  """
13248
- @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13249
-
13250
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13939
+ @summary 查询时序库
13251
13940
 
13252
- @param request: ListMachinesRequest
13253
- @return: ListMachinesResponse
13941
+ @param request: ListMetricStoresRequest
13942
+ @return: ListMetricStoresResponse
13254
13943
  """
13255
13944
  runtime = util_models.RuntimeOptions()
13256
13945
  headers = {}
13257
- return self.list_machines_with_options(project, machine_group, request, headers, runtime)
13946
+ return self.list_metric_stores_with_options(project, request, headers, runtime)
13258
13947
 
13259
- async def list_machines_async(
13948
+ async def list_metric_stores_async(
13260
13949
  self,
13261
13950
  project: str,
13262
- machine_group: str,
13263
- request: sls_20201230_models.ListMachinesRequest,
13264
- ) -> sls_20201230_models.ListMachinesResponse:
13951
+ request: sls_20201230_models.ListMetricStoresRequest,
13952
+ ) -> sls_20201230_models.ListMetricStoresResponse:
13265
13953
  """
13266
- @summary Queries a list of machines that are connected to Simple Log Service in a specified machine group.
13267
-
13268
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13954
+ @summary 查询时序库
13269
13955
 
13270
- @param request: ListMachinesRequest
13271
- @return: ListMachinesResponse
13956
+ @param request: ListMetricStoresRequest
13957
+ @return: ListMetricStoresResponse
13272
13958
  """
13273
13959
  runtime = util_models.RuntimeOptions()
13274
13960
  headers = {}
13275
- return await self.list_machines_with_options_async(project, machine_group, request, headers, runtime)
13961
+ return await self.list_metric_stores_with_options_async(project, request, headers, runtime)
13276
13962
 
13277
13963
  def list_ossexports_with_options(
13278
13964
  self,
@@ -13526,7 +14212,7 @@ class Client(OpenApiClient):
13526
14212
  runtime: util_models.RuntimeOptions,
13527
14213
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13528
14214
  """
13529
- @summary 列出oss导入任务
14215
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13530
14216
 
13531
14217
  @param request: ListOSSIngestionsRequest
13532
14218
  @param headers: map
@@ -13572,7 +14258,7 @@ class Client(OpenApiClient):
13572
14258
  runtime: util_models.RuntimeOptions,
13573
14259
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13574
14260
  """
13575
- @summary 列出oss导入任务
14261
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13576
14262
 
13577
14263
  @param request: ListOSSIngestionsRequest
13578
14264
  @param headers: map
@@ -13616,7 +14302,7 @@ class Client(OpenApiClient):
13616
14302
  request: sls_20201230_models.ListOSSIngestionsRequest,
13617
14303
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13618
14304
  """
13619
- @summary 列出oss导入任务
14305
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13620
14306
 
13621
14307
  @param request: ListOSSIngestionsRequest
13622
14308
  @return: ListOSSIngestionsResponse
@@ -13631,7 +14317,7 @@ class Client(OpenApiClient):
13631
14317
  request: sls_20201230_models.ListOSSIngestionsRequest,
13632
14318
  ) -> sls_20201230_models.ListOSSIngestionsResponse:
13633
14319
  """
13634
- @summary 列出oss导入任务
14320
+ @summary Queries a list of Object Storage Service (OSS) data import jobs in a project.
13635
14321
 
13636
14322
  @param request: ListOSSIngestionsRequest
13637
14323
  @return: ListOSSIngestionsResponse
@@ -13910,7 +14596,7 @@ class Client(OpenApiClient):
13910
14596
  runtime: util_models.RuntimeOptions,
13911
14597
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13912
14598
  """
13913
- @summary 列举定时SQL任务
14599
+ @summary Queries a list of Scheduled SQL jobs in a project.
13914
14600
 
13915
14601
  @param request: ListScheduledSQLsRequest
13916
14602
  @param headers: map
@@ -13956,7 +14642,7 @@ class Client(OpenApiClient):
13956
14642
  runtime: util_models.RuntimeOptions,
13957
14643
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
13958
14644
  """
13959
- @summary 列举定时SQL任务
14645
+ @summary Queries a list of Scheduled SQL jobs in a project.
13960
14646
 
13961
14647
  @param request: ListScheduledSQLsRequest
13962
14648
  @param headers: map
@@ -14000,7 +14686,7 @@ class Client(OpenApiClient):
14000
14686
  request: sls_20201230_models.ListScheduledSQLsRequest,
14001
14687
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
14002
14688
  """
14003
- @summary 列举定时SQL任务
14689
+ @summary Queries a list of Scheduled SQL jobs in a project.
14004
14690
 
14005
14691
  @param request: ListScheduledSQLsRequest
14006
14692
  @return: ListScheduledSQLsResponse
@@ -14015,7 +14701,7 @@ class Client(OpenApiClient):
14015
14701
  request: sls_20201230_models.ListScheduledSQLsRequest,
14016
14702
  ) -> sls_20201230_models.ListScheduledSQLsResponse:
14017
14703
  """
14018
- @summary 列举定时SQL任务
14704
+ @summary Queries a list of Scheduled SQL jobs in a project.
14019
14705
 
14020
14706
  @param request: ListScheduledSQLsRequest
14021
14707
  @return: ListScheduledSQLsResponse
@@ -14132,7 +14818,7 @@ class Client(OpenApiClient):
14132
14818
  runtime: util_models.RuntimeOptions,
14133
14819
  ) -> sls_20201230_models.ListStoreViewsResponse:
14134
14820
  """
14135
- @summary 查询StoreView列表
14821
+ @summary Queries datasets in a project.
14136
14822
 
14137
14823
  @param request: ListStoreViewsRequest
14138
14824
  @param headers: map
@@ -14180,7 +14866,7 @@ class Client(OpenApiClient):
14180
14866
  runtime: util_models.RuntimeOptions,
14181
14867
  ) -> sls_20201230_models.ListStoreViewsResponse:
14182
14868
  """
14183
- @summary 查询StoreView列表
14869
+ @summary Queries datasets in a project.
14184
14870
 
14185
14871
  @param request: ListStoreViewsRequest
14186
14872
  @param headers: map
@@ -14226,7 +14912,7 @@ class Client(OpenApiClient):
14226
14912
  request: sls_20201230_models.ListStoreViewsRequest,
14227
14913
  ) -> sls_20201230_models.ListStoreViewsResponse:
14228
14914
  """
14229
- @summary 查询StoreView列表
14915
+ @summary Queries datasets in a project.
14230
14916
 
14231
14917
  @param request: ListStoreViewsRequest
14232
14918
  @return: ListStoreViewsResponse
@@ -14241,7 +14927,7 @@ class Client(OpenApiClient):
14241
14927
  request: sls_20201230_models.ListStoreViewsRequest,
14242
14928
  ) -> sls_20201230_models.ListStoreViewsResponse:
14243
14929
  """
14244
- @summary 查询StoreView列表
14930
+ @summary Queries datasets in a project.
14245
14931
 
14246
14932
  @param request: ListStoreViewsRequest
14247
14933
  @return: ListStoreViewsResponse
@@ -14532,7 +15218,7 @@ class Client(OpenApiClient):
14532
15218
  runtime: util_models.RuntimeOptions,
14533
15219
  ) -> sls_20201230_models.OpenSlsServiceResponse:
14534
15220
  """
14535
- @summary openSlsService
15221
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14536
15222
 
14537
15223
  @param headers: map
14538
15224
  @param runtime: runtime options for this request RuntimeOptions
@@ -14563,7 +15249,7 @@ class Client(OpenApiClient):
14563
15249
  runtime: util_models.RuntimeOptions,
14564
15250
  ) -> sls_20201230_models.OpenSlsServiceResponse:
14565
15251
  """
14566
- @summary openSlsService
15252
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14567
15253
 
14568
15254
  @param headers: map
14569
15255
  @param runtime: runtime options for this request RuntimeOptions
@@ -14590,7 +15276,7 @@ class Client(OpenApiClient):
14590
15276
 
14591
15277
  def open_sls_service(self) -> sls_20201230_models.OpenSlsServiceResponse:
14592
15278
  """
14593
- @summary openSlsService
15279
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14594
15280
 
14595
15281
  @return: OpenSlsServiceResponse
14596
15282
  """
@@ -14600,7 +15286,7 @@ class Client(OpenApiClient):
14600
15286
 
14601
15287
  async def open_sls_service_async(self) -> sls_20201230_models.OpenSlsServiceResponse:
14602
15288
  """
14603
- @summary openSlsService
15289
+ @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
14604
15290
 
14605
15291
  @return: OpenSlsServiceResponse
14606
15292
  """
@@ -15144,128 +15830,6 @@ class Client(OpenApiClient):
15144
15830
  headers = {}
15145
15831
  return await self.put_webtracking_with_options_async(project, logstore_name, request, headers, runtime)
15146
15832
 
15147
- def query_mlservice_results_with_options(
15148
- self,
15149
- service_name: str,
15150
- request: sls_20201230_models.QueryMLServiceResultsRequest,
15151
- headers: Dict[str, str],
15152
- runtime: util_models.RuntimeOptions,
15153
- ) -> sls_20201230_models.QueryMLServiceResultsResponse:
15154
- """
15155
- @deprecated OpenAPI QueryMLServiceResults is deprecated
15156
-
15157
- @summary queryMLServiceResults
15158
-
15159
- @param request: QueryMLServiceResultsRequest
15160
- @param headers: map
15161
- @param runtime: runtime options for this request RuntimeOptions
15162
- @return: QueryMLServiceResultsResponse
15163
- Deprecated
15164
- """
15165
- UtilClient.validate_model(request)
15166
- query = {}
15167
- if not UtilClient.is_unset(request.allow_builtin):
15168
- query['allowBuiltin'] = request.allow_builtin
15169
- req = open_api_models.OpenApiRequest(
15170
- headers=headers,
15171
- query=OpenApiUtilClient.query(query),
15172
- body=OpenApiUtilClient.parse_to_map(request.body)
15173
- )
15174
- params = open_api_models.Params(
15175
- action='QueryMLServiceResults',
15176
- version='2020-12-30',
15177
- protocol='HTTPS',
15178
- pathname=f'/ml/service/{service_name}/analysis',
15179
- method='POST',
15180
- auth_type='AK',
15181
- style='ROA',
15182
- req_body_type='json',
15183
- body_type='json'
15184
- )
15185
- return TeaCore.from_map(
15186
- sls_20201230_models.QueryMLServiceResultsResponse(),
15187
- self.execute(params, req, runtime)
15188
- )
15189
-
15190
- async def query_mlservice_results_with_options_async(
15191
- self,
15192
- service_name: str,
15193
- request: sls_20201230_models.QueryMLServiceResultsRequest,
15194
- headers: Dict[str, str],
15195
- runtime: util_models.RuntimeOptions,
15196
- ) -> sls_20201230_models.QueryMLServiceResultsResponse:
15197
- """
15198
- @deprecated OpenAPI QueryMLServiceResults is deprecated
15199
-
15200
- @summary queryMLServiceResults
15201
-
15202
- @param request: QueryMLServiceResultsRequest
15203
- @param headers: map
15204
- @param runtime: runtime options for this request RuntimeOptions
15205
- @return: QueryMLServiceResultsResponse
15206
- Deprecated
15207
- """
15208
- UtilClient.validate_model(request)
15209
- query = {}
15210
- if not UtilClient.is_unset(request.allow_builtin):
15211
- query['allowBuiltin'] = request.allow_builtin
15212
- req = open_api_models.OpenApiRequest(
15213
- headers=headers,
15214
- query=OpenApiUtilClient.query(query),
15215
- body=OpenApiUtilClient.parse_to_map(request.body)
15216
- )
15217
- params = open_api_models.Params(
15218
- action='QueryMLServiceResults',
15219
- version='2020-12-30',
15220
- protocol='HTTPS',
15221
- pathname=f'/ml/service/{service_name}/analysis',
15222
- method='POST',
15223
- auth_type='AK',
15224
- style='ROA',
15225
- req_body_type='json',
15226
- body_type='json'
15227
- )
15228
- return TeaCore.from_map(
15229
- sls_20201230_models.QueryMLServiceResultsResponse(),
15230
- await self.execute_async(params, req, runtime)
15231
- )
15232
-
15233
- def query_mlservice_results(
15234
- self,
15235
- service_name: str,
15236
- request: sls_20201230_models.QueryMLServiceResultsRequest,
15237
- ) -> sls_20201230_models.QueryMLServiceResultsResponse:
15238
- """
15239
- @deprecated OpenAPI QueryMLServiceResults is deprecated
15240
-
15241
- @summary queryMLServiceResults
15242
-
15243
- @param request: QueryMLServiceResultsRequest
15244
- @return: QueryMLServiceResultsResponse
15245
- Deprecated
15246
- """
15247
- runtime = util_models.RuntimeOptions()
15248
- headers = {}
15249
- return self.query_mlservice_results_with_options(service_name, request, headers, runtime)
15250
-
15251
- async def query_mlservice_results_async(
15252
- self,
15253
- service_name: str,
15254
- request: sls_20201230_models.QueryMLServiceResultsRequest,
15255
- ) -> sls_20201230_models.QueryMLServiceResultsResponse:
15256
- """
15257
- @deprecated OpenAPI QueryMLServiceResults is deprecated
15258
-
15259
- @summary queryMLServiceResults
15260
-
15261
- @param request: QueryMLServiceResultsRequest
15262
- @return: QueryMLServiceResultsResponse
15263
- Deprecated
15264
- """
15265
- runtime = util_models.RuntimeOptions()
15266
- headers = {}
15267
- return await self.query_mlservice_results_with_options_async(service_name, request, headers, runtime)
15268
-
15269
15833
  def refresh_token_with_options(
15270
15834
  self,
15271
15835
  request: sls_20201230_models.RefreshTokenRequest,
@@ -15936,7 +16500,7 @@ class Client(OpenApiClient):
15936
16500
  runtime: util_models.RuntimeOptions,
15937
16501
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15938
16502
  """
15939
- @summary 启动OSS导入任务
16503
+ @summary Starts an Object Storage Service (OSS) data import job.
15940
16504
 
15941
16505
  @param headers: map
15942
16506
  @param runtime: runtime options for this request RuntimeOptions
@@ -15972,7 +16536,7 @@ class Client(OpenApiClient):
15972
16536
  runtime: util_models.RuntimeOptions,
15973
16537
  ) -> sls_20201230_models.StartOSSIngestionResponse:
15974
16538
  """
15975
- @summary 启动OSS导入任务
16539
+ @summary Starts an Object Storage Service (OSS) data import job.
15976
16540
 
15977
16541
  @param headers: map
15978
16542
  @param runtime: runtime options for this request RuntimeOptions
@@ -16006,7 +16570,7 @@ class Client(OpenApiClient):
16006
16570
  oss_ingestion_name: str,
16007
16571
  ) -> sls_20201230_models.StartOSSIngestionResponse:
16008
16572
  """
16009
- @summary 启动OSS导入任务
16573
+ @summary Starts an Object Storage Service (OSS) data import job.
16010
16574
 
16011
16575
  @return: StartOSSIngestionResponse
16012
16576
  """
@@ -16020,7 +16584,7 @@ class Client(OpenApiClient):
16020
16584
  oss_ingestion_name: str,
16021
16585
  ) -> sls_20201230_models.StartOSSIngestionResponse:
16022
16586
  """
16023
- @summary 启动OSS导入任务
16587
+ @summary Starts an Object Storage Service (OSS) data import job.
16024
16588
 
16025
16589
  @return: StartOSSIngestionResponse
16026
16590
  """
@@ -16336,7 +16900,7 @@ class Client(OpenApiClient):
16336
16900
  runtime: util_models.RuntimeOptions,
16337
16901
  ) -> sls_20201230_models.StopOSSIngestionResponse:
16338
16902
  """
16339
- @summary 停止OSS导入任务
16903
+ @summary Stops an Object Storage Service (OSS) data import job.
16340
16904
 
16341
16905
  @param headers: map
16342
16906
  @param runtime: runtime options for this request RuntimeOptions
@@ -16372,7 +16936,7 @@ class Client(OpenApiClient):
16372
16936
  runtime: util_models.RuntimeOptions,
16373
16937
  ) -> sls_20201230_models.StopOSSIngestionResponse:
16374
16938
  """
16375
- @summary 停止OSS导入任务
16939
+ @summary Stops an Object Storage Service (OSS) data import job.
16376
16940
 
16377
16941
  @param headers: map
16378
16942
  @param runtime: runtime options for this request RuntimeOptions
@@ -16406,7 +16970,7 @@ class Client(OpenApiClient):
16406
16970
  oss_ingestion_name: str,
16407
16971
  ) -> sls_20201230_models.StopOSSIngestionResponse:
16408
16972
  """
16409
- @summary 停止OSS导入任务
16973
+ @summary Stops an Object Storage Service (OSS) data import job.
16410
16974
 
16411
16975
  @return: StopOSSIngestionResponse
16412
16976
  """
@@ -16420,7 +16984,7 @@ class Client(OpenApiClient):
16420
16984
  oss_ingestion_name: str,
16421
16985
  ) -> sls_20201230_models.StopOSSIngestionResponse:
16422
16986
  """
16423
- @summary 停止OSS导入任务
16987
+ @summary Stops an Object Storage Service (OSS) data import job.
16424
16988
 
16425
16989
  @return: StopOSSIngestionResponse
16426
16990
  """
@@ -16757,7 +17321,7 @@ class Client(OpenApiClient):
16757
17321
  runtime: util_models.RuntimeOptions,
16758
17322
  ) -> sls_20201230_models.UpdateAlertResponse:
16759
17323
  """
16760
- @summary 更新告警
17324
+ @summary Updates an alert rule.
16761
17325
 
16762
17326
  @param request: UpdateAlertRequest
16763
17327
  @param headers: map
@@ -16806,7 +17370,7 @@ class Client(OpenApiClient):
16806
17370
  runtime: util_models.RuntimeOptions,
16807
17371
  ) -> sls_20201230_models.UpdateAlertResponse:
16808
17372
  """
16809
- @summary 更新告警
17373
+ @summary Updates an alert rule.
16810
17374
 
16811
17375
  @param request: UpdateAlertRequest
16812
17376
  @param headers: map
@@ -16853,7 +17417,7 @@ class Client(OpenApiClient):
16853
17417
  request: sls_20201230_models.UpdateAlertRequest,
16854
17418
  ) -> sls_20201230_models.UpdateAlertResponse:
16855
17419
  """
16856
- @summary 更新告警
17420
+ @summary Updates an alert rule.
16857
17421
 
16858
17422
  @param request: UpdateAlertRequest
16859
17423
  @return: UpdateAlertResponse
@@ -16869,7 +17433,7 @@ class Client(OpenApiClient):
16869
17433
  request: sls_20201230_models.UpdateAlertRequest,
16870
17434
  ) -> sls_20201230_models.UpdateAlertResponse:
16871
17435
  """
16872
- @summary 更新告警
17436
+ @summary Updates an alert rule.
16873
17437
 
16874
17438
  @param request: UpdateAlertRequest
16875
17439
  @return: UpdateAlertResponse
@@ -17662,25 +18226,10 @@ class Client(OpenApiClient):
17662
18226
  UtilClient.validate_model(request)
17663
18227
  host_map = {}
17664
18228
  host_map['project'] = project
17665
- body = {}
17666
- if not UtilClient.is_unset(request.keys):
17667
- body['keys'] = request.keys
17668
- if not UtilClient.is_unset(request.line):
17669
- body['line'] = request.line
17670
- if not UtilClient.is_unset(request.log_reduce):
17671
- body['log_reduce'] = request.log_reduce
17672
- if not UtilClient.is_unset(request.log_reduce_black_list):
17673
- body['log_reduce_black_list'] = request.log_reduce_black_list
17674
- if not UtilClient.is_unset(request.log_reduce_white_list):
17675
- body['log_reduce_white_list'] = request.log_reduce_white_list
17676
- if not UtilClient.is_unset(request.max_text_len):
17677
- body['max_text_len'] = request.max_text_len
17678
- if not UtilClient.is_unset(request.ttl):
17679
- body['ttl'] = request.ttl
17680
18229
  req = open_api_models.OpenApiRequest(
17681
18230
  host_map=host_map,
17682
18231
  headers=headers,
17683
- body=OpenApiUtilClient.parse_to_map(body)
18232
+ body=OpenApiUtilClient.parse_to_map(request.body)
17684
18233
  )
17685
18234
  params = open_api_models.Params(
17686
18235
  action='UpdateIndex',
@@ -17720,25 +18269,10 @@ class Client(OpenApiClient):
17720
18269
  UtilClient.validate_model(request)
17721
18270
  host_map = {}
17722
18271
  host_map['project'] = project
17723
- body = {}
17724
- if not UtilClient.is_unset(request.keys):
17725
- body['keys'] = request.keys
17726
- if not UtilClient.is_unset(request.line):
17727
- body['line'] = request.line
17728
- if not UtilClient.is_unset(request.log_reduce):
17729
- body['log_reduce'] = request.log_reduce
17730
- if not UtilClient.is_unset(request.log_reduce_black_list):
17731
- body['log_reduce_black_list'] = request.log_reduce_black_list
17732
- if not UtilClient.is_unset(request.log_reduce_white_list):
17733
- body['log_reduce_white_list'] = request.log_reduce_white_list
17734
- if not UtilClient.is_unset(request.max_text_len):
17735
- body['max_text_len'] = request.max_text_len
17736
- if not UtilClient.is_unset(request.ttl):
17737
- body['ttl'] = request.ttl
17738
18272
  req = open_api_models.OpenApiRequest(
17739
18273
  host_map=host_map,
17740
18274
  headers=headers,
17741
- body=OpenApiUtilClient.parse_to_map(body)
18275
+ body=OpenApiUtilClient.parse_to_map(request.body)
17742
18276
  )
17743
18277
  params = open_api_models.Params(
17744
18278
  action='UpdateIndex',
@@ -17836,6 +18370,8 @@ class Client(OpenApiClient):
17836
18370
  body['maxSplitShard'] = request.max_split_shard
17837
18371
  if not UtilClient.is_unset(request.mode):
17838
18372
  body['mode'] = request.mode
18373
+ if not UtilClient.is_unset(request.processor_id):
18374
+ body['processorId'] = request.processor_id
17839
18375
  if not UtilClient.is_unset(request.shard_count):
17840
18376
  body['shardCount'] = request.shard_count
17841
18377
  if not UtilClient.is_unset(request.telemetry_type):
@@ -17905,6 +18441,8 @@ class Client(OpenApiClient):
17905
18441
  body['maxSplitShard'] = request.max_split_shard
17906
18442
  if not UtilClient.is_unset(request.mode):
17907
18443
  body['mode'] = request.mode
18444
+ if not UtilClient.is_unset(request.processor_id):
18445
+ body['processorId'] = request.processor_id
17908
18446
  if not UtilClient.is_unset(request.shard_count):
17909
18447
  body['shardCount'] = request.shard_count
17910
18448
  if not UtilClient.is_unset(request.telemetry_type):
@@ -18636,6 +19174,136 @@ class Client(OpenApiClient):
18636
19174
  headers = {}
18637
19175
  return await self.update_machine_group_machine_with_options_async(project, machine_group, request, headers, runtime)
18638
19176
 
19177
+ def update_metric_store_with_options(
19178
+ self,
19179
+ project: str,
19180
+ name: str,
19181
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19182
+ headers: Dict[str, str],
19183
+ runtime: util_models.RuntimeOptions,
19184
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19185
+ """
19186
+ @summary 更新时序库
19187
+
19188
+ @param request: UpdateMetricStoreRequest
19189
+ @param headers: map
19190
+ @param runtime: runtime options for this request RuntimeOptions
19191
+ @return: UpdateMetricStoreResponse
19192
+ """
19193
+ UtilClient.validate_model(request)
19194
+ host_map = {}
19195
+ host_map['project'] = project
19196
+ body = {}
19197
+ if not UtilClient.is_unset(request.auto_split):
19198
+ body['autoSplit'] = request.auto_split
19199
+ if not UtilClient.is_unset(request.max_split_shard):
19200
+ body['maxSplitShard'] = request.max_split_shard
19201
+ if not UtilClient.is_unset(request.mode):
19202
+ body['mode'] = request.mode
19203
+ if not UtilClient.is_unset(request.ttl):
19204
+ body['ttl'] = request.ttl
19205
+ req = open_api_models.OpenApiRequest(
19206
+ host_map=host_map,
19207
+ headers=headers,
19208
+ body=OpenApiUtilClient.parse_to_map(body)
19209
+ )
19210
+ params = open_api_models.Params(
19211
+ action='UpdateMetricStore',
19212
+ version='2020-12-30',
19213
+ protocol='HTTPS',
19214
+ pathname=f'/metricstores/{name}',
19215
+ method='PUT',
19216
+ auth_type='AK',
19217
+ style='ROA',
19218
+ req_body_type='json',
19219
+ body_type='none'
19220
+ )
19221
+ return TeaCore.from_map(
19222
+ sls_20201230_models.UpdateMetricStoreResponse(),
19223
+ self.execute(params, req, runtime)
19224
+ )
19225
+
19226
+ async def update_metric_store_with_options_async(
19227
+ self,
19228
+ project: str,
19229
+ name: str,
19230
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19231
+ headers: Dict[str, str],
19232
+ runtime: util_models.RuntimeOptions,
19233
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19234
+ """
19235
+ @summary 更新时序库
19236
+
19237
+ @param request: UpdateMetricStoreRequest
19238
+ @param headers: map
19239
+ @param runtime: runtime options for this request RuntimeOptions
19240
+ @return: UpdateMetricStoreResponse
19241
+ """
19242
+ UtilClient.validate_model(request)
19243
+ host_map = {}
19244
+ host_map['project'] = project
19245
+ body = {}
19246
+ if not UtilClient.is_unset(request.auto_split):
19247
+ body['autoSplit'] = request.auto_split
19248
+ if not UtilClient.is_unset(request.max_split_shard):
19249
+ body['maxSplitShard'] = request.max_split_shard
19250
+ if not UtilClient.is_unset(request.mode):
19251
+ body['mode'] = request.mode
19252
+ if not UtilClient.is_unset(request.ttl):
19253
+ body['ttl'] = request.ttl
19254
+ req = open_api_models.OpenApiRequest(
19255
+ host_map=host_map,
19256
+ headers=headers,
19257
+ body=OpenApiUtilClient.parse_to_map(body)
19258
+ )
19259
+ params = open_api_models.Params(
19260
+ action='UpdateMetricStore',
19261
+ version='2020-12-30',
19262
+ protocol='HTTPS',
19263
+ pathname=f'/metricstores/{name}',
19264
+ method='PUT',
19265
+ auth_type='AK',
19266
+ style='ROA',
19267
+ req_body_type='json',
19268
+ body_type='none'
19269
+ )
19270
+ return TeaCore.from_map(
19271
+ sls_20201230_models.UpdateMetricStoreResponse(),
19272
+ await self.execute_async(params, req, runtime)
19273
+ )
19274
+
19275
+ def update_metric_store(
19276
+ self,
19277
+ project: str,
19278
+ name: str,
19279
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19280
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19281
+ """
19282
+ @summary 更新时序库
19283
+
19284
+ @param request: UpdateMetricStoreRequest
19285
+ @return: UpdateMetricStoreResponse
19286
+ """
19287
+ runtime = util_models.RuntimeOptions()
19288
+ headers = {}
19289
+ return self.update_metric_store_with_options(project, name, request, headers, runtime)
19290
+
19291
+ async def update_metric_store_async(
19292
+ self,
19293
+ project: str,
19294
+ name: str,
19295
+ request: sls_20201230_models.UpdateMetricStoreRequest,
19296
+ ) -> sls_20201230_models.UpdateMetricStoreResponse:
19297
+ """
19298
+ @summary 更新时序库
19299
+
19300
+ @param request: UpdateMetricStoreRequest
19301
+ @return: UpdateMetricStoreResponse
19302
+ """
19303
+ runtime = util_models.RuntimeOptions()
19304
+ headers = {}
19305
+ return await self.update_metric_store_with_options_async(project, name, request, headers, runtime)
19306
+
18639
19307
  def update_metric_store_metering_mode_with_options(
18640
19308
  self,
18641
19309
  project: str,
@@ -19286,6 +19954,13 @@ class Client(OpenApiClient):
19286
19954
 
19287
19955
  @description ### Usage notes
19288
19956
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19957
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19958
+ 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).
19959
+ ### Authentication resources
19960
+ 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.
19961
+ |Action|Resource|
19962
+ |:---|:---|
19963
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
19289
19964
 
19290
19965
  @param request: UpdateProjectRequest
19291
19966
  @param headers: map
@@ -19331,6 +20006,13 @@ class Client(OpenApiClient):
19331
20006
 
19332
20007
  @description ### Usage notes
19333
20008
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20009
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20010
+ 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).
20011
+ ### Authentication resources
20012
+ 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.
20013
+ |Action|Resource|
20014
+ |:---|:---|
20015
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
19334
20016
 
19335
20017
  @param request: UpdateProjectRequest
19336
20018
  @param headers: map
@@ -19374,6 +20056,13 @@ class Client(OpenApiClient):
19374
20056
 
19375
20057
  @description ### Usage notes
19376
20058
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20059
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20060
+ 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).
20061
+ ### Authentication resources
20062
+ 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.
20063
+ |Action|Resource|
20064
+ |:---|:---|
20065
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
19377
20066
 
19378
20067
  @param request: UpdateProjectRequest
19379
20068
  @return: UpdateProjectResponse
@@ -19392,6 +20081,13 @@ class Client(OpenApiClient):
19392
20081
 
19393
20082
  @description ### Usage notes
19394
20083
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20084
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20085
+ 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).
20086
+ ### Authentication resources
20087
+ 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.
20088
+ |Action|Resource|
20089
+ |:---|:---|
20090
+ |`log:UpdateProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
19395
20091
 
19396
20092
  @param request: UpdateProjectRequest
19397
20093
  @return: UpdateProjectResponse
@@ -19677,7 +20373,7 @@ class Client(OpenApiClient):
19677
20373
  runtime: util_models.RuntimeOptions,
19678
20374
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19679
20375
  """
19680
- @summary 更新定时SQL任务
20376
+ @summary Updates a Scheduled SQL job.
19681
20377
 
19682
20378
  @param request: UpdateScheduledSQLRequest
19683
20379
  @param headers: map
@@ -19726,7 +20422,7 @@ class Client(OpenApiClient):
19726
20422
  runtime: util_models.RuntimeOptions,
19727
20423
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19728
20424
  """
19729
- @summary 更新定时SQL任务
20425
+ @summary Updates a Scheduled SQL job.
19730
20426
 
19731
20427
  @param request: UpdateScheduledSQLRequest
19732
20428
  @param headers: map
@@ -19773,7 +20469,7 @@ class Client(OpenApiClient):
19773
20469
  request: sls_20201230_models.UpdateScheduledSQLRequest,
19774
20470
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19775
20471
  """
19776
- @summary 更新定时SQL任务
20472
+ @summary Updates a Scheduled SQL job.
19777
20473
 
19778
20474
  @param request: UpdateScheduledSQLRequest
19779
20475
  @return: UpdateScheduledSQLResponse
@@ -19789,7 +20485,7 @@ class Client(OpenApiClient):
19789
20485
  request: sls_20201230_models.UpdateScheduledSQLRequest,
19790
20486
  ) -> sls_20201230_models.UpdateScheduledSQLResponse:
19791
20487
  """
19792
- @summary 更新定时SQL任务
20488
+ @summary Updates a Scheduled SQL job.
19793
20489
 
19794
20490
  @param request: UpdateScheduledSQLRequest
19795
20491
  @return: UpdateScheduledSQLResponse
@@ -19806,7 +20502,7 @@ class Client(OpenApiClient):
19806
20502
  runtime: util_models.RuntimeOptions,
19807
20503
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19808
20504
  """
19809
- @summary 更新独享sql实例
20505
+ @summary Updates the configurations of the Dedicated SQL feature.
19810
20506
 
19811
20507
  @param request: UpdateSqlInstanceRequest
19812
20508
  @param headers: map
@@ -19850,7 +20546,7 @@ class Client(OpenApiClient):
19850
20546
  runtime: util_models.RuntimeOptions,
19851
20547
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19852
20548
  """
19853
- @summary 更新独享sql实例
20549
+ @summary Updates the configurations of the Dedicated SQL feature.
19854
20550
 
19855
20551
  @param request: UpdateSqlInstanceRequest
19856
20552
  @param headers: map
@@ -19892,7 +20588,7 @@ class Client(OpenApiClient):
19892
20588
  request: sls_20201230_models.UpdateSqlInstanceRequest,
19893
20589
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19894
20590
  """
19895
- @summary 更新独享sql实例
20591
+ @summary Updates the configurations of the Dedicated SQL feature.
19896
20592
 
19897
20593
  @param request: UpdateSqlInstanceRequest
19898
20594
  @return: UpdateSqlInstanceResponse
@@ -19907,7 +20603,7 @@ class Client(OpenApiClient):
19907
20603
  request: sls_20201230_models.UpdateSqlInstanceRequest,
19908
20604
  ) -> sls_20201230_models.UpdateSqlInstanceResponse:
19909
20605
  """
19910
- @summary 更新独享sql实例
20606
+ @summary Updates the configurations of the Dedicated SQL feature.
19911
20607
 
19912
20608
  @param request: UpdateSqlInstanceRequest
19913
20609
  @return: UpdateSqlInstanceResponse
@@ -19925,7 +20621,7 @@ class Client(OpenApiClient):
19925
20621
  runtime: util_models.RuntimeOptions,
19926
20622
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19927
20623
  """
19928
- @summary 更新StoreView
20624
+ @summary Updates the configurations of a dataset.
19929
20625
 
19930
20626
  @param request: UpdateStoreViewRequest
19931
20627
  @param headers: map
@@ -19970,7 +20666,7 @@ class Client(OpenApiClient):
19970
20666
  runtime: util_models.RuntimeOptions,
19971
20667
  ) -> sls_20201230_models.UpdateStoreViewResponse:
19972
20668
  """
19973
- @summary 更新StoreView
20669
+ @summary Updates the configurations of a dataset.
19974
20670
 
19975
20671
  @param request: UpdateStoreViewRequest
19976
20672
  @param headers: map
@@ -20013,7 +20709,7 @@ class Client(OpenApiClient):
20013
20709
  request: sls_20201230_models.UpdateStoreViewRequest,
20014
20710
  ) -> sls_20201230_models.UpdateStoreViewResponse:
20015
20711
  """
20016
- @summary 更新StoreView
20712
+ @summary Updates the configurations of a dataset.
20017
20713
 
20018
20714
  @param request: UpdateStoreViewRequest
20019
20715
  @return: UpdateStoreViewResponse
@@ -20029,7 +20725,7 @@ class Client(OpenApiClient):
20029
20725
  request: sls_20201230_models.UpdateStoreViewRequest,
20030
20726
  ) -> sls_20201230_models.UpdateStoreViewResponse:
20031
20727
  """
20032
- @summary 更新StoreView
20728
+ @summary Updates the configurations of a dataset.
20033
20729
 
20034
20730
  @param request: UpdateStoreViewRequest
20035
20731
  @return: UpdateStoreViewResponse