alibabacloud-sls20201230 5.4.1__py3-none-any.whl → 5.5.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.
- alibabacloud_sls20201230/__init__.py +1 -1
- alibabacloud_sls20201230/client.py +1024 -103
- alibabacloud_sls20201230/models.py +691 -101
- {alibabacloud_sls20201230-5.4.1.dist-info → alibabacloud_sls20201230-5.5.1.dist-info}/METADATA +5 -5
- alibabacloud_sls20201230-5.5.1.dist-info/RECORD +8 -0
- alibabacloud_sls20201230-5.4.1.dist-info/RECORD +0 -8
- {alibabacloud_sls20201230-5.4.1.dist-info → alibabacloud_sls20201230-5.5.1.dist-info}/LICENSE +0 -0
- {alibabacloud_sls20201230-5.4.1.dist-info → alibabacloud_sls20201230-5.5.1.dist-info}/WHEEL +0 -0
- {alibabacloud_sls20201230-5.4.1.dist-info → alibabacloud_sls20201230-5.5.1.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,6 @@ class Client(OpenApiClient):
|
|
23
23
|
super().__init__(config)
|
24
24
|
gateway_client = GatewayClientClient()
|
25
25
|
self._spi = gateway_client
|
26
|
-
self._signature_algorithm = 'v2'
|
27
26
|
self._endpoint_rule = 'central'
|
28
27
|
|
29
28
|
def apply_config_to_machine_group_with_options(
|
@@ -1081,12 +1080,20 @@ class Client(OpenApiClient):
|
|
1081
1080
|
runtime: util_models.RuntimeOptions,
|
1082
1081
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1083
1082
|
"""
|
1084
|
-
@summary Creates a consumer group for a
|
1083
|
+
@summary Creates a consumer group for a Logstore.
|
1085
1084
|
|
1086
1085
|
@description ### Usage notes
|
1087
1086
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
1088
|
-
You can create up to 30 consumer groups for a Logstore.
|
1089
|
-
|
1087
|
+
You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.
|
1088
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
1089
|
+
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).
|
1090
|
+
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).
|
1091
|
+
Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see [Consume log data](https://help.aliyun.com/document_detail/120035.html) and [Use consumer groups to consume data](https://help.aliyun.com/document_detail/28998.html).
|
1092
|
+
### Authentication resources
|
1093
|
+
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.
|
1094
|
+
|Action|Resource|
|
1095
|
+
|:---|:---|
|
1096
|
+
|`log:CreateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
1090
1097
|
|
1091
1098
|
@param request: CreateConsumerGroupRequest
|
1092
1099
|
@param headers: map
|
@@ -1133,12 +1140,20 @@ class Client(OpenApiClient):
|
|
1133
1140
|
runtime: util_models.RuntimeOptions,
|
1134
1141
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1135
1142
|
"""
|
1136
|
-
@summary Creates a consumer group for a
|
1143
|
+
@summary Creates a consumer group for a Logstore.
|
1137
1144
|
|
1138
1145
|
@description ### Usage notes
|
1139
1146
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
1140
|
-
You can create up to 30 consumer groups for a Logstore.
|
1141
|
-
|
1147
|
+
You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.
|
1148
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
1149
|
+
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).
|
1150
|
+
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).
|
1151
|
+
Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see [Consume log data](https://help.aliyun.com/document_detail/120035.html) and [Use consumer groups to consume data](https://help.aliyun.com/document_detail/28998.html).
|
1152
|
+
### Authentication resources
|
1153
|
+
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.
|
1154
|
+
|Action|Resource|
|
1155
|
+
|:---|:---|
|
1156
|
+
|`log:CreateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
1142
1157
|
|
1143
1158
|
@param request: CreateConsumerGroupRequest
|
1144
1159
|
@param headers: map
|
@@ -1183,12 +1198,20 @@ class Client(OpenApiClient):
|
|
1183
1198
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1184
1199
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1185
1200
|
"""
|
1186
|
-
@summary Creates a consumer group for a
|
1201
|
+
@summary Creates a consumer group for a Logstore.
|
1187
1202
|
|
1188
1203
|
@description ### Usage notes
|
1189
1204
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
1190
|
-
You can create up to 30 consumer groups for a Logstore.
|
1191
|
-
|
1205
|
+
You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.
|
1206
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
1207
|
+
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).
|
1208
|
+
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).
|
1209
|
+
Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see [Consume log data](https://help.aliyun.com/document_detail/120035.html) and [Use consumer groups to consume data](https://help.aliyun.com/document_detail/28998.html).
|
1210
|
+
### Authentication resources
|
1211
|
+
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.
|
1212
|
+
|Action|Resource|
|
1213
|
+
|:---|:---|
|
1214
|
+
|`log:CreateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
1192
1215
|
|
1193
1216
|
@param request: CreateConsumerGroupRequest
|
1194
1217
|
@return: CreateConsumerGroupResponse
|
@@ -1204,12 +1227,20 @@ class Client(OpenApiClient):
|
|
1204
1227
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1205
1228
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1206
1229
|
"""
|
1207
|
-
@summary Creates a consumer group for a
|
1230
|
+
@summary Creates a consumer group for a Logstore.
|
1208
1231
|
|
1209
1232
|
@description ### Usage notes
|
1210
1233
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
1211
|
-
You can create up to 30 consumer groups for a Logstore.
|
1212
|
-
|
1234
|
+
You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.
|
1235
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
1236
|
+
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).
|
1237
|
+
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).
|
1238
|
+
Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see [Consume log data](https://help.aliyun.com/document_detail/120035.html) and [Use consumer groups to consume data](https://help.aliyun.com/document_detail/28998.html).
|
1239
|
+
### Authentication resources
|
1240
|
+
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.
|
1241
|
+
|Action|Resource|
|
1242
|
+
|:---|:---|
|
1243
|
+
|`log:CreateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
1213
1244
|
|
1214
1245
|
@param request: CreateConsumerGroupRequest
|
1215
1246
|
@return: CreateConsumerGroupResponse
|
@@ -2480,7 +2511,15 @@ class Client(OpenApiClient):
|
|
2480
2511
|
runtime: util_models.RuntimeOptions,
|
2481
2512
|
) -> sls_20201230_models.CreateMetricStoreResponse:
|
2482
2513
|
"""
|
2483
|
-
@summary
|
2514
|
+
@summary Creates a Metricstore to store metric data.
|
2515
|
+
|
2516
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
2517
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
2518
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
2519
|
+
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).
|
2520
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
2521
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
2522
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
2484
2523
|
|
2485
2524
|
@param request: CreateMetricStoreRequest
|
2486
2525
|
@param headers: map
|
@@ -2534,7 +2573,15 @@ class Client(OpenApiClient):
|
|
2534
2573
|
runtime: util_models.RuntimeOptions,
|
2535
2574
|
) -> sls_20201230_models.CreateMetricStoreResponse:
|
2536
2575
|
"""
|
2537
|
-
@summary
|
2576
|
+
@summary Creates a Metricstore to store metric data.
|
2577
|
+
|
2578
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
2579
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
2580
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
2581
|
+
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).
|
2582
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
2583
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
2584
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
2538
2585
|
|
2539
2586
|
@param request: CreateMetricStoreRequest
|
2540
2587
|
@param headers: map
|
@@ -2586,7 +2633,15 @@ class Client(OpenApiClient):
|
|
2586
2633
|
request: sls_20201230_models.CreateMetricStoreRequest,
|
2587
2634
|
) -> sls_20201230_models.CreateMetricStoreResponse:
|
2588
2635
|
"""
|
2589
|
-
@summary
|
2636
|
+
@summary Creates a Metricstore to store metric data.
|
2637
|
+
|
2638
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
2639
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
2640
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
2641
|
+
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).
|
2642
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
2643
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
2644
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
2590
2645
|
|
2591
2646
|
@param request: CreateMetricStoreRequest
|
2592
2647
|
@return: CreateMetricStoreResponse
|
@@ -2601,7 +2656,15 @@ class Client(OpenApiClient):
|
|
2601
2656
|
request: sls_20201230_models.CreateMetricStoreRequest,
|
2602
2657
|
) -> sls_20201230_models.CreateMetricStoreResponse:
|
2603
2658
|
"""
|
2604
|
-
@summary
|
2659
|
+
@summary Creates a Metricstore to store metric data.
|
2660
|
+
|
2661
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
2662
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
2663
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
2664
|
+
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).
|
2665
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
2666
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
2667
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
2605
2668
|
|
2606
2669
|
@param request: CreateMetricStoreRequest
|
2607
2670
|
@return: CreateMetricStoreResponse
|
@@ -2744,7 +2807,7 @@ class Client(OpenApiClient):
|
|
2744
2807
|
runtime: util_models.RuntimeOptions,
|
2745
2808
|
) -> sls_20201230_models.CreateOSSHDFSExportResponse:
|
2746
2809
|
"""
|
2747
|
-
@summary
|
2810
|
+
@summary Creates an OSS-HDFS data shipping job in a project.
|
2748
2811
|
|
2749
2812
|
@param request: CreateOSSHDFSExportRequest
|
2750
2813
|
@param headers: map
|
@@ -2792,7 +2855,7 @@ class Client(OpenApiClient):
|
|
2792
2855
|
runtime: util_models.RuntimeOptions,
|
2793
2856
|
) -> sls_20201230_models.CreateOSSHDFSExportResponse:
|
2794
2857
|
"""
|
2795
|
-
@summary
|
2858
|
+
@summary Creates an OSS-HDFS data shipping job in a project.
|
2796
2859
|
|
2797
2860
|
@param request: CreateOSSHDFSExportRequest
|
2798
2861
|
@param headers: map
|
@@ -2838,7 +2901,7 @@ class Client(OpenApiClient):
|
|
2838
2901
|
request: sls_20201230_models.CreateOSSHDFSExportRequest,
|
2839
2902
|
) -> sls_20201230_models.CreateOSSHDFSExportResponse:
|
2840
2903
|
"""
|
2841
|
-
@summary
|
2904
|
+
@summary Creates an OSS-HDFS data shipping job in a project.
|
2842
2905
|
|
2843
2906
|
@param request: CreateOSSHDFSExportRequest
|
2844
2907
|
@return: CreateOSSHDFSExportResponse
|
@@ -2853,7 +2916,7 @@ class Client(OpenApiClient):
|
|
2853
2916
|
request: sls_20201230_models.CreateOSSHDFSExportRequest,
|
2854
2917
|
) -> sls_20201230_models.CreateOSSHDFSExportResponse:
|
2855
2918
|
"""
|
2856
|
-
@summary
|
2919
|
+
@summary Creates an OSS-HDFS data shipping job in a project.
|
2857
2920
|
|
2858
2921
|
@param request: CreateOSSHDFSExportRequest
|
2859
2922
|
@return: CreateOSSHDFSExportResponse
|
@@ -3899,7 +3962,7 @@ class Client(OpenApiClient):
|
|
3899
3962
|
runtime: util_models.RuntimeOptions,
|
3900
3963
|
) -> sls_20201230_models.CreateTicketResponse:
|
3901
3964
|
"""
|
3902
|
-
@summary
|
3965
|
+
@summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
|
3903
3966
|
|
3904
3967
|
@param request: CreateTicketRequest
|
3905
3968
|
@param headers: map
|
@@ -3939,7 +4002,7 @@ class Client(OpenApiClient):
|
|
3939
4002
|
runtime: util_models.RuntimeOptions,
|
3940
4003
|
) -> sls_20201230_models.CreateTicketResponse:
|
3941
4004
|
"""
|
3942
|
-
@summary
|
4005
|
+
@summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
|
3943
4006
|
|
3944
4007
|
@param request: CreateTicketRequest
|
3945
4008
|
@param headers: map
|
@@ -3977,7 +4040,7 @@ class Client(OpenApiClient):
|
|
3977
4040
|
request: sls_20201230_models.CreateTicketRequest,
|
3978
4041
|
) -> sls_20201230_models.CreateTicketResponse:
|
3979
4042
|
"""
|
3980
|
-
@summary
|
4043
|
+
@summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
|
3981
4044
|
|
3982
4045
|
@param request: CreateTicketRequest
|
3983
4046
|
@return: CreateTicketResponse
|
@@ -3991,7 +4054,7 @@ class Client(OpenApiClient):
|
|
3991
4054
|
request: sls_20201230_models.CreateTicketRequest,
|
3992
4055
|
) -> sls_20201230_models.CreateTicketResponse:
|
3993
4056
|
"""
|
3994
|
-
@summary
|
4057
|
+
@summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
|
3995
4058
|
|
3996
4059
|
@param request: CreateTicketRequest
|
3997
4060
|
@return: CreateTicketResponse
|
@@ -4398,7 +4461,7 @@ class Client(OpenApiClient):
|
|
4398
4461
|
runtime: util_models.RuntimeOptions,
|
4399
4462
|
) -> sls_20201230_models.DeleteCollectionPolicyResponse:
|
4400
4463
|
"""
|
4401
|
-
@summary
|
4464
|
+
@summary Deletes a log collection policy from a cloud service.
|
4402
4465
|
|
4403
4466
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4404
4467
|
|
@@ -4441,7 +4504,7 @@ class Client(OpenApiClient):
|
|
4441
4504
|
runtime: util_models.RuntimeOptions,
|
4442
4505
|
) -> sls_20201230_models.DeleteCollectionPolicyResponse:
|
4443
4506
|
"""
|
4444
|
-
@summary
|
4507
|
+
@summary Deletes a log collection policy from a cloud service.
|
4445
4508
|
|
4446
4509
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4447
4510
|
|
@@ -4482,7 +4545,7 @@ class Client(OpenApiClient):
|
|
4482
4545
|
request: sls_20201230_models.DeleteCollectionPolicyRequest,
|
4483
4546
|
) -> sls_20201230_models.DeleteCollectionPolicyResponse:
|
4484
4547
|
"""
|
4485
|
-
@summary
|
4548
|
+
@summary Deletes a log collection policy from a cloud service.
|
4486
4549
|
|
4487
4550
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4488
4551
|
|
@@ -4499,7 +4562,7 @@ class Client(OpenApiClient):
|
|
4499
4562
|
request: sls_20201230_models.DeleteCollectionPolicyRequest,
|
4500
4563
|
) -> sls_20201230_models.DeleteCollectionPolicyResponse:
|
4501
4564
|
"""
|
4502
|
-
@summary
|
4565
|
+
@summary Deletes a log collection policy from a cloud service.
|
4503
4566
|
|
4504
4567
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4505
4568
|
|
@@ -5034,7 +5097,7 @@ class Client(OpenApiClient):
|
|
5034
5097
|
runtime: util_models.RuntimeOptions,
|
5035
5098
|
) -> sls_20201230_models.DeleteDownloadJobResponse:
|
5036
5099
|
"""
|
5037
|
-
@summary
|
5100
|
+
@summary Deletes a download task.
|
5038
5101
|
|
5039
5102
|
@param headers: map
|
5040
5103
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5070,7 +5133,7 @@ class Client(OpenApiClient):
|
|
5070
5133
|
runtime: util_models.RuntimeOptions,
|
5071
5134
|
) -> sls_20201230_models.DeleteDownloadJobResponse:
|
5072
5135
|
"""
|
5073
|
-
@summary
|
5136
|
+
@summary Deletes a download task.
|
5074
5137
|
|
5075
5138
|
@param headers: map
|
5076
5139
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5104,7 +5167,7 @@ class Client(OpenApiClient):
|
|
5104
5167
|
download_job_name: str,
|
5105
5168
|
) -> sls_20201230_models.DeleteDownloadJobResponse:
|
5106
5169
|
"""
|
5107
|
-
@summary
|
5170
|
+
@summary Deletes a download task.
|
5108
5171
|
|
5109
5172
|
@return: DeleteDownloadJobResponse
|
5110
5173
|
"""
|
@@ -5118,7 +5181,7 @@ class Client(OpenApiClient):
|
|
5118
5181
|
download_job_name: str,
|
5119
5182
|
) -> sls_20201230_models.DeleteDownloadJobResponse:
|
5120
5183
|
"""
|
5121
|
-
@summary
|
5184
|
+
@summary Deletes a download task.
|
5122
5185
|
|
5123
5186
|
@return: DeleteDownloadJobResponse
|
5124
5187
|
"""
|
@@ -5882,7 +5945,16 @@ class Client(OpenApiClient):
|
|
5882
5945
|
runtime: util_models.RuntimeOptions,
|
5883
5946
|
) -> sls_20201230_models.DeleteMetricStoreResponse:
|
5884
5947
|
"""
|
5885
|
-
@summary
|
5948
|
+
@summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
|
5949
|
+
|
5950
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
5951
|
+
You must specify an existing Metricstore.
|
5952
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
5953
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
5954
|
+
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).
|
5955
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
5956
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
5957
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
5886
5958
|
|
5887
5959
|
@param headers: map
|
5888
5960
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5918,7 +5990,16 @@ class Client(OpenApiClient):
|
|
5918
5990
|
runtime: util_models.RuntimeOptions,
|
5919
5991
|
) -> sls_20201230_models.DeleteMetricStoreResponse:
|
5920
5992
|
"""
|
5921
|
-
@summary
|
5993
|
+
@summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
|
5994
|
+
|
5995
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
5996
|
+
You must specify an existing Metricstore.
|
5997
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
5998
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
5999
|
+
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).
|
6000
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
6001
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
6002
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
5922
6003
|
|
5923
6004
|
@param headers: map
|
5924
6005
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5952,7 +6033,16 @@ class Client(OpenApiClient):
|
|
5952
6033
|
name: str,
|
5953
6034
|
) -> sls_20201230_models.DeleteMetricStoreResponse:
|
5954
6035
|
"""
|
5955
|
-
@summary
|
6036
|
+
@summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
|
6037
|
+
|
6038
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
6039
|
+
You must specify an existing Metricstore.
|
6040
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6041
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6042
|
+
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).
|
6043
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
6044
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
6045
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
5956
6046
|
|
5957
6047
|
@return: DeleteMetricStoreResponse
|
5958
6048
|
"""
|
@@ -5966,7 +6056,16 @@ class Client(OpenApiClient):
|
|
5966
6056
|
name: str,
|
5967
6057
|
) -> sls_20201230_models.DeleteMetricStoreResponse:
|
5968
6058
|
"""
|
5969
|
-
@summary
|
6059
|
+
@summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
|
6060
|
+
|
6061
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
6062
|
+
You must specify an existing Metricstore.
|
6063
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6064
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6065
|
+
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).
|
6066
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
6067
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
6068
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
5970
6069
|
|
5971
6070
|
@return: DeleteMetricStoreResponse
|
5972
6071
|
"""
|
@@ -6423,8 +6522,11 @@ class Client(OpenApiClient):
|
|
6423
6522
|
"""
|
6424
6523
|
@summary Deletes a project policy.
|
6425
6524
|
|
6426
|
-
@description ### Usage notes
|
6525
|
+
@description ### [](#)Usage notes
|
6427
6526
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6527
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6528
|
+
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).
|
6529
|
+
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)
|
6428
6530
|
|
6429
6531
|
@param headers: map
|
6430
6532
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -6461,8 +6563,11 @@ class Client(OpenApiClient):
|
|
6461
6563
|
"""
|
6462
6564
|
@summary Deletes a project policy.
|
6463
6565
|
|
6464
|
-
@description ### Usage notes
|
6566
|
+
@description ### [](#)Usage notes
|
6465
6567
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6568
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6569
|
+
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).
|
6570
|
+
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)
|
6466
6571
|
|
6467
6572
|
@param headers: map
|
6468
6573
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -6497,8 +6602,11 @@ class Client(OpenApiClient):
|
|
6497
6602
|
"""
|
6498
6603
|
@summary Deletes a project policy.
|
6499
6604
|
|
6500
|
-
@description ### Usage notes
|
6605
|
+
@description ### [](#)Usage notes
|
6501
6606
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6607
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6608
|
+
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).
|
6609
|
+
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)
|
6502
6610
|
|
6503
6611
|
@return: DeleteProjectPolicyResponse
|
6504
6612
|
"""
|
@@ -6513,8 +6621,11 @@ class Client(OpenApiClient):
|
|
6513
6621
|
"""
|
6514
6622
|
@summary Deletes a project policy.
|
6515
6623
|
|
6516
|
-
@description ### Usage notes
|
6624
|
+
@description ### [](#)Usage notes
|
6517
6625
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6626
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6627
|
+
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).
|
6628
|
+
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)
|
6518
6629
|
|
6519
6630
|
@return: DeleteProjectPolicyResponse
|
6520
6631
|
"""
|
@@ -6534,6 +6645,15 @@ class Client(OpenApiClient):
|
|
6534
6645
|
|
6535
6646
|
@description ### Usage notes
|
6536
6647
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6648
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6649
|
+
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).
|
6650
|
+
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).
|
6651
|
+
After you delete a saved search, it cannot be restored. Proceed with caution.
|
6652
|
+
### Authentication resources
|
6653
|
+
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.
|
6654
|
+
|Action|Resource|
|
6655
|
+
|:---|:---|
|
6656
|
+
|`log:DeleteSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
6537
6657
|
|
6538
6658
|
@param headers: map
|
6539
6659
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -6573,6 +6693,15 @@ class Client(OpenApiClient):
|
|
6573
6693
|
|
6574
6694
|
@description ### Usage notes
|
6575
6695
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6696
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6697
|
+
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).
|
6698
|
+
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).
|
6699
|
+
After you delete a saved search, it cannot be restored. Proceed with caution.
|
6700
|
+
### Authentication resources
|
6701
|
+
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.
|
6702
|
+
|Action|Resource|
|
6703
|
+
|:---|:---|
|
6704
|
+
|`log:DeleteSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
6576
6705
|
|
6577
6706
|
@param headers: map
|
6578
6707
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -6610,6 +6739,15 @@ class Client(OpenApiClient):
|
|
6610
6739
|
|
6611
6740
|
@description ### Usage notes
|
6612
6741
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6742
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6743
|
+
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).
|
6744
|
+
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).
|
6745
|
+
After you delete a saved search, it cannot be restored. Proceed with caution.
|
6746
|
+
### Authentication resources
|
6747
|
+
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.
|
6748
|
+
|Action|Resource|
|
6749
|
+
|:---|:---|
|
6750
|
+
|`log:DeleteSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
6613
6751
|
|
6614
6752
|
@return: DeleteSavedSearchResponse
|
6615
6753
|
"""
|
@@ -6627,6 +6765,15 @@ class Client(OpenApiClient):
|
|
6627
6765
|
|
6628
6766
|
@description ### Usage notes
|
6629
6767
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6768
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
6769
|
+
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).
|
6770
|
+
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).
|
6771
|
+
After you delete a saved search, it cannot be restored. Proceed with caution.
|
6772
|
+
### Authentication resources
|
6773
|
+
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.
|
6774
|
+
|Action|Resource|
|
6775
|
+
|:---|:---|
|
6776
|
+
|`log:DeleteSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
6630
6777
|
|
6631
6778
|
@return: DeleteSavedSearchResponse
|
6632
6779
|
"""
|
@@ -6834,6 +6981,110 @@ class Client(OpenApiClient):
|
|
6834
6981
|
headers = {}
|
6835
6982
|
return await self.delete_store_view_with_options_async(project, name, headers, runtime)
|
6836
6983
|
|
6984
|
+
def describe_regions_with_options(
|
6985
|
+
self,
|
6986
|
+
request: sls_20201230_models.DescribeRegionsRequest,
|
6987
|
+
headers: Dict[str, str],
|
6988
|
+
runtime: util_models.RuntimeOptions,
|
6989
|
+
) -> sls_20201230_models.DescribeRegionsResponse:
|
6990
|
+
"""
|
6991
|
+
@summary 查询可用的区域
|
6992
|
+
|
6993
|
+
@param request: DescribeRegionsRequest
|
6994
|
+
@param headers: map
|
6995
|
+
@param runtime: runtime options for this request RuntimeOptions
|
6996
|
+
@return: DescribeRegionsResponse
|
6997
|
+
"""
|
6998
|
+
UtilClient.validate_model(request)
|
6999
|
+
query = {}
|
7000
|
+
if not UtilClient.is_unset(request.language):
|
7001
|
+
query['language'] = request.language
|
7002
|
+
req = open_api_models.OpenApiRequest(
|
7003
|
+
headers=headers,
|
7004
|
+
query=OpenApiUtilClient.query(query)
|
7005
|
+
)
|
7006
|
+
params = open_api_models.Params(
|
7007
|
+
action='DescribeRegions',
|
7008
|
+
version='2020-12-30',
|
7009
|
+
protocol='HTTPS',
|
7010
|
+
pathname=f'/regions',
|
7011
|
+
method='GET',
|
7012
|
+
auth_type='AK',
|
7013
|
+
style='ROA',
|
7014
|
+
req_body_type='json',
|
7015
|
+
body_type='json'
|
7016
|
+
)
|
7017
|
+
return TeaCore.from_map(
|
7018
|
+
sls_20201230_models.DescribeRegionsResponse(),
|
7019
|
+
self.execute(params, req, runtime)
|
7020
|
+
)
|
7021
|
+
|
7022
|
+
async def describe_regions_with_options_async(
|
7023
|
+
self,
|
7024
|
+
request: sls_20201230_models.DescribeRegionsRequest,
|
7025
|
+
headers: Dict[str, str],
|
7026
|
+
runtime: util_models.RuntimeOptions,
|
7027
|
+
) -> sls_20201230_models.DescribeRegionsResponse:
|
7028
|
+
"""
|
7029
|
+
@summary 查询可用的区域
|
7030
|
+
|
7031
|
+
@param request: DescribeRegionsRequest
|
7032
|
+
@param headers: map
|
7033
|
+
@param runtime: runtime options for this request RuntimeOptions
|
7034
|
+
@return: DescribeRegionsResponse
|
7035
|
+
"""
|
7036
|
+
UtilClient.validate_model(request)
|
7037
|
+
query = {}
|
7038
|
+
if not UtilClient.is_unset(request.language):
|
7039
|
+
query['language'] = request.language
|
7040
|
+
req = open_api_models.OpenApiRequest(
|
7041
|
+
headers=headers,
|
7042
|
+
query=OpenApiUtilClient.query(query)
|
7043
|
+
)
|
7044
|
+
params = open_api_models.Params(
|
7045
|
+
action='DescribeRegions',
|
7046
|
+
version='2020-12-30',
|
7047
|
+
protocol='HTTPS',
|
7048
|
+
pathname=f'/regions',
|
7049
|
+
method='GET',
|
7050
|
+
auth_type='AK',
|
7051
|
+
style='ROA',
|
7052
|
+
req_body_type='json',
|
7053
|
+
body_type='json'
|
7054
|
+
)
|
7055
|
+
return TeaCore.from_map(
|
7056
|
+
sls_20201230_models.DescribeRegionsResponse(),
|
7057
|
+
await self.execute_async(params, req, runtime)
|
7058
|
+
)
|
7059
|
+
|
7060
|
+
def describe_regions(
|
7061
|
+
self,
|
7062
|
+
request: sls_20201230_models.DescribeRegionsRequest,
|
7063
|
+
) -> sls_20201230_models.DescribeRegionsResponse:
|
7064
|
+
"""
|
7065
|
+
@summary 查询可用的区域
|
7066
|
+
|
7067
|
+
@param request: DescribeRegionsRequest
|
7068
|
+
@return: DescribeRegionsResponse
|
7069
|
+
"""
|
7070
|
+
runtime = util_models.RuntimeOptions()
|
7071
|
+
headers = {}
|
7072
|
+
return self.describe_regions_with_options(request, headers, runtime)
|
7073
|
+
|
7074
|
+
async def describe_regions_async(
|
7075
|
+
self,
|
7076
|
+
request: sls_20201230_models.DescribeRegionsRequest,
|
7077
|
+
) -> sls_20201230_models.DescribeRegionsResponse:
|
7078
|
+
"""
|
7079
|
+
@summary 查询可用的区域
|
7080
|
+
|
7081
|
+
@param request: DescribeRegionsRequest
|
7082
|
+
@return: DescribeRegionsResponse
|
7083
|
+
"""
|
7084
|
+
runtime = util_models.RuntimeOptions()
|
7085
|
+
headers = {}
|
7086
|
+
return await self.describe_regions_with_options_async(request, headers, runtime)
|
7087
|
+
|
6837
7088
|
def disable_alert_with_options(
|
6838
7089
|
self,
|
6839
7090
|
project: str,
|
@@ -7142,7 +7393,7 @@ class Client(OpenApiClient):
|
|
7142
7393
|
runtime: util_models.RuntimeOptions,
|
7143
7394
|
) -> sls_20201230_models.EnableScheduledSQLResponse:
|
7144
7395
|
"""
|
7145
|
-
@summary
|
7396
|
+
@summary Enables the Scheduled SQL feature.
|
7146
7397
|
|
7147
7398
|
@param headers: map
|
7148
7399
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -7178,7 +7429,7 @@ class Client(OpenApiClient):
|
|
7178
7429
|
runtime: util_models.RuntimeOptions,
|
7179
7430
|
) -> sls_20201230_models.EnableScheduledSQLResponse:
|
7180
7431
|
"""
|
7181
|
-
@summary
|
7432
|
+
@summary Enables the Scheduled SQL feature.
|
7182
7433
|
|
7183
7434
|
@param headers: map
|
7184
7435
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -7212,7 +7463,7 @@ class Client(OpenApiClient):
|
|
7212
7463
|
scheduled_sqlname: str,
|
7213
7464
|
) -> sls_20201230_models.EnableScheduledSQLResponse:
|
7214
7465
|
"""
|
7215
|
-
@summary
|
7466
|
+
@summary Enables the Scheduled SQL feature.
|
7216
7467
|
|
7217
7468
|
@return: EnableScheduledSQLResponse
|
7218
7469
|
"""
|
@@ -7226,7 +7477,7 @@ class Client(OpenApiClient):
|
|
7226
7477
|
scheduled_sqlname: str,
|
7227
7478
|
) -> sls_20201230_models.EnableScheduledSQLResponse:
|
7228
7479
|
"""
|
7229
|
-
@summary
|
7480
|
+
@summary Enables the Scheduled SQL feature.
|
7230
7481
|
|
7231
7482
|
@return: EnableScheduledSQLResponse
|
7232
7483
|
"""
|
@@ -8236,8 +8487,6 @@ class Client(OpenApiClient):
|
|
8236
8487
|
query['pack_id'] = request.pack_id
|
8237
8488
|
if not UtilClient.is_unset(request.pack_meta):
|
8238
8489
|
query['pack_meta'] = request.pack_meta
|
8239
|
-
if not UtilClient.is_unset(request.type):
|
8240
|
-
query['type'] = request.type
|
8241
8490
|
req = open_api_models.OpenApiRequest(
|
8242
8491
|
host_map=host_map,
|
8243
8492
|
headers=headers,
|
@@ -8247,7 +8496,7 @@ class Client(OpenApiClient):
|
|
8247
8496
|
action='GetContextLogs',
|
8248
8497
|
version='2020-12-30',
|
8249
8498
|
protocol='HTTPS',
|
8250
|
-
pathname=f'/logstores/{logstore}',
|
8499
|
+
pathname=f'/logstores/{logstore}?type=context_log',
|
8251
8500
|
method='GET',
|
8252
8501
|
auth_type='AK',
|
8253
8502
|
style='ROA',
|
@@ -8301,8 +8550,6 @@ class Client(OpenApiClient):
|
|
8301
8550
|
query['pack_id'] = request.pack_id
|
8302
8551
|
if not UtilClient.is_unset(request.pack_meta):
|
8303
8552
|
query['pack_meta'] = request.pack_meta
|
8304
|
-
if not UtilClient.is_unset(request.type):
|
8305
|
-
query['type'] = request.type
|
8306
8553
|
req = open_api_models.OpenApiRequest(
|
8307
8554
|
host_map=host_map,
|
8308
8555
|
headers=headers,
|
@@ -8312,7 +8559,7 @@ class Client(OpenApiClient):
|
|
8312
8559
|
action='GetContextLogs',
|
8313
8560
|
version='2020-12-30',
|
8314
8561
|
protocol='HTTPS',
|
8315
|
-
pathname=f'/logstores/{logstore}',
|
8562
|
+
pathname=f'/logstores/{logstore}?type=context_log',
|
8316
8563
|
method='GET',
|
8317
8564
|
auth_type='AK',
|
8318
8565
|
style='ROA',
|
@@ -8788,7 +9035,7 @@ class Client(OpenApiClient):
|
|
8788
9035
|
runtime: util_models.RuntimeOptions,
|
8789
9036
|
) -> sls_20201230_models.GetDownloadJobResponse:
|
8790
9037
|
"""
|
8791
|
-
@summary
|
9038
|
+
@summary Queries the information about a download task.
|
8792
9039
|
|
8793
9040
|
@param headers: map
|
8794
9041
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -8824,7 +9071,7 @@ class Client(OpenApiClient):
|
|
8824
9071
|
runtime: util_models.RuntimeOptions,
|
8825
9072
|
) -> sls_20201230_models.GetDownloadJobResponse:
|
8826
9073
|
"""
|
8827
|
-
@summary
|
9074
|
+
@summary Queries the information about a download task.
|
8828
9075
|
|
8829
9076
|
@param headers: map
|
8830
9077
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -8858,7 +9105,7 @@ class Client(OpenApiClient):
|
|
8858
9105
|
download_job_name: str,
|
8859
9106
|
) -> sls_20201230_models.GetDownloadJobResponse:
|
8860
9107
|
"""
|
8861
|
-
@summary
|
9108
|
+
@summary Queries the information about a download task.
|
8862
9109
|
|
8863
9110
|
@return: GetDownloadJobResponse
|
8864
9111
|
"""
|
@@ -8872,7 +9119,7 @@ class Client(OpenApiClient):
|
|
8872
9119
|
download_job_name: str,
|
8873
9120
|
) -> sls_20201230_models.GetDownloadJobResponse:
|
8874
9121
|
"""
|
8875
|
-
@summary
|
9122
|
+
@summary Queries the information about a download task.
|
8876
9123
|
|
8877
9124
|
@return: GetDownloadJobResponse
|
8878
9125
|
"""
|
@@ -9706,15 +9953,24 @@ class Client(OpenApiClient):
|
|
9706
9953
|
@summary Queries the logs of a Logstore in a project.
|
9707
9954
|
|
9708
9955
|
@description ### Usage notes
|
9709
|
-
|
9956
|
+
*Note** Simple Log Service allows you to create a Scheduled SQL job. For more information, see [Create a scheduled SQL job](https://help.aliyun.com/document_detail/286457.html).
|
9710
9957
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
9711
|
-
|
9712
|
-
|
9713
|
-
|
9714
|
-
|
9715
|
-
|
9716
|
-
|
9958
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
9959
|
+
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).
|
9960
|
+
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).
|
9961
|
+
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).
|
9962
|
+
Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
|
9963
|
+
If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.
|
9964
|
+
After a log is written to a Logstore, you can call the GetHistograms or the 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:
|
9965
|
+
Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.
|
9966
|
+
Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service 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 Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service 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 an approximate latency of 3 seconds.
|
9967
|
+
*Note** Simple Log Service calculates the difference between the log time that is specified by the __time__ field and the receiving time that is specified by the __tag__:**receive_time** field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.
|
9717
9968
|
Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see [Examples of calling the GetLogs operation by using Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/407683.html) and [Examples of calling the GetLogs operation by using Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/407684.html).
|
9969
|
+
### Authentication resources
|
9970
|
+
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.
|
9971
|
+
|Action|Resource|
|
9972
|
+
|:---|:---|
|
9973
|
+
|`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
|
9718
9974
|
|
9719
9975
|
@param request: GetLogsRequest
|
9720
9976
|
@param headers: map
|
@@ -9774,15 +10030,24 @@ class Client(OpenApiClient):
|
|
9774
10030
|
@summary Queries the logs of a Logstore in a project.
|
9775
10031
|
|
9776
10032
|
@description ### Usage notes
|
9777
|
-
|
10033
|
+
*Note** Simple Log Service allows you to create a Scheduled SQL job. For more information, see [Create a scheduled SQL job](https://help.aliyun.com/document_detail/286457.html).
|
9778
10034
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
9779
|
-
|
9780
|
-
|
9781
|
-
|
9782
|
-
|
9783
|
-
|
9784
|
-
|
10035
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10036
|
+
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).
|
10037
|
+
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).
|
10038
|
+
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).
|
10039
|
+
Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
|
10040
|
+
If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.
|
10041
|
+
After a log is written to a Logstore, you can call the GetHistograms or the 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:
|
10042
|
+
Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.
|
10043
|
+
Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service 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 Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service 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 an approximate latency of 3 seconds.
|
10044
|
+
*Note** Simple Log Service calculates the difference between the log time that is specified by the __time__ field and the receiving time that is specified by the __tag__:**receive_time** field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.
|
9785
10045
|
Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see [Examples of calling the GetLogs operation by using Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/407683.html) and [Examples of calling the GetLogs operation by using Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/407684.html).
|
10046
|
+
### Authentication resources
|
10047
|
+
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.
|
10048
|
+
|Action|Resource|
|
10049
|
+
|:---|:---|
|
10050
|
+
|`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
|
9786
10051
|
|
9787
10052
|
@param request: GetLogsRequest
|
9788
10053
|
@param headers: map
|
@@ -9840,15 +10105,24 @@ class Client(OpenApiClient):
|
|
9840
10105
|
@summary Queries the logs of a Logstore in a project.
|
9841
10106
|
|
9842
10107
|
@description ### Usage notes
|
9843
|
-
|
10108
|
+
*Note** Simple Log Service allows you to create a Scheduled SQL job. For more information, see [Create a scheduled SQL job](https://help.aliyun.com/document_detail/286457.html).
|
9844
10109
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
9845
|
-
|
9846
|
-
|
9847
|
-
|
9848
|
-
|
9849
|
-
|
9850
|
-
|
10110
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10111
|
+
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).
|
10112
|
+
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).
|
10113
|
+
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).
|
10114
|
+
Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
|
10115
|
+
If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.
|
10116
|
+
After a log is written to a Logstore, you can call the GetHistograms or the 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:
|
10117
|
+
Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.
|
10118
|
+
Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service 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 Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service 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 an approximate latency of 3 seconds.
|
10119
|
+
*Note** Simple Log Service calculates the difference between the log time that is specified by the __time__ field and the receiving time that is specified by the __tag__:**receive_time** field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.
|
9851
10120
|
Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see [Examples of calling the GetLogs operation by using Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/407683.html) and [Examples of calling the GetLogs operation by using Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/407684.html).
|
10121
|
+
### Authentication resources
|
10122
|
+
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.
|
10123
|
+
|Action|Resource|
|
10124
|
+
|:---|:---|
|
10125
|
+
|`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
|
9852
10126
|
|
9853
10127
|
@param request: GetLogsRequest
|
9854
10128
|
@return: GetLogsResponse
|
@@ -9867,15 +10141,24 @@ class Client(OpenApiClient):
|
|
9867
10141
|
@summary Queries the logs of a Logstore in a project.
|
9868
10142
|
|
9869
10143
|
@description ### Usage notes
|
9870
|
-
|
10144
|
+
*Note** Simple Log Service allows you to create a Scheduled SQL job. For more information, see [Create a scheduled SQL job](https://help.aliyun.com/document_detail/286457.html).
|
9871
10145
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
9872
|
-
|
9873
|
-
|
9874
|
-
|
9875
|
-
|
9876
|
-
|
9877
|
-
|
10146
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10147
|
+
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).
|
10148
|
+
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).
|
10149
|
+
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).
|
10150
|
+
Indexes are configured before you query logs. For more information, see [Create indexes](https://help.aliyun.com/document_detail/90732.html).
|
10151
|
+
If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.
|
10152
|
+
After a log is written to a Logstore, you can call the GetHistograms or the 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:
|
10153
|
+
Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.
|
10154
|
+
Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service 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 Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service 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 an approximate latency of 3 seconds.
|
10155
|
+
*Note** Simple Log Service calculates the difference between the log time that is specified by the __time__ field and the receiving time that is specified by the __tag__:**receive_time** field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.
|
9878
10156
|
Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see [Examples of calling the GetLogs operation by using Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/407683.html) and [Examples of calling the GetLogs operation by using Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/407684.html).
|
10157
|
+
### Authentication resources
|
10158
|
+
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.
|
10159
|
+
|Action|Resource|
|
10160
|
+
|:---|:---|
|
10161
|
+
|`log:GetLogStoreLogs`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}`|
|
9879
10162
|
|
9880
10163
|
@param request: GetLogsRequest
|
9881
10164
|
@return: GetLogsResponse
|
@@ -10406,7 +10689,16 @@ class Client(OpenApiClient):
|
|
10406
10689
|
runtime: util_models.RuntimeOptions,
|
10407
10690
|
) -> sls_20201230_models.GetMetricStoreResponse:
|
10408
10691
|
"""
|
10409
|
-
@summary
|
10692
|
+
@summary Queries a Metricstore.
|
10693
|
+
|
10694
|
+
@description Metricstores are used to store metric data. For more information about Metricstores, see [Metricstores](https://help.aliyun.com/document_detail/171723.html). For more information about metric data, see [Metric data](https://help.aliyun.com/document_detail/174965.html). You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see [Query and analysis](https://help.aliyun.com/document_detail/174968.html) and [GetLogsV2](https://help.aliyun.com/document_detail/2771318.html).
|
10695
|
+
You must specify an existing Metricstore.
|
10696
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10697
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10698
|
+
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).
|
10699
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
10700
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
10701
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
10410
10702
|
|
10411
10703
|
@param headers: map
|
10412
10704
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10442,7 +10734,16 @@ class Client(OpenApiClient):
|
|
10442
10734
|
runtime: util_models.RuntimeOptions,
|
10443
10735
|
) -> sls_20201230_models.GetMetricStoreResponse:
|
10444
10736
|
"""
|
10445
|
-
@summary
|
10737
|
+
@summary Queries a Metricstore.
|
10738
|
+
|
10739
|
+
@description Metricstores are used to store metric data. For more information about Metricstores, see [Metricstores](https://help.aliyun.com/document_detail/171723.html). For more information about metric data, see [Metric data](https://help.aliyun.com/document_detail/174965.html). You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see [Query and analysis](https://help.aliyun.com/document_detail/174968.html) and [GetLogsV2](https://help.aliyun.com/document_detail/2771318.html).
|
10740
|
+
You must specify an existing Metricstore.
|
10741
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10742
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10743
|
+
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).
|
10744
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
10745
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
10746
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
10446
10747
|
|
10447
10748
|
@param headers: map
|
10448
10749
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10476,7 +10777,16 @@ class Client(OpenApiClient):
|
|
10476
10777
|
name: str,
|
10477
10778
|
) -> sls_20201230_models.GetMetricStoreResponse:
|
10478
10779
|
"""
|
10479
|
-
@summary
|
10780
|
+
@summary Queries a Metricstore.
|
10781
|
+
|
10782
|
+
@description Metricstores are used to store metric data. For more information about Metricstores, see [Metricstores](https://help.aliyun.com/document_detail/171723.html). For more information about metric data, see [Metric data](https://help.aliyun.com/document_detail/174965.html). You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see [Query and analysis](https://help.aliyun.com/document_detail/174968.html) and [GetLogsV2](https://help.aliyun.com/document_detail/2771318.html).
|
10783
|
+
You must specify an existing Metricstore.
|
10784
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10785
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10786
|
+
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).
|
10787
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
10788
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
10789
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
10480
10790
|
|
10481
10791
|
@return: GetMetricStoreResponse
|
10482
10792
|
"""
|
@@ -10490,7 +10800,16 @@ class Client(OpenApiClient):
|
|
10490
10800
|
name: str,
|
10491
10801
|
) -> sls_20201230_models.GetMetricStoreResponse:
|
10492
10802
|
"""
|
10493
|
-
@summary
|
10803
|
+
@summary Queries a Metricstore.
|
10804
|
+
|
10805
|
+
@description Metricstores are used to store metric data. For more information about Metricstores, see [Metricstores](https://help.aliyun.com/document_detail/171723.html). For more information about metric data, see [Metric data](https://help.aliyun.com/document_detail/174965.html). You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see [Query and analysis](https://help.aliyun.com/document_detail/174968.html) and [GetLogsV2](https://help.aliyun.com/document_detail/2771318.html).
|
10806
|
+
You must specify an existing Metricstore.
|
10807
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10808
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10809
|
+
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).
|
10810
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
10811
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
10812
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
10494
10813
|
|
10495
10814
|
@return: GetMetricStoreResponse
|
10496
10815
|
"""
|
@@ -11320,6 +11639,15 @@ class Client(OpenApiClient):
|
|
11320
11639
|
|
11321
11640
|
@description ### Usage notes
|
11322
11641
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
11642
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
11643
|
+
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).
|
11644
|
+
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).
|
11645
|
+
You can call the ListSavedSearch operation to query the name of a saved search.
|
11646
|
+
### Authentication resources
|
11647
|
+
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.
|
11648
|
+
|Action|Resource|
|
11649
|
+
|:---|:---|
|
11650
|
+
|`log:GetSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
11323
11651
|
|
11324
11652
|
@param headers: map
|
11325
11653
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -11359,6 +11687,15 @@ class Client(OpenApiClient):
|
|
11359
11687
|
|
11360
11688
|
@description ### Usage notes
|
11361
11689
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
11690
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
11691
|
+
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).
|
11692
|
+
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).
|
11693
|
+
You can call the ListSavedSearch operation to query the name of a saved search.
|
11694
|
+
### Authentication resources
|
11695
|
+
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.
|
11696
|
+
|Action|Resource|
|
11697
|
+
|:---|:---|
|
11698
|
+
|`log:GetSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
11362
11699
|
|
11363
11700
|
@param headers: map
|
11364
11701
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -11396,6 +11733,15 @@ class Client(OpenApiClient):
|
|
11396
11733
|
|
11397
11734
|
@description ### Usage notes
|
11398
11735
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
11736
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
11737
|
+
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).
|
11738
|
+
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).
|
11739
|
+
You can call the ListSavedSearch operation to query the name of a saved search.
|
11740
|
+
### Authentication resources
|
11741
|
+
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.
|
11742
|
+
|Action|Resource|
|
11743
|
+
|:---|:---|
|
11744
|
+
|`log:GetSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
11399
11745
|
|
11400
11746
|
@return: GetSavedSearchResponse
|
11401
11747
|
"""
|
@@ -11413,6 +11759,15 @@ class Client(OpenApiClient):
|
|
11413
11759
|
|
11414
11760
|
@description ### Usage notes
|
11415
11761
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
11762
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
11763
|
+
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).
|
11764
|
+
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).
|
11765
|
+
You can call the ListSavedSearch operation to query the name of a saved search.
|
11766
|
+
### Authentication resources
|
11767
|
+
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.
|
11768
|
+
|Action|Resource|
|
11769
|
+
|:---|:---|
|
11770
|
+
|`log:GetSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
11416
11771
|
|
11417
11772
|
@return: GetSavedSearchResponse
|
11418
11773
|
"""
|
@@ -12355,7 +12710,7 @@ class Client(OpenApiClient):
|
|
12355
12710
|
runtime: util_models.RuntimeOptions,
|
12356
12711
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
12357
12712
|
"""
|
12358
|
-
@summary
|
12713
|
+
@summary Queries a list of log collection policies for cloud services.
|
12359
12714
|
|
12360
12715
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
12361
12716
|
|
@@ -12407,7 +12762,7 @@ class Client(OpenApiClient):
|
|
12407
12762
|
runtime: util_models.RuntimeOptions,
|
12408
12763
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
12409
12764
|
"""
|
12410
|
-
@summary
|
12765
|
+
@summary Queries a list of log collection policies for cloud services.
|
12411
12766
|
|
12412
12767
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
12413
12768
|
|
@@ -12457,7 +12812,7 @@ class Client(OpenApiClient):
|
|
12457
12812
|
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
12458
12813
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
12459
12814
|
"""
|
12460
|
-
@summary
|
12815
|
+
@summary Queries a list of log collection policies for cloud services.
|
12461
12816
|
|
12462
12817
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
12463
12818
|
|
@@ -12473,7 +12828,7 @@ class Client(OpenApiClient):
|
|
12473
12828
|
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
12474
12829
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
12475
12830
|
"""
|
12476
|
-
@summary
|
12831
|
+
@summary Queries a list of log collection policies for cloud services.
|
12477
12832
|
|
12478
12833
|
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
12479
12834
|
|
@@ -12646,6 +13001,14 @@ class Client(OpenApiClient):
|
|
12646
13001
|
|
12647
13002
|
@description ### Usage notes
|
12648
13003
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13004
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13005
|
+
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).
|
13006
|
+
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).
|
13007
|
+
### Authentication resources
|
13008
|
+
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.
|
13009
|
+
|Action|Resource|
|
13010
|
+
|:---|:---|
|
13011
|
+
|`log:ListConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/`|
|
12649
13012
|
|
12650
13013
|
@param headers: map
|
12651
13014
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -12685,6 +13048,14 @@ class Client(OpenApiClient):
|
|
12685
13048
|
|
12686
13049
|
@description ### Usage notes
|
12687
13050
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13051
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13052
|
+
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).
|
13053
|
+
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).
|
13054
|
+
### Authentication resources
|
13055
|
+
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.
|
13056
|
+
|Action|Resource|
|
13057
|
+
|:---|:---|
|
13058
|
+
|`log:ListConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/`|
|
12688
13059
|
|
12689
13060
|
@param headers: map
|
12690
13061
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -12722,6 +13093,14 @@ class Client(OpenApiClient):
|
|
12722
13093
|
|
12723
13094
|
@description ### Usage notes
|
12724
13095
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13096
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13097
|
+
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).
|
13098
|
+
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).
|
13099
|
+
### Authentication resources
|
13100
|
+
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.
|
13101
|
+
|Action|Resource|
|
13102
|
+
|:---|:---|
|
13103
|
+
|`log:ListConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/`|
|
12725
13104
|
|
12726
13105
|
@return: ListConsumerGroupResponse
|
12727
13106
|
"""
|
@@ -12739,6 +13118,14 @@ class Client(OpenApiClient):
|
|
12739
13118
|
|
12740
13119
|
@description ### Usage notes
|
12741
13120
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13121
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13122
|
+
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).
|
13123
|
+
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).
|
13124
|
+
### Authentication resources
|
13125
|
+
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.
|
13126
|
+
|Action|Resource|
|
13127
|
+
|:---|:---|
|
13128
|
+
|`log:ListConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/`|
|
12742
13129
|
|
12743
13130
|
@return: ListConsumerGroupResponse
|
12744
13131
|
"""
|
@@ -13842,7 +14229,12 @@ class Client(OpenApiClient):
|
|
13842
14229
|
runtime: util_models.RuntimeOptions,
|
13843
14230
|
) -> sls_20201230_models.ListMetricStoresResponse:
|
13844
14231
|
"""
|
13845
|
-
@summary
|
14232
|
+
@summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
|
14233
|
+
|
14234
|
+
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14235
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
14236
|
+
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).
|
14237
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
13846
14238
|
|
13847
14239
|
@param request: ListMetricStoresRequest
|
13848
14240
|
@param headers: map
|
@@ -13890,7 +14282,12 @@ class Client(OpenApiClient):
|
|
13890
14282
|
runtime: util_models.RuntimeOptions,
|
13891
14283
|
) -> sls_20201230_models.ListMetricStoresResponse:
|
13892
14284
|
"""
|
13893
|
-
@summary
|
14285
|
+
@summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
|
14286
|
+
|
14287
|
+
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14288
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
14289
|
+
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).
|
14290
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
13894
14291
|
|
13895
14292
|
@param request: ListMetricStoresRequest
|
13896
14293
|
@param headers: map
|
@@ -13936,7 +14333,12 @@ class Client(OpenApiClient):
|
|
13936
14333
|
request: sls_20201230_models.ListMetricStoresRequest,
|
13937
14334
|
) -> sls_20201230_models.ListMetricStoresResponse:
|
13938
14335
|
"""
|
13939
|
-
@summary
|
14336
|
+
@summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
|
14337
|
+
|
14338
|
+
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14339
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
14340
|
+
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).
|
14341
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
13940
14342
|
|
13941
14343
|
@param request: ListMetricStoresRequest
|
13942
14344
|
@return: ListMetricStoresResponse
|
@@ -13951,7 +14353,12 @@ class Client(OpenApiClient):
|
|
13951
14353
|
request: sls_20201230_models.ListMetricStoresRequest,
|
13952
14354
|
) -> sls_20201230_models.ListMetricStoresResponse:
|
13953
14355
|
"""
|
13954
|
-
@summary
|
14356
|
+
@summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
|
14357
|
+
|
14358
|
+
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14359
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
14360
|
+
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).
|
14361
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
13955
14362
|
|
13956
14363
|
@param request: ListMetricStoresRequest
|
13957
14364
|
@return: ListMetricStoresResponse
|
@@ -15294,6 +15701,152 @@ class Client(OpenApiClient):
|
|
15294
15701
|
headers = {}
|
15295
15702
|
return await self.open_sls_service_with_options_async(headers, runtime)
|
15296
15703
|
|
15704
|
+
def pull_logs_with_options(
|
15705
|
+
self,
|
15706
|
+
project: str,
|
15707
|
+
log_store: str,
|
15708
|
+
shard_id: str,
|
15709
|
+
request: sls_20201230_models.PullLogsRequest,
|
15710
|
+
headers: sls_20201230_models.PullLogsHeaders,
|
15711
|
+
runtime: util_models.RuntimeOptions,
|
15712
|
+
) -> sls_20201230_models.PullLogsResponse:
|
15713
|
+
"""
|
15714
|
+
@summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
|
15715
|
+
|
15716
|
+
@description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
15717
|
+
|
15718
|
+
@param request: PullLogsRequest
|
15719
|
+
@param headers: PullLogsHeaders
|
15720
|
+
@param runtime: runtime options for this request RuntimeOptions
|
15721
|
+
@return: PullLogsResponse
|
15722
|
+
"""
|
15723
|
+
UtilClient.validate_model(request)
|
15724
|
+
query = {}
|
15725
|
+
if not UtilClient.is_unset(request.count):
|
15726
|
+
query['count'] = request.count
|
15727
|
+
if not UtilClient.is_unset(request.cursor):
|
15728
|
+
query['cursor'] = request.cursor
|
15729
|
+
if not UtilClient.is_unset(request.end_cursor):
|
15730
|
+
query['end_cursor'] = request.end_cursor
|
15731
|
+
if not UtilClient.is_unset(request.query):
|
15732
|
+
query['query'] = request.query
|
15733
|
+
real_headers = {}
|
15734
|
+
if not UtilClient.is_unset(headers.common_headers):
|
15735
|
+
real_headers = headers.common_headers
|
15736
|
+
if not UtilClient.is_unset(headers.accept_encoding):
|
15737
|
+
real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
|
15738
|
+
req = open_api_models.OpenApiRequest(
|
15739
|
+
headers=real_headers,
|
15740
|
+
query=OpenApiUtilClient.query(query)
|
15741
|
+
)
|
15742
|
+
params = open_api_models.Params(
|
15743
|
+
action='PullLogs',
|
15744
|
+
version='2020-12-30',
|
15745
|
+
protocol='HTTPS',
|
15746
|
+
pathname=f'/logstores/{log_store}/shards/{shard_id}?type=log',
|
15747
|
+
method='GET',
|
15748
|
+
auth_type='AK',
|
15749
|
+
style='ROA',
|
15750
|
+
req_body_type='none',
|
15751
|
+
body_type='json'
|
15752
|
+
)
|
15753
|
+
return TeaCore.from_map(
|
15754
|
+
sls_20201230_models.PullLogsResponse(),
|
15755
|
+
self.execute(params, req, runtime)
|
15756
|
+
)
|
15757
|
+
|
15758
|
+
async def pull_logs_with_options_async(
|
15759
|
+
self,
|
15760
|
+
project: str,
|
15761
|
+
log_store: str,
|
15762
|
+
shard_id: str,
|
15763
|
+
request: sls_20201230_models.PullLogsRequest,
|
15764
|
+
headers: sls_20201230_models.PullLogsHeaders,
|
15765
|
+
runtime: util_models.RuntimeOptions,
|
15766
|
+
) -> sls_20201230_models.PullLogsResponse:
|
15767
|
+
"""
|
15768
|
+
@summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
|
15769
|
+
|
15770
|
+
@description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
15771
|
+
|
15772
|
+
@param request: PullLogsRequest
|
15773
|
+
@param headers: PullLogsHeaders
|
15774
|
+
@param runtime: runtime options for this request RuntimeOptions
|
15775
|
+
@return: PullLogsResponse
|
15776
|
+
"""
|
15777
|
+
UtilClient.validate_model(request)
|
15778
|
+
query = {}
|
15779
|
+
if not UtilClient.is_unset(request.count):
|
15780
|
+
query['count'] = request.count
|
15781
|
+
if not UtilClient.is_unset(request.cursor):
|
15782
|
+
query['cursor'] = request.cursor
|
15783
|
+
if not UtilClient.is_unset(request.end_cursor):
|
15784
|
+
query['end_cursor'] = request.end_cursor
|
15785
|
+
if not UtilClient.is_unset(request.query):
|
15786
|
+
query['query'] = request.query
|
15787
|
+
real_headers = {}
|
15788
|
+
if not UtilClient.is_unset(headers.common_headers):
|
15789
|
+
real_headers = headers.common_headers
|
15790
|
+
if not UtilClient.is_unset(headers.accept_encoding):
|
15791
|
+
real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
|
15792
|
+
req = open_api_models.OpenApiRequest(
|
15793
|
+
headers=real_headers,
|
15794
|
+
query=OpenApiUtilClient.query(query)
|
15795
|
+
)
|
15796
|
+
params = open_api_models.Params(
|
15797
|
+
action='PullLogs',
|
15798
|
+
version='2020-12-30',
|
15799
|
+
protocol='HTTPS',
|
15800
|
+
pathname=f'/logstores/{log_store}/shards/{shard_id}?type=log',
|
15801
|
+
method='GET',
|
15802
|
+
auth_type='AK',
|
15803
|
+
style='ROA',
|
15804
|
+
req_body_type='none',
|
15805
|
+
body_type='json'
|
15806
|
+
)
|
15807
|
+
return TeaCore.from_map(
|
15808
|
+
sls_20201230_models.PullLogsResponse(),
|
15809
|
+
await self.execute_async(params, req, runtime)
|
15810
|
+
)
|
15811
|
+
|
15812
|
+
def pull_logs(
|
15813
|
+
self,
|
15814
|
+
project: str,
|
15815
|
+
log_store: str,
|
15816
|
+
shard_id: str,
|
15817
|
+
request: sls_20201230_models.PullLogsRequest,
|
15818
|
+
) -> sls_20201230_models.PullLogsResponse:
|
15819
|
+
"""
|
15820
|
+
@summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
|
15821
|
+
|
15822
|
+
@description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
15823
|
+
|
15824
|
+
@param request: PullLogsRequest
|
15825
|
+
@return: PullLogsResponse
|
15826
|
+
"""
|
15827
|
+
runtime = util_models.RuntimeOptions()
|
15828
|
+
headers = sls_20201230_models.PullLogsHeaders()
|
15829
|
+
return self.pull_logs_with_options(project, log_store, shard_id, request, headers, runtime)
|
15830
|
+
|
15831
|
+
async def pull_logs_async(
|
15832
|
+
self,
|
15833
|
+
project: str,
|
15834
|
+
log_store: str,
|
15835
|
+
shard_id: str,
|
15836
|
+
request: sls_20201230_models.PullLogsRequest,
|
15837
|
+
) -> sls_20201230_models.PullLogsResponse:
|
15838
|
+
"""
|
15839
|
+
@summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
|
15840
|
+
|
15841
|
+
@description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
15842
|
+
|
15843
|
+
@param request: PullLogsRequest
|
15844
|
+
@return: PullLogsResponse
|
15845
|
+
"""
|
15846
|
+
runtime = util_models.RuntimeOptions()
|
15847
|
+
headers = sls_20201230_models.PullLogsHeaders()
|
15848
|
+
return await self.pull_logs_with_options_async(project, log_store, shard_id, request, headers, runtime)
|
15849
|
+
|
15297
15850
|
def put_annotation_data_with_options(
|
15298
15851
|
self,
|
15299
15852
|
dataset_id: str,
|
@@ -15414,6 +15967,136 @@ class Client(OpenApiClient):
|
|
15414
15967
|
headers = {}
|
15415
15968
|
return await self.put_annotation_data_with_options_async(dataset_id, request, headers, runtime)
|
15416
15969
|
|
15970
|
+
def put_logs_with_options(
|
15971
|
+
self,
|
15972
|
+
project: str,
|
15973
|
+
logstore: str,
|
15974
|
+
request: sls_20201230_models.PutLogsRequest,
|
15975
|
+
headers: sls_20201230_models.PutLogsHeaders,
|
15976
|
+
runtime: util_models.RuntimeOptions,
|
15977
|
+
) -> sls_20201230_models.PutLogsResponse:
|
15978
|
+
"""
|
15979
|
+
@summary Sends logs to Simple Log Service.
|
15980
|
+
|
15981
|
+
@description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
15982
|
+
|
15983
|
+
@param request: PutLogsRequest
|
15984
|
+
@param headers: PutLogsHeaders
|
15985
|
+
@param runtime: runtime options for this request RuntimeOptions
|
15986
|
+
@return: PutLogsResponse
|
15987
|
+
"""
|
15988
|
+
UtilClient.validate_model(request)
|
15989
|
+
host_map = {}
|
15990
|
+
host_map['project'] = project
|
15991
|
+
real_headers = {}
|
15992
|
+
if not UtilClient.is_unset(headers.common_headers):
|
15993
|
+
real_headers = headers.common_headers
|
15994
|
+
if not UtilClient.is_unset(headers.x_log_compresstype):
|
15995
|
+
real_headers['x-log-compresstype'] = UtilClient.to_jsonstring(headers.x_log_compresstype)
|
15996
|
+
req = open_api_models.OpenApiRequest(
|
15997
|
+
host_map=host_map,
|
15998
|
+
headers=real_headers,
|
15999
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
16000
|
+
)
|
16001
|
+
params = open_api_models.Params(
|
16002
|
+
action='PutLogs',
|
16003
|
+
version='2020-12-30',
|
16004
|
+
protocol='HTTPS',
|
16005
|
+
pathname=f'/logstores/{logstore}/shards/lb',
|
16006
|
+
method='POST',
|
16007
|
+
auth_type='AK',
|
16008
|
+
style='ROA',
|
16009
|
+
req_body_type='protobuf',
|
16010
|
+
body_type='none'
|
16011
|
+
)
|
16012
|
+
return TeaCore.from_map(
|
16013
|
+
sls_20201230_models.PutLogsResponse(),
|
16014
|
+
self.execute(params, req, runtime)
|
16015
|
+
)
|
16016
|
+
|
16017
|
+
async def put_logs_with_options_async(
|
16018
|
+
self,
|
16019
|
+
project: str,
|
16020
|
+
logstore: str,
|
16021
|
+
request: sls_20201230_models.PutLogsRequest,
|
16022
|
+
headers: sls_20201230_models.PutLogsHeaders,
|
16023
|
+
runtime: util_models.RuntimeOptions,
|
16024
|
+
) -> sls_20201230_models.PutLogsResponse:
|
16025
|
+
"""
|
16026
|
+
@summary Sends logs to Simple Log Service.
|
16027
|
+
|
16028
|
+
@description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
16029
|
+
|
16030
|
+
@param request: PutLogsRequest
|
16031
|
+
@param headers: PutLogsHeaders
|
16032
|
+
@param runtime: runtime options for this request RuntimeOptions
|
16033
|
+
@return: PutLogsResponse
|
16034
|
+
"""
|
16035
|
+
UtilClient.validate_model(request)
|
16036
|
+
host_map = {}
|
16037
|
+
host_map['project'] = project
|
16038
|
+
real_headers = {}
|
16039
|
+
if not UtilClient.is_unset(headers.common_headers):
|
16040
|
+
real_headers = headers.common_headers
|
16041
|
+
if not UtilClient.is_unset(headers.x_log_compresstype):
|
16042
|
+
real_headers['x-log-compresstype'] = UtilClient.to_jsonstring(headers.x_log_compresstype)
|
16043
|
+
req = open_api_models.OpenApiRequest(
|
16044
|
+
host_map=host_map,
|
16045
|
+
headers=real_headers,
|
16046
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
16047
|
+
)
|
16048
|
+
params = open_api_models.Params(
|
16049
|
+
action='PutLogs',
|
16050
|
+
version='2020-12-30',
|
16051
|
+
protocol='HTTPS',
|
16052
|
+
pathname=f'/logstores/{logstore}/shards/lb',
|
16053
|
+
method='POST',
|
16054
|
+
auth_type='AK',
|
16055
|
+
style='ROA',
|
16056
|
+
req_body_type='protobuf',
|
16057
|
+
body_type='none'
|
16058
|
+
)
|
16059
|
+
return TeaCore.from_map(
|
16060
|
+
sls_20201230_models.PutLogsResponse(),
|
16061
|
+
await self.execute_async(params, req, runtime)
|
16062
|
+
)
|
16063
|
+
|
16064
|
+
def put_logs(
|
16065
|
+
self,
|
16066
|
+
project: str,
|
16067
|
+
logstore: str,
|
16068
|
+
request: sls_20201230_models.PutLogsRequest,
|
16069
|
+
) -> sls_20201230_models.PutLogsResponse:
|
16070
|
+
"""
|
16071
|
+
@summary Sends logs to Simple Log Service.
|
16072
|
+
|
16073
|
+
@description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
16074
|
+
|
16075
|
+
@param request: PutLogsRequest
|
16076
|
+
@return: PutLogsResponse
|
16077
|
+
"""
|
16078
|
+
runtime = util_models.RuntimeOptions()
|
16079
|
+
headers = sls_20201230_models.PutLogsHeaders()
|
16080
|
+
return self.put_logs_with_options(project, logstore, request, headers, runtime)
|
16081
|
+
|
16082
|
+
async def put_logs_async(
|
16083
|
+
self,
|
16084
|
+
project: str,
|
16085
|
+
logstore: str,
|
16086
|
+
request: sls_20201230_models.PutLogsRequest,
|
16087
|
+
) -> sls_20201230_models.PutLogsResponse:
|
16088
|
+
"""
|
16089
|
+
@summary Sends logs to Simple Log Service.
|
16090
|
+
|
16091
|
+
@description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
|
16092
|
+
|
16093
|
+
@param request: PutLogsRequest
|
16094
|
+
@return: PutLogsResponse
|
16095
|
+
"""
|
16096
|
+
runtime = util_models.RuntimeOptions()
|
16097
|
+
headers = sls_20201230_models.PutLogsHeaders()
|
16098
|
+
return await self.put_logs_with_options_async(project, logstore, request, headers, runtime)
|
16099
|
+
|
15417
16100
|
def put_project_policy_with_options(
|
15418
16101
|
self,
|
15419
16102
|
project: str,
|
@@ -17808,6 +18491,14 @@ class Client(OpenApiClient):
|
|
17808
18491
|
|
17809
18492
|
@description ### Usage notes
|
17810
18493
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
18494
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
18495
|
+
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).
|
18496
|
+
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).
|
18497
|
+
### Authentication resources
|
18498
|
+
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.
|
18499
|
+
|Action|Resource|
|
18500
|
+
|:---|:---|
|
18501
|
+
|`log:UpdateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
17811
18502
|
|
17812
18503
|
@param request: UpdateConsumerGroupRequest
|
17813
18504
|
@param headers: map
|
@@ -17857,6 +18548,14 @@ class Client(OpenApiClient):
|
|
17857
18548
|
|
17858
18549
|
@description ### Usage notes
|
17859
18550
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
18551
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
18552
|
+
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).
|
18553
|
+
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).
|
18554
|
+
### Authentication resources
|
18555
|
+
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.
|
18556
|
+
|Action|Resource|
|
18557
|
+
|:---|:---|
|
18558
|
+
|`log:UpdateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
17860
18559
|
|
17861
18560
|
@param request: UpdateConsumerGroupRequest
|
17862
18561
|
@param headers: map
|
@@ -17904,6 +18603,14 @@ class Client(OpenApiClient):
|
|
17904
18603
|
|
17905
18604
|
@description ### Usage notes
|
17906
18605
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
18606
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
18607
|
+
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).
|
18608
|
+
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).
|
18609
|
+
### Authentication resources
|
18610
|
+
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.
|
18611
|
+
|Action|Resource|
|
18612
|
+
|:---|:---|
|
18613
|
+
|`log:UpdateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
17907
18614
|
|
17908
18615
|
@param request: UpdateConsumerGroupRequest
|
17909
18616
|
@return: UpdateConsumerGroupResponse
|
@@ -17924,6 +18631,14 @@ class Client(OpenApiClient):
|
|
17924
18631
|
|
17925
18632
|
@description ### Usage notes
|
17926
18633
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
18634
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
18635
|
+
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).
|
18636
|
+
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).
|
18637
|
+
### Authentication resources
|
18638
|
+
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.
|
18639
|
+
|Action|Resource|
|
18640
|
+
|:---|:---|
|
18641
|
+
|`log:UpdateConsumerGroup`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}`|
|
17927
18642
|
|
17928
18643
|
@param request: UpdateConsumerGroupRequest
|
17929
18644
|
@return: UpdateConsumerGroupResponse
|
@@ -18370,8 +19085,6 @@ class Client(OpenApiClient):
|
|
18370
19085
|
body['maxSplitShard'] = request.max_split_shard
|
18371
19086
|
if not UtilClient.is_unset(request.mode):
|
18372
19087
|
body['mode'] = request.mode
|
18373
|
-
if not UtilClient.is_unset(request.processor_id):
|
18374
|
-
body['processorId'] = request.processor_id
|
18375
19088
|
if not UtilClient.is_unset(request.shard_count):
|
18376
19089
|
body['shardCount'] = request.shard_count
|
18377
19090
|
if not UtilClient.is_unset(request.telemetry_type):
|
@@ -18441,8 +19154,6 @@ class Client(OpenApiClient):
|
|
18441
19154
|
body['maxSplitShard'] = request.max_split_shard
|
18442
19155
|
if not UtilClient.is_unset(request.mode):
|
18443
19156
|
body['mode'] = request.mode
|
18444
|
-
if not UtilClient.is_unset(request.processor_id):
|
18445
|
-
body['processorId'] = request.processor_id
|
18446
19157
|
if not UtilClient.is_unset(request.shard_count):
|
18447
19158
|
body['shardCount'] = request.shard_count
|
18448
19159
|
if not UtilClient.is_unset(request.telemetry_type):
|
@@ -18510,6 +19221,132 @@ class Client(OpenApiClient):
|
|
18510
19221
|
headers = {}
|
18511
19222
|
return await self.update_log_store_with_options_async(project, logstore, request, headers, runtime)
|
18512
19223
|
|
19224
|
+
def update_log_store_encryption_with_options(
|
19225
|
+
self,
|
19226
|
+
project: str,
|
19227
|
+
logstore: str,
|
19228
|
+
request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
|
19229
|
+
headers: Dict[str, str],
|
19230
|
+
runtime: util_models.RuntimeOptions,
|
19231
|
+
) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
|
19232
|
+
"""
|
19233
|
+
@summary 更新日志库的加密配置
|
19234
|
+
|
19235
|
+
@param request: UpdateLogStoreEncryptionRequest
|
19236
|
+
@param headers: map
|
19237
|
+
@param runtime: runtime options for this request RuntimeOptions
|
19238
|
+
@return: UpdateLogStoreEncryptionResponse
|
19239
|
+
"""
|
19240
|
+
UtilClient.validate_model(request)
|
19241
|
+
host_map = {}
|
19242
|
+
host_map['project'] = project
|
19243
|
+
body = {}
|
19244
|
+
if not UtilClient.is_unset(request.enable):
|
19245
|
+
body['enable'] = request.enable
|
19246
|
+
if not UtilClient.is_unset(request.encrypt_type):
|
19247
|
+
body['encryptType'] = request.encrypt_type
|
19248
|
+
if not UtilClient.is_unset(request.user_cmk_info):
|
19249
|
+
body['userCmkInfo'] = request.user_cmk_info
|
19250
|
+
req = open_api_models.OpenApiRequest(
|
19251
|
+
host_map=host_map,
|
19252
|
+
headers=headers,
|
19253
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
19254
|
+
)
|
19255
|
+
params = open_api_models.Params(
|
19256
|
+
action='UpdateLogStoreEncryption',
|
19257
|
+
version='2020-12-30',
|
19258
|
+
protocol='HTTPS',
|
19259
|
+
pathname=f'/logstores/{logstore}/encryption',
|
19260
|
+
method='PUT',
|
19261
|
+
auth_type='AK',
|
19262
|
+
style='ROA',
|
19263
|
+
req_body_type='json',
|
19264
|
+
body_type='none'
|
19265
|
+
)
|
19266
|
+
return TeaCore.from_map(
|
19267
|
+
sls_20201230_models.UpdateLogStoreEncryptionResponse(),
|
19268
|
+
self.execute(params, req, runtime)
|
19269
|
+
)
|
19270
|
+
|
19271
|
+
async def update_log_store_encryption_with_options_async(
|
19272
|
+
self,
|
19273
|
+
project: str,
|
19274
|
+
logstore: str,
|
19275
|
+
request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
|
19276
|
+
headers: Dict[str, str],
|
19277
|
+
runtime: util_models.RuntimeOptions,
|
19278
|
+
) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
|
19279
|
+
"""
|
19280
|
+
@summary 更新日志库的加密配置
|
19281
|
+
|
19282
|
+
@param request: UpdateLogStoreEncryptionRequest
|
19283
|
+
@param headers: map
|
19284
|
+
@param runtime: runtime options for this request RuntimeOptions
|
19285
|
+
@return: UpdateLogStoreEncryptionResponse
|
19286
|
+
"""
|
19287
|
+
UtilClient.validate_model(request)
|
19288
|
+
host_map = {}
|
19289
|
+
host_map['project'] = project
|
19290
|
+
body = {}
|
19291
|
+
if not UtilClient.is_unset(request.enable):
|
19292
|
+
body['enable'] = request.enable
|
19293
|
+
if not UtilClient.is_unset(request.encrypt_type):
|
19294
|
+
body['encryptType'] = request.encrypt_type
|
19295
|
+
if not UtilClient.is_unset(request.user_cmk_info):
|
19296
|
+
body['userCmkInfo'] = request.user_cmk_info
|
19297
|
+
req = open_api_models.OpenApiRequest(
|
19298
|
+
host_map=host_map,
|
19299
|
+
headers=headers,
|
19300
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
19301
|
+
)
|
19302
|
+
params = open_api_models.Params(
|
19303
|
+
action='UpdateLogStoreEncryption',
|
19304
|
+
version='2020-12-30',
|
19305
|
+
protocol='HTTPS',
|
19306
|
+
pathname=f'/logstores/{logstore}/encryption',
|
19307
|
+
method='PUT',
|
19308
|
+
auth_type='AK',
|
19309
|
+
style='ROA',
|
19310
|
+
req_body_type='json',
|
19311
|
+
body_type='none'
|
19312
|
+
)
|
19313
|
+
return TeaCore.from_map(
|
19314
|
+
sls_20201230_models.UpdateLogStoreEncryptionResponse(),
|
19315
|
+
await self.execute_async(params, req, runtime)
|
19316
|
+
)
|
19317
|
+
|
19318
|
+
def update_log_store_encryption(
|
19319
|
+
self,
|
19320
|
+
project: str,
|
19321
|
+
logstore: str,
|
19322
|
+
request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
|
19323
|
+
) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
|
19324
|
+
"""
|
19325
|
+
@summary 更新日志库的加密配置
|
19326
|
+
|
19327
|
+
@param request: UpdateLogStoreEncryptionRequest
|
19328
|
+
@return: UpdateLogStoreEncryptionResponse
|
19329
|
+
"""
|
19330
|
+
runtime = util_models.RuntimeOptions()
|
19331
|
+
headers = {}
|
19332
|
+
return self.update_log_store_encryption_with_options(project, logstore, request, headers, runtime)
|
19333
|
+
|
19334
|
+
async def update_log_store_encryption_async(
|
19335
|
+
self,
|
19336
|
+
project: str,
|
19337
|
+
logstore: str,
|
19338
|
+
request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
|
19339
|
+
) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
|
19340
|
+
"""
|
19341
|
+
@summary 更新日志库的加密配置
|
19342
|
+
|
19343
|
+
@param request: UpdateLogStoreEncryptionRequest
|
19344
|
+
@return: UpdateLogStoreEncryptionResponse
|
19345
|
+
"""
|
19346
|
+
runtime = util_models.RuntimeOptions()
|
19347
|
+
headers = {}
|
19348
|
+
return await self.update_log_store_encryption_with_options_async(project, logstore, request, headers, runtime)
|
19349
|
+
|
18513
19350
|
def update_log_store_metering_mode_with_options(
|
18514
19351
|
self,
|
18515
19352
|
project: str,
|
@@ -19183,7 +20020,16 @@ class Client(OpenApiClient):
|
|
19183
20020
|
runtime: util_models.RuntimeOptions,
|
19184
20021
|
) -> sls_20201230_models.UpdateMetricStoreResponse:
|
19185
20022
|
"""
|
19186
|
-
@summary
|
20023
|
+
@summary Updates the settings of an existing Metricstore. Metricstores are used to store metric data.
|
20024
|
+
|
20025
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
20026
|
+
You must specify an existing Metricstore.
|
20027
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
20028
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
20029
|
+
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).
|
20030
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
20031
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
20032
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
19187
20033
|
|
19188
20034
|
@param request: UpdateMetricStoreRequest
|
19189
20035
|
@param headers: map
|
@@ -19232,7 +20078,16 @@ class Client(OpenApiClient):
|
|
19232
20078
|
runtime: util_models.RuntimeOptions,
|
19233
20079
|
) -> sls_20201230_models.UpdateMetricStoreResponse:
|
19234
20080
|
"""
|
19235
|
-
@summary
|
20081
|
+
@summary Updates the settings of an existing Metricstore. Metricstores are used to store metric data.
|
20082
|
+
|
20083
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
20084
|
+
You must specify an existing Metricstore.
|
20085
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
20086
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
20087
|
+
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).
|
20088
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
20089
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
20090
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
19236
20091
|
|
19237
20092
|
@param request: UpdateMetricStoreRequest
|
19238
20093
|
@param headers: map
|
@@ -19279,7 +20134,16 @@ class Client(OpenApiClient):
|
|
19279
20134
|
request: sls_20201230_models.UpdateMetricStoreRequest,
|
19280
20135
|
) -> sls_20201230_models.UpdateMetricStoreResponse:
|
19281
20136
|
"""
|
19282
|
-
@summary
|
20137
|
+
@summary Updates the settings of an existing Metricstore. Metricstores are used to store metric data.
|
20138
|
+
|
20139
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
20140
|
+
You must specify an existing Metricstore.
|
20141
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
20142
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
20143
|
+
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).
|
20144
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
20145
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
20146
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
19283
20147
|
|
19284
20148
|
@param request: UpdateMetricStoreRequest
|
19285
20149
|
@return: UpdateMetricStoreResponse
|
@@ -19295,7 +20159,16 @@ class Client(OpenApiClient):
|
|
19295
20159
|
request: sls_20201230_models.UpdateMetricStoreRequest,
|
19296
20160
|
) -> sls_20201230_models.UpdateMetricStoreResponse:
|
19297
20161
|
"""
|
19298
|
-
@summary
|
20162
|
+
@summary Updates the settings of an existing Metricstore. Metricstores are used to store metric data.
|
20163
|
+
|
20164
|
+
@description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
|
20165
|
+
You must specify an existing Metricstore.
|
20166
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
20167
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
20168
|
+
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).
|
20169
|
+
The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
|
20170
|
+
You can create up to 200 Logstores or Metricstores in a project.
|
20171
|
+
Metric data is automatically deleted when the retention period of the metric data ends.
|
19299
20172
|
|
19300
20173
|
@param request: UpdateMetricStoreRequest
|
19301
20174
|
@return: UpdateMetricStoreResponse
|
@@ -20241,6 +21114,18 @@ class Client(OpenApiClient):
|
|
20241
21114
|
"""
|
20242
21115
|
@summary Updates a saved search.
|
20243
21116
|
|
21117
|
+
@description ### Usage notes
|
21118
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
21119
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
21120
|
+
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).
|
21121
|
+
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).
|
21122
|
+
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).
|
21123
|
+
### Authentication resources
|
21124
|
+
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.
|
21125
|
+
|Action|Resource|
|
21126
|
+
|:---|:---|
|
21127
|
+
|`log:UpdateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
21128
|
+
|
20244
21129
|
@param request: UpdateSavedSearchRequest
|
20245
21130
|
@param headers: map
|
20246
21131
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -20292,6 +21177,18 @@ class Client(OpenApiClient):
|
|
20292
21177
|
"""
|
20293
21178
|
@summary Updates a saved search.
|
20294
21179
|
|
21180
|
+
@description ### Usage notes
|
21181
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
21182
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
21183
|
+
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).
|
21184
|
+
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).
|
21185
|
+
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).
|
21186
|
+
### Authentication resources
|
21187
|
+
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.
|
21188
|
+
|Action|Resource|
|
21189
|
+
|:---|:---|
|
21190
|
+
|`log:UpdateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
21191
|
+
|
20295
21192
|
@param request: UpdateSavedSearchRequest
|
20296
21193
|
@param headers: map
|
20297
21194
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -20341,6 +21238,18 @@ class Client(OpenApiClient):
|
|
20341
21238
|
"""
|
20342
21239
|
@summary Updates a saved search.
|
20343
21240
|
|
21241
|
+
@description ### Usage notes
|
21242
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
21243
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
21244
|
+
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).
|
21245
|
+
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).
|
21246
|
+
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).
|
21247
|
+
### Authentication resources
|
21248
|
+
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.
|
21249
|
+
|Action|Resource|
|
21250
|
+
|:---|:---|
|
21251
|
+
|`log:UpdateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
21252
|
+
|
20344
21253
|
@param request: UpdateSavedSearchRequest
|
20345
21254
|
@return: UpdateSavedSearchResponse
|
20346
21255
|
"""
|
@@ -20357,6 +21266,18 @@ class Client(OpenApiClient):
|
|
20357
21266
|
"""
|
20358
21267
|
@summary Updates a saved search.
|
20359
21268
|
|
21269
|
+
@description ### Usage notes
|
21270
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
21271
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
21272
|
+
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).
|
21273
|
+
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).
|
21274
|
+
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).
|
21275
|
+
### Authentication resources
|
21276
|
+
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.
|
21277
|
+
|Action|Resource|
|
21278
|
+
|:---|:---|
|
21279
|
+
|`log:UpdateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
|
21280
|
+
|
20360
21281
|
@param request: UpdateSavedSearchRequest
|
20361
21282
|
@return: UpdateSavedSearchResponse
|
20362
21283
|
"""
|