tencentcloud-sdk-tke 1.0.315 → 1.0.318

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e873b5a9b6585e1cc13266a4fdcc2c965ba350d8
4
- data.tar.gz: e73bbf647ce73060ee76a7311e5115dcf9678154
3
+ metadata.gz: 1494905a9b88ebd29a246e92d993171334c568d3
4
+ data.tar.gz: 73a6da9b73899a5c487f022182c49616645ef50e
5
5
  SHA512:
6
- metadata.gz: 3e5157be14482afd9bdd531c886404b03899e254b43c4c93a6ef6fc824bb9ecaca70a05f850fac69764705dfc71dcf2fa8ac27bd943f2f60e764e07cc871c250
7
- data.tar.gz: de4ba85a132d7434f2c845519598c2a4c58f55544cd7879f248c92f8261d9e43ee76a702b0897879f83afc2ebaa4d0e5b29a59dc779e56386f0c6e0e5e54a3d5
6
+ metadata.gz: bd1c1d6003d433593c91dfeaf3c2b01012d690980b8a26e039407e8b9045fbc5d69e5dfb6f1b0ccbf48ffb1f857fb2c6e62ae740850786a047181ade82ae3d1e
7
+ data.tar.gz: b6a52319c38945f688b084d9504eaa59b87427533587e08202882b549fa71bb8317ab595832bd00a923514be19db26250f175686883c3e4977e3b24e1a320765
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.315
1
+ 1.0.318
@@ -509,6 +509,30 @@ module TencentCloud
509
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
510
  end
511
511
 
512
+ # 创建全局告警通知渠道
513
+
514
+ # @param request: Request instance for CreatePrometheusGlobalNotification.
515
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreatePrometheusGlobalNotificationRequest`
516
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreatePrometheusGlobalNotificationResponse`
517
+ def CreatePrometheusGlobalNotification(request)
518
+ body = send_request('CreatePrometheusGlobalNotification', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = CreatePrometheusGlobalNotificationResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
512
536
  # 创建一个云原生Prometheus模板
513
537
 
514
538
  # @param request: Request instance for CreatePrometheusTemp.
@@ -1829,6 +1853,30 @@ module TencentCloud
1829
1853
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
1854
  end
1831
1855
 
1856
+ # 查询全局告警通知渠道
1857
+
1858
+ # @param request: Request instance for DescribePrometheusGlobalNotification.
1859
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePrometheusGlobalNotificationRequest`
1860
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePrometheusGlobalNotificationResponse`
1861
+ def DescribePrometheusGlobalNotification(request)
1862
+ body = send_request('DescribePrometheusGlobalNotification', request.serialize)
1863
+ response = JSON.parse(body)
1864
+ if response['Response'].key?('Error') == false
1865
+ model = DescribePrometheusGlobalNotificationResponse.new
1866
+ model.deserialize(response['Response'])
1867
+ model
1868
+ else
1869
+ code = response['Response']['Error']['Code']
1870
+ message = response['Response']['Error']['Message']
1871
+ reqid = response['Response']['RequestId']
1872
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1873
+ end
1874
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1875
+ raise e
1876
+ rescue StandardError => e
1877
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1878
+ end
1879
+
1832
1880
  # 获取实例详细信息
1833
1881
 
1834
1882
  # @param request: Request instance for DescribePrometheusInstance.
@@ -2765,6 +2813,30 @@ module TencentCloud
2765
2813
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2766
2814
  end
2767
2815
 
2816
+ # 修改全局告警通知渠道
2817
+
2818
+ # @param request: Request instance for ModifyPrometheusGlobalNotification.
2819
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusGlobalNotificationRequest`
2820
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusGlobalNotificationResponse`
2821
+ def ModifyPrometheusGlobalNotification(request)
2822
+ body = send_request('ModifyPrometheusGlobalNotification', request.serialize)
2823
+ response = JSON.parse(body)
2824
+ if response['Response'].key?('Error') == false
2825
+ model = ModifyPrometheusGlobalNotificationResponse.new
2826
+ model.deserialize(response['Response'])
2827
+ model
2828
+ else
2829
+ code = response['Response']['Error']['Code']
2830
+ message = response['Response']['Error']['Message']
2831
+ reqid = response['Response']['RequestId']
2832
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2833
+ end
2834
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2835
+ raise e
2836
+ rescue StandardError => e
2837
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2838
+ end
2839
+
2768
2840
  # 修改模板内容
2769
2841
 
2770
2842
  # @param request: Request instance for ModifyPrometheusTemp.