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