tencentcloud-sdk-tke 1.0.314 → 1.0.317
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180525/client.rb +96 -0
- data/lib/v20180525/models.rb +986 -49
- 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: c77b5c56ba8225cc6f1416393414f967f1144f57
|
4
|
+
data.tar.gz: f35a65d26d3c3acc4e070c146b38bef2e5358f0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9307866c7cfd77c634f3b5b1949abbfe78cfe156667e2272d359ba23cbede7dab2ad76d222e8f71795ccd38542103c27fdc143579021ea148793e184ebcc779
|
7
|
+
data.tar.gz: 9030e5841a1e78c8cd96eb8d1683771f7c3976d2c458e3085210067769753136f4842cf4679fdda8b9ba9fd545c919c6ed4013cc36cb7b1072e1181ae49cd5fd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.317
|
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,54 @@ 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
|
+
|
2840
|
+
# 修改模板内容
|
2841
|
+
|
2842
|
+
# @param request: Request instance for ModifyPrometheusTemp.
|
2843
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusTempRequest`
|
2844
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::ModifyPrometheusTempResponse`
|
2845
|
+
def ModifyPrometheusTemp(request)
|
2846
|
+
body = send_request('ModifyPrometheusTemp', request.serialize)
|
2847
|
+
response = JSON.parse(body)
|
2848
|
+
if response['Response'].key?('Error') == false
|
2849
|
+
model = ModifyPrometheusTempResponse.new
|
2850
|
+
model.deserialize(response['Response'])
|
2851
|
+
model
|
2852
|
+
else
|
2853
|
+
code = response['Response']['Error']['Code']
|
2854
|
+
message = response['Response']['Error']['Message']
|
2855
|
+
reqid = response['Response']['RequestId']
|
2856
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2857
|
+
end
|
2858
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2859
|
+
raise e
|
2860
|
+
rescue StandardError => e
|
2861
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2862
|
+
end
|
2863
|
+
|
2768
2864
|
# 修改模板内容
|
2769
2865
|
|
2770
2866
|
# @param request: Request instance for ModifyPrometheusTemplate.
|