tencentcloud-sdk-tke 1.0.315 → 1.0.316
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/v20180525/client.rb +72 -0
- data/lib/v20180525/models.rb +943 -33
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b6aeb64faa48137ae273b9d60a3271e94c66851
|
4
|
+
data.tar.gz: 58d79a936b7cb9e562ddd5b5cc2530c42dce5ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83994fde8c695da6928233d59b433d616734ade3a13730547ff8b7d1cb5e67628e0d80570656361cd4a15ed02540e5a05d0445fd561b0e7a86533ba775155fc0
|
7
|
+
data.tar.gz: c0c5de7cfd439948ec6cf8cf6e9a8c14d25f9c78b36056155603d2b25851d63b38f723b7306a35b63c8c12d97608a3b998c1a6df362c045a4f084a143ed443a7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.316
|
data/lib/v20180525/client.rb
CHANGED
@@ -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.
|