tencentcloud-sdk-monitor 3.0.498 → 3.0.500
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +360 -0
- data/lib/v20180724/models.rb +972 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce3f4b89e70bd0fcec5ea3a7eecc0812cb1c21d
|
4
|
+
data.tar.gz: a68051e2977a829b75d2a1ab33fa75677b293d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9151ac2583a24b58c6ab8dc830a600b54ba14c6d12e024843910fb930933462b884546fa9399bcb6eb4df448e621db4555a946de0d58c712339fae9dce6c07
|
7
|
+
data.tar.gz: 38fcdb138b8121662f7f8e8e582efd3da3955cc72d79b123ca4674db3e938e96c2b03b30ca2224621f6bafe8e55d9fb59e4c5604013e715c0a581087aff9e0e9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.500
|
data/lib/v20180724/client.rb
CHANGED
@@ -367,6 +367,102 @@ module TencentCloud
|
|
367
367
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
368
368
|
end
|
369
369
|
|
370
|
+
# 创建告警策略
|
371
|
+
|
372
|
+
# @param request: Request instance for CreatePrometheusAlertPolicy.
|
373
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusAlertPolicyRequest`
|
374
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusAlertPolicyResponse`
|
375
|
+
def CreatePrometheusAlertPolicy(request)
|
376
|
+
body = send_request('CreatePrometheusAlertPolicy', request.serialize)
|
377
|
+
response = JSON.parse(body)
|
378
|
+
if response['Response'].key?('Error') == false
|
379
|
+
model = CreatePrometheusAlertPolicyResponse.new
|
380
|
+
model.deserialize(response['Response'])
|
381
|
+
model
|
382
|
+
else
|
383
|
+
code = response['Response']['Error']['Code']
|
384
|
+
message = response['Response']['Error']['Message']
|
385
|
+
reqid = response['Response']['RequestId']
|
386
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
387
|
+
end
|
388
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
389
|
+
raise e
|
390
|
+
rescue StandardError => e
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
392
|
+
end
|
393
|
+
|
394
|
+
# 与云监控融合的2.0实例关联集群
|
395
|
+
|
396
|
+
# @param request: Request instance for CreatePrometheusClusterAgent.
|
397
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusClusterAgentRequest`
|
398
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusClusterAgentResponse`
|
399
|
+
def CreatePrometheusClusterAgent(request)
|
400
|
+
body = send_request('CreatePrometheusClusterAgent', request.serialize)
|
401
|
+
response = JSON.parse(body)
|
402
|
+
if response['Response'].key?('Error') == false
|
403
|
+
model = CreatePrometheusClusterAgentResponse.new
|
404
|
+
model.deserialize(response['Response'])
|
405
|
+
model
|
406
|
+
else
|
407
|
+
code = response['Response']['Error']['Code']
|
408
|
+
message = response['Response']['Error']['Message']
|
409
|
+
reqid = response['Response']['RequestId']
|
410
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
411
|
+
end
|
412
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
413
|
+
raise e
|
414
|
+
rescue StandardError => e
|
415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
416
|
+
end
|
417
|
+
|
418
|
+
# 创建prometheus配置
|
419
|
+
|
420
|
+
# @param request: Request instance for CreatePrometheusConfig.
|
421
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusConfigRequest`
|
422
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusConfigResponse`
|
423
|
+
def CreatePrometheusConfig(request)
|
424
|
+
body = send_request('CreatePrometheusConfig', request.serialize)
|
425
|
+
response = JSON.parse(body)
|
426
|
+
if response['Response'].key?('Error') == false
|
427
|
+
model = CreatePrometheusConfigResponse.new
|
428
|
+
model.deserialize(response['Response'])
|
429
|
+
model
|
430
|
+
else
|
431
|
+
code = response['Response']['Error']['Code']
|
432
|
+
message = response['Response']['Error']['Message']
|
433
|
+
reqid = response['Response']['RequestId']
|
434
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
435
|
+
end
|
436
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
437
|
+
raise e
|
438
|
+
rescue StandardError => e
|
439
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
440
|
+
end
|
441
|
+
|
442
|
+
# 创建全局告警通知渠道
|
443
|
+
|
444
|
+
# @param request: Request instance for CreatePrometheusGlobalNotification.
|
445
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusGlobalNotificationRequest`
|
446
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreatePrometheusGlobalNotificationResponse`
|
447
|
+
def CreatePrometheusGlobalNotification(request)
|
448
|
+
body = send_request('CreatePrometheusGlobalNotification', request.serialize)
|
449
|
+
response = JSON.parse(body)
|
450
|
+
if response['Response'].key?('Error') == false
|
451
|
+
model = CreatePrometheusGlobalNotificationResponse.new
|
452
|
+
model.deserialize(response['Response'])
|
453
|
+
model
|
454
|
+
else
|
455
|
+
code = response['Response']['Error']['Code']
|
456
|
+
message = response['Response']['Error']['Message']
|
457
|
+
reqid = response['Response']['RequestId']
|
458
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
459
|
+
end
|
460
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
461
|
+
raise e
|
462
|
+
rescue StandardError => e
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
464
|
+
end
|
465
|
+
|
370
466
|
# 创建按量 Prometheus 实例,根据用量收费实例
|
371
467
|
|
372
468
|
# @param request: Request instance for CreatePrometheusMultiTenantInstancePostPayMode.
|
@@ -729,6 +825,78 @@ module TencentCloud
|
|
729
825
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
730
826
|
end
|
731
827
|
|
828
|
+
# 删除2.0实例告警策略
|
829
|
+
|
830
|
+
# @param request: Request instance for DeletePrometheusAlertPolicy.
|
831
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusAlertPolicyRequest`
|
832
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusAlertPolicyResponse`
|
833
|
+
def DeletePrometheusAlertPolicy(request)
|
834
|
+
body = send_request('DeletePrometheusAlertPolicy', request.serialize)
|
835
|
+
response = JSON.parse(body)
|
836
|
+
if response['Response'].key?('Error') == false
|
837
|
+
model = DeletePrometheusAlertPolicyResponse.new
|
838
|
+
model.deserialize(response['Response'])
|
839
|
+
model
|
840
|
+
else
|
841
|
+
code = response['Response']['Error']['Code']
|
842
|
+
message = response['Response']['Error']['Message']
|
843
|
+
reqid = response['Response']['RequestId']
|
844
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
845
|
+
end
|
846
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
847
|
+
raise e
|
848
|
+
rescue StandardError => e
|
849
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
850
|
+
end
|
851
|
+
|
852
|
+
# 解除TMP实例的集群关联
|
853
|
+
|
854
|
+
# @param request: Request instance for DeletePrometheusClusterAgent.
|
855
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusClusterAgentRequest`
|
856
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusClusterAgentResponse`
|
857
|
+
def DeletePrometheusClusterAgent(request)
|
858
|
+
body = send_request('DeletePrometheusClusterAgent', request.serialize)
|
859
|
+
response = JSON.parse(body)
|
860
|
+
if response['Response'].key?('Error') == false
|
861
|
+
model = DeletePrometheusClusterAgentResponse.new
|
862
|
+
model.deserialize(response['Response'])
|
863
|
+
model
|
864
|
+
else
|
865
|
+
code = response['Response']['Error']['Code']
|
866
|
+
message = response['Response']['Error']['Message']
|
867
|
+
reqid = response['Response']['RequestId']
|
868
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
869
|
+
end
|
870
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
871
|
+
raise e
|
872
|
+
rescue StandardError => e
|
873
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
874
|
+
end
|
875
|
+
|
876
|
+
# 删除Prometheus配置,如果目标不存在,将返回成功
|
877
|
+
|
878
|
+
# @param request: Request instance for DeletePrometheusConfig.
|
879
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusConfigRequest`
|
880
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeletePrometheusConfigResponse`
|
881
|
+
def DeletePrometheusConfig(request)
|
882
|
+
body = send_request('DeletePrometheusConfig', request.serialize)
|
883
|
+
response = JSON.parse(body)
|
884
|
+
if response['Response'].key?('Error') == false
|
885
|
+
model = DeletePrometheusConfigResponse.new
|
886
|
+
model.deserialize(response['Response'])
|
887
|
+
model
|
888
|
+
else
|
889
|
+
code = response['Response']['Error']['Code']
|
890
|
+
message = response['Response']['Error']['Message']
|
891
|
+
reqid = response['Response']['RequestId']
|
892
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
893
|
+
end
|
894
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
895
|
+
raise e
|
896
|
+
rescue StandardError => e
|
897
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
898
|
+
end
|
899
|
+
|
732
900
|
# 删除聚合实例
|
733
901
|
|
734
902
|
# @param request: Request instance for DeletePrometheusRecordRuleYaml.
|
@@ -1741,6 +1909,30 @@ module TencentCloud
|
|
1741
1909
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1742
1910
|
end
|
1743
1911
|
|
1912
|
+
# 获取TMP实例关联集群列表
|
1913
|
+
|
1914
|
+
# @param request: Request instance for DescribePrometheusClusterAgents.
|
1915
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusClusterAgentsRequest`
|
1916
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusClusterAgentsResponse`
|
1917
|
+
def DescribePrometheusClusterAgents(request)
|
1918
|
+
body = send_request('DescribePrometheusClusterAgents', request.serialize)
|
1919
|
+
response = JSON.parse(body)
|
1920
|
+
if response['Response'].key?('Error') == false
|
1921
|
+
model = DescribePrometheusClusterAgentsResponse.new
|
1922
|
+
model.deserialize(response['Response'])
|
1923
|
+
model
|
1924
|
+
else
|
1925
|
+
code = response['Response']['Error']['Code']
|
1926
|
+
message = response['Response']['Error']['Message']
|
1927
|
+
reqid = response['Response']['RequestId']
|
1928
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1929
|
+
end
|
1930
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1931
|
+
raise e
|
1932
|
+
rescue StandardError => e
|
1933
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1934
|
+
end
|
1935
|
+
|
1744
1936
|
# 拉取Prometheus配置
|
1745
1937
|
|
1746
1938
|
# @param request: Request instance for DescribePrometheusConfig.
|
@@ -1765,6 +1957,54 @@ module TencentCloud
|
|
1765
1957
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1766
1958
|
end
|
1767
1959
|
|
1960
|
+
# 获得实例级别抓取配置
|
1961
|
+
|
1962
|
+
# @param request: Request instance for DescribePrometheusGlobalConfig.
|
1963
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusGlobalConfigRequest`
|
1964
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusGlobalConfigResponse`
|
1965
|
+
def DescribePrometheusGlobalConfig(request)
|
1966
|
+
body = send_request('DescribePrometheusGlobalConfig', request.serialize)
|
1967
|
+
response = JSON.parse(body)
|
1968
|
+
if response['Response'].key?('Error') == false
|
1969
|
+
model = DescribePrometheusGlobalConfigResponse.new
|
1970
|
+
model.deserialize(response['Response'])
|
1971
|
+
model
|
1972
|
+
else
|
1973
|
+
code = response['Response']['Error']['Code']
|
1974
|
+
message = response['Response']['Error']['Message']
|
1975
|
+
reqid = response['Response']['RequestId']
|
1976
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1977
|
+
end
|
1978
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1979
|
+
raise e
|
1980
|
+
rescue StandardError => e
|
1981
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
# 查询全局告警通知渠道
|
1985
|
+
|
1986
|
+
# @param request: Request instance for DescribePrometheusGlobalNotification.
|
1987
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusGlobalNotificationRequest`
|
1988
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusGlobalNotificationResponse`
|
1989
|
+
def DescribePrometheusGlobalNotification(request)
|
1990
|
+
body = send_request('DescribePrometheusGlobalNotification', request.serialize)
|
1991
|
+
response = JSON.parse(body)
|
1992
|
+
if response['Response'].key?('Error') == false
|
1993
|
+
model = DescribePrometheusGlobalNotificationResponse.new
|
1994
|
+
model.deserialize(response['Response'])
|
1995
|
+
model
|
1996
|
+
else
|
1997
|
+
code = response['Response']['Error']['Code']
|
1998
|
+
message = response['Response']['Error']['Message']
|
1999
|
+
reqid = response['Response']['RequestId']
|
2000
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2001
|
+
end
|
2002
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2003
|
+
raise e
|
2004
|
+
rescue StandardError => e
|
2005
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2006
|
+
end
|
2007
|
+
|
1768
2008
|
# 获取TMP实例详情
|
1769
2009
|
|
1770
2010
|
# @param request: Request instance for DescribePrometheusInstanceDetail.
|
@@ -1961,6 +2201,30 @@ module TencentCloud
|
|
1961
2201
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1962
2202
|
end
|
1963
2203
|
|
2204
|
+
# 获取targets信息
|
2205
|
+
|
2206
|
+
# @param request: Request instance for DescribePrometheusTargetsTMP.
|
2207
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTargetsTMPRequest`
|
2208
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusTargetsTMPResponse`
|
2209
|
+
def DescribePrometheusTargetsTMP(request)
|
2210
|
+
body = send_request('DescribePrometheusTargetsTMP', request.serialize)
|
2211
|
+
response = JSON.parse(body)
|
2212
|
+
if response['Response'].key?('Error') == false
|
2213
|
+
model = DescribePrometheusTargetsTMPResponse.new
|
2214
|
+
model.deserialize(response['Response'])
|
2215
|
+
model
|
2216
|
+
else
|
2217
|
+
code = response['Response']['Error']['Code']
|
2218
|
+
message = response['Response']['Error']['Message']
|
2219
|
+
reqid = response['Response']['RequestId']
|
2220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2221
|
+
end
|
2222
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2223
|
+
raise e
|
2224
|
+
rescue StandardError => e
|
2225
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2226
|
+
end
|
2227
|
+
|
1964
2228
|
# 拉取模板列表,默认模板将总是在最前面
|
1965
2229
|
|
1966
2230
|
# @param request: Request instance for DescribePrometheusTemp.
|
@@ -2521,6 +2785,102 @@ module TencentCloud
|
|
2521
2785
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2522
2786
|
end
|
2523
2787
|
|
2788
|
+
# 修改被关联集群的external labels
|
2789
|
+
|
2790
|
+
# @param request: Request instance for ModifyPrometheusAgentExternalLabels.
|
2791
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusAgentExternalLabelsRequest`
|
2792
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusAgentExternalLabelsResponse`
|
2793
|
+
def ModifyPrometheusAgentExternalLabels(request)
|
2794
|
+
body = send_request('ModifyPrometheusAgentExternalLabels', request.serialize)
|
2795
|
+
response = JSON.parse(body)
|
2796
|
+
if response['Response'].key?('Error') == false
|
2797
|
+
model = ModifyPrometheusAgentExternalLabelsResponse.new
|
2798
|
+
model.deserialize(response['Response'])
|
2799
|
+
model
|
2800
|
+
else
|
2801
|
+
code = response['Response']['Error']['Code']
|
2802
|
+
message = response['Response']['Error']['Message']
|
2803
|
+
reqid = response['Response']['RequestId']
|
2804
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2805
|
+
end
|
2806
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2807
|
+
raise e
|
2808
|
+
rescue StandardError => e
|
2809
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2810
|
+
end
|
2811
|
+
|
2812
|
+
# 修改2.0实例告警策略
|
2813
|
+
|
2814
|
+
# @param request: Request instance for ModifyPrometheusAlertPolicy.
|
2815
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusAlertPolicyRequest`
|
2816
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusAlertPolicyResponse`
|
2817
|
+
def ModifyPrometheusAlertPolicy(request)
|
2818
|
+
body = send_request('ModifyPrometheusAlertPolicy', request.serialize)
|
2819
|
+
response = JSON.parse(body)
|
2820
|
+
if response['Response'].key?('Error') == false
|
2821
|
+
model = ModifyPrometheusAlertPolicyResponse.new
|
2822
|
+
model.deserialize(response['Response'])
|
2823
|
+
model
|
2824
|
+
else
|
2825
|
+
code = response['Response']['Error']['Code']
|
2826
|
+
message = response['Response']['Error']['Message']
|
2827
|
+
reqid = response['Response']['RequestId']
|
2828
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2829
|
+
end
|
2830
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2831
|
+
raise e
|
2832
|
+
rescue StandardError => e
|
2833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
# 修改prometheus配置,如果配置项不存在,则会新增
|
2837
|
+
|
2838
|
+
# @param request: Request instance for ModifyPrometheusConfig.
|
2839
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusConfigRequest`
|
2840
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusConfigResponse`
|
2841
|
+
def ModifyPrometheusConfig(request)
|
2842
|
+
body = send_request('ModifyPrometheusConfig', request.serialize)
|
2843
|
+
response = JSON.parse(body)
|
2844
|
+
if response['Response'].key?('Error') == false
|
2845
|
+
model = ModifyPrometheusConfigResponse.new
|
2846
|
+
model.deserialize(response['Response'])
|
2847
|
+
model
|
2848
|
+
else
|
2849
|
+
code = response['Response']['Error']['Code']
|
2850
|
+
message = response['Response']['Error']['Message']
|
2851
|
+
reqid = response['Response']['RequestId']
|
2852
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2853
|
+
end
|
2854
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2855
|
+
raise e
|
2856
|
+
rescue StandardError => e
|
2857
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2858
|
+
end
|
2859
|
+
|
2860
|
+
# 修改全局告警通知渠道
|
2861
|
+
|
2862
|
+
# @param request: Request instance for ModifyPrometheusGlobalNotification.
|
2863
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusGlobalNotificationRequest`
|
2864
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyPrometheusGlobalNotificationResponse`
|
2865
|
+
def ModifyPrometheusGlobalNotification(request)
|
2866
|
+
body = send_request('ModifyPrometheusGlobalNotification', request.serialize)
|
2867
|
+
response = JSON.parse(body)
|
2868
|
+
if response['Response'].key?('Error') == false
|
2869
|
+
model = ModifyPrometheusGlobalNotificationResponse.new
|
2870
|
+
model.deserialize(response['Response'])
|
2871
|
+
model
|
2872
|
+
else
|
2873
|
+
code = response['Response']['Error']['Code']
|
2874
|
+
message = response['Response']['Error']['Message']
|
2875
|
+
reqid = response['Response']['RequestId']
|
2876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2877
|
+
end
|
2878
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2879
|
+
raise e
|
2880
|
+
rescue StandardError => e
|
2881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2882
|
+
end
|
2883
|
+
|
2524
2884
|
# 修改 Prometheus 实例相关属性
|
2525
2885
|
|
2526
2886
|
# @param request: Request instance for ModifyPrometheusInstanceAttributes.
|