huaweicloudsdkaom 3.1.69__py2.py3-none-any.whl → 3.1.71__py2.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.
Potentially problematic release.
This version of huaweicloudsdkaom might be problematic. Click here for more details.
- huaweicloudsdkaom/v2/__init__.py +0 -1
- huaweicloudsdkaom/v2/aom_async_client.py +158 -158
- huaweicloudsdkaom/v2/aom_client.py +158 -158
- huaweicloudsdkaom/v2/model/__init__.py +0 -1
- huaweicloudsdkaom/v2/model/access_code_model.py +12 -12
- huaweicloudsdkaom/v2/model/application_model.py +9 -9
- huaweicloudsdkaom/v2/model/create_prom_instance_response.py +3 -3
- huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +3 -3
- huaweicloudsdkaom/v2/model/list_access_code_response.py +3 -3
- huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
- huaweicloudsdkaom/v2/model/list_permissions_response.py +4 -4
- huaweicloudsdkaom/v2/model/list_prom_instance_request.py +12 -12
- huaweicloudsdkaom/v2/model/list_prom_instance_response.py +3 -3
- huaweicloudsdkaom/v2/model/prom_config_model.py +15 -15
- huaweicloudsdkaom/v2/model/prom_instance_eps_model.py +39 -39
- huaweicloudsdkaom/v2/model/recording_rule_request.py +3 -3
- {huaweicloudsdkaom-3.1.69.dist-info → huaweicloudsdkaom-3.1.71.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.69.dist-info → huaweicloudsdkaom-3.1.71.dist-info}/RECORD +21 -22
- {huaweicloudsdkaom-3.1.69.dist-info → huaweicloudsdkaom-3.1.71.dist-info}/WHEEL +1 -1
- huaweicloudsdkaom/v2/model/auth_model.py +0 -144
- {huaweicloudsdkaom-3.1.69.dist-info → huaweicloudsdkaom-3.1.71.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.69.dist-info → huaweicloudsdkaom-3.1.71.dist-info}/top_level.txt +0 -0
huaweicloudsdkaom/v2/__init__.py
CHANGED
|
@@ -26,7 +26,6 @@ from huaweicloudsdkaom.v2.model.app_rules_body import AppRulesBody
|
|
|
26
26
|
from huaweicloudsdkaom.v2.model.app_rules_spec import AppRulesSpec
|
|
27
27
|
from huaweicloudsdkaom.v2.model.application_model import ApplicationModel
|
|
28
28
|
from huaweicloudsdkaom.v2.model.application_name_rule import ApplicationNameRule
|
|
29
|
-
from huaweicloudsdkaom.v2.model.auth_model import AuthModel
|
|
30
29
|
from huaweicloudsdkaom.v2.model.count_events_request import CountEventsRequest
|
|
31
30
|
from huaweicloudsdkaom.v2.model.count_events_response import CountEventsResponse
|
|
32
31
|
from huaweicloudsdkaom.v2.model.create_prom_instance_request import CreatePromInstanceRequest
|
|
@@ -943,6 +943,73 @@ class AomAsyncClient(Client):
|
|
|
943
943
|
|
|
944
944
|
return http_info
|
|
945
945
|
|
|
946
|
+
def list_agents_async(self, request):
|
|
947
|
+
"""查询集群主机安装的ICAgent信息
|
|
948
|
+
|
|
949
|
+
该接口用于查询集群主机安装的ICAgent信息。
|
|
950
|
+
|
|
951
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
:param request: Request instance for ListAgents
|
|
955
|
+
:type request: :class:`huaweicloudsdkaom.v2.ListAgentsRequest`
|
|
956
|
+
:rtype: :class:`huaweicloudsdkaom.v2.ListAgentsResponse`
|
|
957
|
+
"""
|
|
958
|
+
http_info = self._list_agents_http_info(request)
|
|
959
|
+
return self._call_api(**http_info)
|
|
960
|
+
|
|
961
|
+
def list_agents_async_invoker(self, request):
|
|
962
|
+
http_info = self._list_agents_http_info(request)
|
|
963
|
+
return AsyncInvoker(self, http_info)
|
|
964
|
+
|
|
965
|
+
def _list_agents_http_info(self, request):
|
|
966
|
+
http_info = {
|
|
967
|
+
"method": "GET",
|
|
968
|
+
"resource_path": "/v1/{project_id}/{cluster_id}/{namespace}/agents",
|
|
969
|
+
"request_type": request.__class__.__name__,
|
|
970
|
+
"response_type": "ListAgentsResponse"
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
974
|
+
|
|
975
|
+
cname = None
|
|
976
|
+
|
|
977
|
+
collection_formats = {}
|
|
978
|
+
|
|
979
|
+
path_params = {}
|
|
980
|
+
if 'cluster_id' in local_var_params:
|
|
981
|
+
path_params['cluster_id'] = local_var_params['cluster_id']
|
|
982
|
+
if 'namespace' in local_var_params:
|
|
983
|
+
path_params['namespace'] = local_var_params['namespace']
|
|
984
|
+
|
|
985
|
+
query_params = []
|
|
986
|
+
|
|
987
|
+
header_params = {}
|
|
988
|
+
|
|
989
|
+
form_params = {}
|
|
990
|
+
|
|
991
|
+
body = None
|
|
992
|
+
if isinstance(request, SdkStreamRequest):
|
|
993
|
+
body = request.get_file_stream()
|
|
994
|
+
|
|
995
|
+
response_headers = []
|
|
996
|
+
|
|
997
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
998
|
+
['application/json'])
|
|
999
|
+
|
|
1000
|
+
auth_settings = []
|
|
1001
|
+
|
|
1002
|
+
http_info["cname"] = cname
|
|
1003
|
+
http_info["collection_formats"] = collection_formats
|
|
1004
|
+
http_info["path_params"] = path_params
|
|
1005
|
+
http_info["query_params"] = query_params
|
|
1006
|
+
http_info["header_params"] = header_params
|
|
1007
|
+
http_info["post_params"] = form_params
|
|
1008
|
+
http_info["body"] = body
|
|
1009
|
+
http_info["response_headers"] = response_headers
|
|
1010
|
+
|
|
1011
|
+
return http_info
|
|
1012
|
+
|
|
946
1013
|
def list_alarm_rule_async(self, request):
|
|
947
1014
|
"""查询阈值规则列表
|
|
948
1015
|
|
|
@@ -1406,6 +1473,69 @@ class AomAsyncClient(Client):
|
|
|
1406
1473
|
|
|
1407
1474
|
return http_info
|
|
1408
1475
|
|
|
1476
|
+
def list_permissions_async(self, request):
|
|
1477
|
+
"""查询aom2.0相关云服务授权信息
|
|
1478
|
+
|
|
1479
|
+
该接口用于查询aom2.0相关云服务授权信息。
|
|
1480
|
+
|
|
1481
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
:param request: Request instance for ListPermissions
|
|
1485
|
+
:type request: :class:`huaweicloudsdkaom.v2.ListPermissionsRequest`
|
|
1486
|
+
:rtype: :class:`huaweicloudsdkaom.v2.ListPermissionsResponse`
|
|
1487
|
+
"""
|
|
1488
|
+
http_info = self._list_permissions_http_info(request)
|
|
1489
|
+
return self._call_api(**http_info)
|
|
1490
|
+
|
|
1491
|
+
def list_permissions_async_invoker(self, request):
|
|
1492
|
+
http_info = self._list_permissions_http_info(request)
|
|
1493
|
+
return AsyncInvoker(self, http_info)
|
|
1494
|
+
|
|
1495
|
+
def _list_permissions_http_info(self, request):
|
|
1496
|
+
http_info = {
|
|
1497
|
+
"method": "GET",
|
|
1498
|
+
"resource_path": "/v1/{project_id}/aom/auth/grant",
|
|
1499
|
+
"request_type": request.__class__.__name__,
|
|
1500
|
+
"response_type": "ListPermissionsResponse"
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1504
|
+
|
|
1505
|
+
cname = None
|
|
1506
|
+
|
|
1507
|
+
collection_formats = {}
|
|
1508
|
+
|
|
1509
|
+
path_params = {}
|
|
1510
|
+
|
|
1511
|
+
query_params = []
|
|
1512
|
+
|
|
1513
|
+
header_params = {}
|
|
1514
|
+
|
|
1515
|
+
form_params = {}
|
|
1516
|
+
|
|
1517
|
+
body = None
|
|
1518
|
+
if isinstance(request, SdkStreamRequest):
|
|
1519
|
+
body = request.get_file_stream()
|
|
1520
|
+
|
|
1521
|
+
response_headers = []
|
|
1522
|
+
|
|
1523
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1524
|
+
['application/json'])
|
|
1525
|
+
|
|
1526
|
+
auth_settings = []
|
|
1527
|
+
|
|
1528
|
+
http_info["cname"] = cname
|
|
1529
|
+
http_info["collection_formats"] = collection_formats
|
|
1530
|
+
http_info["path_params"] = path_params
|
|
1531
|
+
http_info["query_params"] = query_params
|
|
1532
|
+
http_info["header_params"] = header_params
|
|
1533
|
+
http_info["post_params"] = form_params
|
|
1534
|
+
http_info["body"] = body
|
|
1535
|
+
http_info["response_headers"] = response_headers
|
|
1536
|
+
|
|
1537
|
+
return http_info
|
|
1538
|
+
|
|
1409
1539
|
def list_sample_async(self, request):
|
|
1410
1540
|
"""查询时序数据
|
|
1411
1541
|
|
|
@@ -2134,9 +2264,9 @@ class AomAsyncClient(Client):
|
|
|
2134
2264
|
return http_info
|
|
2135
2265
|
|
|
2136
2266
|
def create_prom_instance_async(self, request):
|
|
2137
|
-
"""新增Prometheus
|
|
2267
|
+
"""新增Prometheus实例
|
|
2138
2268
|
|
|
2139
|
-
该接口用于新增Prometheus
|
|
2269
|
+
该接口用于新增Prometheus实例。
|
|
2140
2270
|
|
|
2141
2271
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
2142
2272
|
|
|
@@ -2199,9 +2329,9 @@ class AomAsyncClient(Client):
|
|
|
2199
2329
|
return http_info
|
|
2200
2330
|
|
|
2201
2331
|
def create_recording_rule_async(self, request):
|
|
2202
|
-
"""
|
|
2332
|
+
"""创建Prometheus实例的预聚合规则
|
|
2203
2333
|
|
|
2204
|
-
|
|
2334
|
+
该接口用于给Prometheus实例创建预聚合规则。
|
|
2205
2335
|
|
|
2206
2336
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
2207
2337
|
|
|
@@ -2266,9 +2396,9 @@ class AomAsyncClient(Client):
|
|
|
2266
2396
|
return http_info
|
|
2267
2397
|
|
|
2268
2398
|
def delete_prom_instance_async(self, request):
|
|
2269
|
-
"""卸载托管Prometheus
|
|
2399
|
+
"""卸载托管Prometheus实例
|
|
2270
2400
|
|
|
2271
|
-
该接口用于卸载托管Prometheus
|
|
2401
|
+
该接口用于卸载托管Prometheus实例。
|
|
2272
2402
|
|
|
2273
2403
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
2274
2404
|
|
|
@@ -2331,9 +2461,9 @@ class AomAsyncClient(Client):
|
|
|
2331
2461
|
return http_info
|
|
2332
2462
|
|
|
2333
2463
|
def list_access_code_async(self, request):
|
|
2334
|
-
"""获取Prometheus
|
|
2464
|
+
"""获取Prometheus实例调用凭证
|
|
2335
2465
|
|
|
2336
|
-
该接口用于获取Prometheus
|
|
2466
|
+
该接口用于获取Prometheus实例调用凭证。
|
|
2337
2467
|
|
|
2338
2468
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
2339
2469
|
|
|
@@ -2393,31 +2523,31 @@ class AomAsyncClient(Client):
|
|
|
2393
2523
|
|
|
2394
2524
|
return http_info
|
|
2395
2525
|
|
|
2396
|
-
def
|
|
2397
|
-
"""
|
|
2526
|
+
def list_prom_instance_async(self, request):
|
|
2527
|
+
"""查询Prometheus实例
|
|
2398
2528
|
|
|
2399
|
-
|
|
2529
|
+
该接口用于查询Prometheus实例。
|
|
2400
2530
|
|
|
2401
2531
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
2402
2532
|
|
|
2403
2533
|
|
|
2404
|
-
:param request: Request instance for
|
|
2405
|
-
:type request: :class:`huaweicloudsdkaom.v2.
|
|
2406
|
-
:rtype: :class:`huaweicloudsdkaom.v2.
|
|
2534
|
+
:param request: Request instance for ListPromInstance
|
|
2535
|
+
:type request: :class:`huaweicloudsdkaom.v2.ListPromInstanceRequest`
|
|
2536
|
+
:rtype: :class:`huaweicloudsdkaom.v2.ListPromInstanceResponse`
|
|
2407
2537
|
"""
|
|
2408
|
-
http_info = self.
|
|
2538
|
+
http_info = self._list_prom_instance_http_info(request)
|
|
2409
2539
|
return self._call_api(**http_info)
|
|
2410
2540
|
|
|
2411
|
-
def
|
|
2412
|
-
http_info = self.
|
|
2541
|
+
def list_prom_instance_async_invoker(self, request):
|
|
2542
|
+
http_info = self._list_prom_instance_http_info(request)
|
|
2413
2543
|
return AsyncInvoker(self, http_info)
|
|
2414
2544
|
|
|
2415
|
-
def
|
|
2545
|
+
def _list_prom_instance_http_info(self, request):
|
|
2416
2546
|
http_info = {
|
|
2417
2547
|
"method": "GET",
|
|
2418
|
-
"resource_path": "/v1/{project_id}/
|
|
2548
|
+
"resource_path": "/v1/{project_id}/aom/prometheus",
|
|
2419
2549
|
"request_type": request.__class__.__name__,
|
|
2420
|
-
"response_type": "
|
|
2550
|
+
"response_type": "ListPromInstanceResponse"
|
|
2421
2551
|
}
|
|
2422
2552
|
|
|
2423
2553
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -2427,12 +2557,16 @@ class AomAsyncClient(Client):
|
|
|
2427
2557
|
collection_formats = {}
|
|
2428
2558
|
|
|
2429
2559
|
path_params = {}
|
|
2430
|
-
if 'cluster_id' in local_var_params:
|
|
2431
|
-
path_params['cluster_id'] = local_var_params['cluster_id']
|
|
2432
|
-
if 'namespace' in local_var_params:
|
|
2433
|
-
path_params['namespace'] = local_var_params['namespace']
|
|
2434
2560
|
|
|
2435
2561
|
query_params = []
|
|
2562
|
+
if 'prom_id' in local_var_params:
|
|
2563
|
+
query_params.append(('prom_id', local_var_params['prom_id']))
|
|
2564
|
+
if 'prom_type' in local_var_params:
|
|
2565
|
+
query_params.append(('prom_type', local_var_params['prom_type']))
|
|
2566
|
+
if 'cce_cluster_enable' in local_var_params:
|
|
2567
|
+
query_params.append(('cce_cluster_enable', local_var_params['cce_cluster_enable']))
|
|
2568
|
+
if 'prom_status' in local_var_params:
|
|
2569
|
+
query_params.append(('prom_status', local_var_params['prom_status']))
|
|
2436
2570
|
|
|
2437
2571
|
header_params = {}
|
|
2438
2572
|
|
|
@@ -2848,140 +2982,6 @@ class AomAsyncClient(Client):
|
|
|
2848
2982
|
|
|
2849
2983
|
return http_info
|
|
2850
2984
|
|
|
2851
|
-
def list_permissions_async(self, request):
|
|
2852
|
-
"""是否开通aom2.0
|
|
2853
|
-
|
|
2854
|
-
该接口用于查询用户是否已经完成aom2.0授权
|
|
2855
|
-
|
|
2856
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
:param request: Request instance for ListPermissions
|
|
2860
|
-
:type request: :class:`huaweicloudsdkaom.v2.ListPermissionsRequest`
|
|
2861
|
-
:rtype: :class:`huaweicloudsdkaom.v2.ListPermissionsResponse`
|
|
2862
|
-
"""
|
|
2863
|
-
http_info = self._list_permissions_http_info(request)
|
|
2864
|
-
return self._call_api(**http_info)
|
|
2865
|
-
|
|
2866
|
-
def list_permissions_async_invoker(self, request):
|
|
2867
|
-
http_info = self._list_permissions_http_info(request)
|
|
2868
|
-
return AsyncInvoker(self, http_info)
|
|
2869
|
-
|
|
2870
|
-
def _list_permissions_http_info(self, request):
|
|
2871
|
-
http_info = {
|
|
2872
|
-
"method": "GET",
|
|
2873
|
-
"resource_path": "/v1/{project_id}/aom/auth/grant",
|
|
2874
|
-
"request_type": request.__class__.__name__,
|
|
2875
|
-
"response_type": "ListPermissionsResponse"
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2879
|
-
|
|
2880
|
-
cname = None
|
|
2881
|
-
|
|
2882
|
-
collection_formats = {}
|
|
2883
|
-
|
|
2884
|
-
path_params = {}
|
|
2885
|
-
|
|
2886
|
-
query_params = []
|
|
2887
|
-
|
|
2888
|
-
header_params = {}
|
|
2889
|
-
|
|
2890
|
-
form_params = {}
|
|
2891
|
-
|
|
2892
|
-
body = None
|
|
2893
|
-
if isinstance(request, SdkStreamRequest):
|
|
2894
|
-
body = request.get_file_stream()
|
|
2895
|
-
|
|
2896
|
-
response_headers = []
|
|
2897
|
-
|
|
2898
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2899
|
-
['application/json'])
|
|
2900
|
-
|
|
2901
|
-
auth_settings = []
|
|
2902
|
-
|
|
2903
|
-
http_info["cname"] = cname
|
|
2904
|
-
http_info["collection_formats"] = collection_formats
|
|
2905
|
-
http_info["path_params"] = path_params
|
|
2906
|
-
http_info["query_params"] = query_params
|
|
2907
|
-
http_info["header_params"] = header_params
|
|
2908
|
-
http_info["post_params"] = form_params
|
|
2909
|
-
http_info["body"] = body
|
|
2910
|
-
http_info["response_headers"] = response_headers
|
|
2911
|
-
|
|
2912
|
-
return http_info
|
|
2913
|
-
|
|
2914
|
-
def list_prom_instance_async(self, request):
|
|
2915
|
-
"""获取所有正常实例
|
|
2916
|
-
|
|
2917
|
-
该接口用于获取所有正常prometheus实例
|
|
2918
|
-
|
|
2919
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
:param request: Request instance for ListPromInstance
|
|
2923
|
-
:type request: :class:`huaweicloudsdkaom.v2.ListPromInstanceRequest`
|
|
2924
|
-
:rtype: :class:`huaweicloudsdkaom.v2.ListPromInstanceResponse`
|
|
2925
|
-
"""
|
|
2926
|
-
http_info = self._list_prom_instance_http_info(request)
|
|
2927
|
-
return self._call_api(**http_info)
|
|
2928
|
-
|
|
2929
|
-
def list_prom_instance_async_invoker(self, request):
|
|
2930
|
-
http_info = self._list_prom_instance_http_info(request)
|
|
2931
|
-
return AsyncInvoker(self, http_info)
|
|
2932
|
-
|
|
2933
|
-
def _list_prom_instance_http_info(self, request):
|
|
2934
|
-
http_info = {
|
|
2935
|
-
"method": "GET",
|
|
2936
|
-
"resource_path": "/v1/{project_id}/aom/prometheus",
|
|
2937
|
-
"request_type": request.__class__.__name__,
|
|
2938
|
-
"response_type": "ListPromInstanceResponse"
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2942
|
-
|
|
2943
|
-
cname = None
|
|
2944
|
-
|
|
2945
|
-
collection_formats = {}
|
|
2946
|
-
|
|
2947
|
-
path_params = {}
|
|
2948
|
-
|
|
2949
|
-
query_params = []
|
|
2950
|
-
if 'prom_id' in local_var_params:
|
|
2951
|
-
query_params.append(('prom_id', local_var_params['prom_id']))
|
|
2952
|
-
if 'prom_type' in local_var_params:
|
|
2953
|
-
query_params.append(('prom_type', local_var_params['prom_type']))
|
|
2954
|
-
if 'cce_cluster_enable' in local_var_params:
|
|
2955
|
-
query_params.append(('cce_cluster_enable', local_var_params['cce_cluster_enable']))
|
|
2956
|
-
if 'prom_status' in local_var_params:
|
|
2957
|
-
query_params.append(('prom_status', local_var_params['prom_status']))
|
|
2958
|
-
|
|
2959
|
-
header_params = {}
|
|
2960
|
-
|
|
2961
|
-
form_params = {}
|
|
2962
|
-
|
|
2963
|
-
body = None
|
|
2964
|
-
if isinstance(request, SdkStreamRequest):
|
|
2965
|
-
body = request.get_file_stream()
|
|
2966
|
-
|
|
2967
|
-
response_headers = []
|
|
2968
|
-
|
|
2969
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2970
|
-
['application/json'])
|
|
2971
|
-
|
|
2972
|
-
auth_settings = []
|
|
2973
|
-
|
|
2974
|
-
http_info["cname"] = cname
|
|
2975
|
-
http_info["collection_formats"] = collection_formats
|
|
2976
|
-
http_info["path_params"] = path_params
|
|
2977
|
-
http_info["query_params"] = query_params
|
|
2978
|
-
http_info["header_params"] = header_params
|
|
2979
|
-
http_info["post_params"] = form_params
|
|
2980
|
-
http_info["body"] = body
|
|
2981
|
-
http_info["response_headers"] = response_headers
|
|
2982
|
-
|
|
2983
|
-
return http_info
|
|
2984
|
-
|
|
2985
2985
|
def list_range_query_aom_prom_get_async(self, request):
|
|
2986
2986
|
"""区间数据查询
|
|
2987
2987
|
|