tencentcloud-sdk-monitor 3.0.389 → 3.0.390
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 +904 -88
- data/lib/v20180724/models.rb +1877 -225
- metadata +2 -2
data/lib/v20180724/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 强制销毁 Grafana 实例
|
105
|
+
|
106
|
+
# @param request: Request instance for CleanGrafanaInstance.
|
107
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CleanGrafanaInstanceRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CleanGrafanaInstanceResponse`
|
109
|
+
def CleanGrafanaInstance(request)
|
110
|
+
body = send_request('CleanGrafanaInstance', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CleanGrafanaInstanceResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
104
128
|
# 创建通知模板
|
105
129
|
|
106
130
|
# @param request: Request instance for CreateAlarmNotice.
|
@@ -199,6 +223,78 @@ module TencentCloud
|
|
199
223
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
200
224
|
end
|
201
225
|
|
226
|
+
# 创建 Grafana 实例
|
227
|
+
|
228
|
+
# @param request: Request instance for CreateGrafanaInstance.
|
229
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaInstanceRequest`
|
230
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaInstanceResponse`
|
231
|
+
def CreateGrafanaInstance(request)
|
232
|
+
body = send_request('CreateGrafanaInstance', request.serialize)
|
233
|
+
response = JSON.parse(body)
|
234
|
+
if response['Response'].key?('Error') == false
|
235
|
+
model = CreateGrafanaInstanceResponse.new
|
236
|
+
model.deserialize(response['Response'])
|
237
|
+
model
|
238
|
+
else
|
239
|
+
code = response['Response']['Error']['Code']
|
240
|
+
message = response['Response']['Error']['Message']
|
241
|
+
reqid = response['Response']['RequestId']
|
242
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
243
|
+
end
|
244
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
245
|
+
raise e
|
246
|
+
rescue StandardError => e
|
247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
|
+
end
|
249
|
+
|
250
|
+
# 创建 Grafana 集成配置
|
251
|
+
|
252
|
+
# @param request: Request instance for CreateGrafanaIntegration.
|
253
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaIntegrationRequest`
|
254
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaIntegrationResponse`
|
255
|
+
def CreateGrafanaIntegration(request)
|
256
|
+
body = send_request('CreateGrafanaIntegration', request.serialize)
|
257
|
+
response = JSON.parse(body)
|
258
|
+
if response['Response'].key?('Error') == false
|
259
|
+
model = CreateGrafanaIntegrationResponse.new
|
260
|
+
model.deserialize(response['Response'])
|
261
|
+
model
|
262
|
+
else
|
263
|
+
code = response['Response']['Error']['Code']
|
264
|
+
message = response['Response']['Error']['Message']
|
265
|
+
reqid = response['Response']['RequestId']
|
266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
267
|
+
end
|
268
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
269
|
+
raise e
|
270
|
+
rescue StandardError => e
|
271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
272
|
+
end
|
273
|
+
|
274
|
+
# 创建 Grafana 告警通道
|
275
|
+
|
276
|
+
# @param request: Request instance for CreateGrafanaNotificationChannel.
|
277
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaNotificationChannelRequest`
|
278
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreateGrafanaNotificationChannelResponse`
|
279
|
+
def CreateGrafanaNotificationChannel(request)
|
280
|
+
body = send_request('CreateGrafanaNotificationChannel', request.serialize)
|
281
|
+
response = JSON.parse(body)
|
282
|
+
if response['Response'].key?('Error') == false
|
283
|
+
model = CreateGrafanaNotificationChannelResponse.new
|
284
|
+
model.deserialize(response['Response'])
|
285
|
+
model
|
286
|
+
else
|
287
|
+
code = response['Response']['Error']['Code']
|
288
|
+
message = response['Response']['Error']['Message']
|
289
|
+
reqid = response['Response']['RequestId']
|
290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
291
|
+
end
|
292
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
293
|
+
raise e
|
294
|
+
rescue StandardError => e
|
295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
296
|
+
end
|
297
|
+
|
202
298
|
# 增加策略组
|
203
299
|
|
204
300
|
# @param request: Request instance for CreatePolicyGroup.
|
@@ -319,6 +415,30 @@ module TencentCloud
|
|
319
415
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
320
416
|
end
|
321
417
|
|
418
|
+
# Grafana实例授权其他腾讯云用户
|
419
|
+
|
420
|
+
# @param request: Request instance for CreateSSOAccount.
|
421
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::CreateSSOAccountRequest`
|
422
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::CreateSSOAccountResponse`
|
423
|
+
def CreateSSOAccount(request)
|
424
|
+
body = send_request('CreateSSOAccount', request.serialize)
|
425
|
+
response = JSON.parse(body)
|
426
|
+
if response['Response'].key?('Error') == false
|
427
|
+
model = CreateSSOAccountResponse.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
|
+
|
322
442
|
# 在腾讯云容器服务下创建 Prometheus 服务发现。
|
323
443
|
# <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
324
444
|
# <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
@@ -441,6 +561,78 @@ module TencentCloud
|
|
441
561
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
442
562
|
end
|
443
563
|
|
564
|
+
# 删除 Grafana 实例
|
565
|
+
|
566
|
+
# @param request: Request instance for DeleteGrafanaInstance.
|
567
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaInstanceRequest`
|
568
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaInstanceResponse`
|
569
|
+
def DeleteGrafanaInstance(request)
|
570
|
+
body = send_request('DeleteGrafanaInstance', request.serialize)
|
571
|
+
response = JSON.parse(body)
|
572
|
+
if response['Response'].key?('Error') == false
|
573
|
+
model = DeleteGrafanaInstanceResponse.new
|
574
|
+
model.deserialize(response['Response'])
|
575
|
+
model
|
576
|
+
else
|
577
|
+
code = response['Response']['Error']['Code']
|
578
|
+
message = response['Response']['Error']['Message']
|
579
|
+
reqid = response['Response']['RequestId']
|
580
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
581
|
+
end
|
582
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
583
|
+
raise e
|
584
|
+
rescue StandardError => e
|
585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
586
|
+
end
|
587
|
+
|
588
|
+
# 删除 Grafana 集成配置
|
589
|
+
|
590
|
+
# @param request: Request instance for DeleteGrafanaIntegration.
|
591
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaIntegrationRequest`
|
592
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaIntegrationResponse`
|
593
|
+
def DeleteGrafanaIntegration(request)
|
594
|
+
body = send_request('DeleteGrafanaIntegration', request.serialize)
|
595
|
+
response = JSON.parse(body)
|
596
|
+
if response['Response'].key?('Error') == false
|
597
|
+
model = DeleteGrafanaIntegrationResponse.new
|
598
|
+
model.deserialize(response['Response'])
|
599
|
+
model
|
600
|
+
else
|
601
|
+
code = response['Response']['Error']['Code']
|
602
|
+
message = response['Response']['Error']['Message']
|
603
|
+
reqid = response['Response']['RequestId']
|
604
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
605
|
+
end
|
606
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
607
|
+
raise e
|
608
|
+
rescue StandardError => e
|
609
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
610
|
+
end
|
611
|
+
|
612
|
+
# 删除 Grafana 告警通道
|
613
|
+
|
614
|
+
# @param request: Request instance for DeleteGrafanaNotificationChannel.
|
615
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaNotificationChannelRequest`
|
616
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteGrafanaNotificationChannelResponse`
|
617
|
+
def DeleteGrafanaNotificationChannel(request)
|
618
|
+
body = send_request('DeleteGrafanaNotificationChannel', request.serialize)
|
619
|
+
response = JSON.parse(body)
|
620
|
+
if response['Response'].key?('Error') == false
|
621
|
+
model = DeleteGrafanaNotificationChannelResponse.new
|
622
|
+
model.deserialize(response['Response'])
|
623
|
+
model
|
624
|
+
else
|
625
|
+
code = response['Response']['Error']['Code']
|
626
|
+
message = response['Response']['Error']['Message']
|
627
|
+
reqid = response['Response']['RequestId']
|
628
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
629
|
+
end
|
630
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
631
|
+
raise e
|
632
|
+
rescue StandardError => e
|
633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
634
|
+
end
|
635
|
+
|
444
636
|
# 删除告警策略组
|
445
637
|
|
446
638
|
# @param request: Request instance for DeletePolicyGroup.
|
@@ -513,6 +705,30 @@ module TencentCloud
|
|
513
705
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
514
706
|
end
|
515
707
|
|
708
|
+
# Grafana可视化服务 删除授权用户
|
709
|
+
|
710
|
+
# @param request: Request instance for DeleteSSOAccount.
|
711
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DeleteSSOAccountRequest`
|
712
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DeleteSSOAccountResponse`
|
713
|
+
def DeleteSSOAccount(request)
|
714
|
+
body = send_request('DeleteSSOAccount', request.serialize)
|
715
|
+
response = JSON.parse(body)
|
716
|
+
if response['Response'].key?('Error') == false
|
717
|
+
model = DeleteSSOAccountResponse.new
|
718
|
+
model.deserialize(response['Response'])
|
719
|
+
model
|
720
|
+
else
|
721
|
+
code = response['Response']['Error']['Code']
|
722
|
+
message = response['Response']['Error']['Message']
|
723
|
+
reqid = response['Response']['RequestId']
|
724
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
725
|
+
end
|
726
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
727
|
+
raise e
|
728
|
+
rescue StandardError => e
|
729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
730
|
+
end
|
731
|
+
|
516
732
|
# 删除在腾讯云容器服务下创建的 Prometheus 服务发现。
|
517
733
|
# <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
518
734
|
# <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
@@ -901,16 +1117,16 @@ module TencentCloud
|
|
901
1117
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
902
1118
|
end
|
903
1119
|
|
904
|
-
#
|
1120
|
+
# 列出 Grafana DNS 配置
|
905
1121
|
|
906
|
-
# @param request: Request instance for
|
907
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
908
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
909
|
-
def
|
910
|
-
body = send_request('
|
1122
|
+
# @param request: Request instance for DescribeDNSConfig.
|
1123
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeDNSConfigRequest`
|
1124
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeDNSConfigResponse`
|
1125
|
+
def DescribeDNSConfig(request)
|
1126
|
+
body = send_request('DescribeDNSConfig', request.serialize)
|
911
1127
|
response = JSON.parse(body)
|
912
1128
|
if response['Response'].key?('Error') == false
|
913
|
-
model =
|
1129
|
+
model = DescribeDNSConfigResponse.new
|
914
1130
|
model.deserialize(response['Response'])
|
915
1131
|
model
|
916
1132
|
else
|
@@ -925,16 +1141,16 @@ module TencentCloud
|
|
925
1141
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
926
1142
|
end
|
927
1143
|
|
928
|
-
#
|
1144
|
+
# 查询 exporter 集成列表
|
929
1145
|
|
930
|
-
# @param request: Request instance for
|
931
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
932
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
933
|
-
def
|
934
|
-
body = send_request('
|
1146
|
+
# @param request: Request instance for DescribeExporterIntegrations.
|
1147
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeExporterIntegrationsRequest`
|
1148
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeExporterIntegrationsResponse`
|
1149
|
+
def DescribeExporterIntegrations(request)
|
1150
|
+
body = send_request('DescribeExporterIntegrations', request.serialize)
|
935
1151
|
response = JSON.parse(body)
|
936
1152
|
if response['Response'].key?('Error') == false
|
937
|
-
model =
|
1153
|
+
model = DescribeExporterIntegrationsResponse.new
|
938
1154
|
model.deserialize(response['Response'])
|
939
1155
|
model
|
940
1156
|
else
|
@@ -949,16 +1165,16 @@ module TencentCloud
|
|
949
1165
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
950
1166
|
end
|
951
1167
|
|
952
|
-
#
|
1168
|
+
# 列出 Grafana 的设置,即 grafana.ini 文件内容
|
953
1169
|
|
954
|
-
# @param request: Request instance for
|
955
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
956
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
957
|
-
def
|
958
|
-
body = send_request('
|
1170
|
+
# @param request: Request instance for DescribeGrafanaConfig.
|
1171
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaConfigRequest`
|
1172
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaConfigResponse`
|
1173
|
+
def DescribeGrafanaConfig(request)
|
1174
|
+
body = send_request('DescribeGrafanaConfig', request.serialize)
|
959
1175
|
response = JSON.parse(body)
|
960
1176
|
if response['Response'].key?('Error') == false
|
961
|
-
model =
|
1177
|
+
model = DescribeGrafanaConfigResponse.new
|
962
1178
|
model.deserialize(response['Response'])
|
963
1179
|
model
|
964
1180
|
else
|
@@ -973,16 +1189,16 @@ module TencentCloud
|
|
973
1189
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
974
1190
|
end
|
975
1191
|
|
976
|
-
#
|
1192
|
+
# 列出 Grafana 环境变量
|
977
1193
|
|
978
|
-
# @param request: Request instance for
|
979
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
980
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
981
|
-
def
|
982
|
-
body = send_request('
|
1194
|
+
# @param request: Request instance for DescribeGrafanaEnvironments.
|
1195
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaEnvironmentsRequest`
|
1196
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaEnvironmentsResponse`
|
1197
|
+
def DescribeGrafanaEnvironments(request)
|
1198
|
+
body = send_request('DescribeGrafanaEnvironments', request.serialize)
|
983
1199
|
response = JSON.parse(body)
|
984
1200
|
if response['Response'].key?('Error') == false
|
985
|
-
model =
|
1201
|
+
model = DescribeGrafanaEnvironmentsResponse.new
|
986
1202
|
model.deserialize(response['Response'])
|
987
1203
|
model
|
988
1204
|
else
|
@@ -997,16 +1213,16 @@ module TencentCloud
|
|
997
1213
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
998
1214
|
end
|
999
1215
|
|
1000
|
-
#
|
1216
|
+
# 列出用户所有的 Grafana 服务
|
1001
1217
|
|
1002
|
-
# @param request: Request instance for
|
1003
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1004
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1005
|
-
def
|
1006
|
-
body = send_request('
|
1218
|
+
# @param request: Request instance for DescribeGrafanaInstances.
|
1219
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaInstancesRequest`
|
1220
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaInstancesResponse`
|
1221
|
+
def DescribeGrafanaInstances(request)
|
1222
|
+
body = send_request('DescribeGrafanaInstances', request.serialize)
|
1007
1223
|
response = JSON.parse(body)
|
1008
1224
|
if response['Response'].key?('Error') == false
|
1009
|
-
model =
|
1225
|
+
model = DescribeGrafanaInstancesResponse.new
|
1010
1226
|
model.deserialize(response['Response'])
|
1011
1227
|
model
|
1012
1228
|
else
|
@@ -1021,16 +1237,16 @@ module TencentCloud
|
|
1021
1237
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1022
1238
|
end
|
1023
1239
|
|
1024
|
-
#
|
1240
|
+
# 列出 Grafana 已安装的集成
|
1025
1241
|
|
1026
|
-
# @param request: Request instance for
|
1027
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1028
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1029
|
-
def
|
1030
|
-
body = send_request('
|
1242
|
+
# @param request: Request instance for DescribeGrafanaIntegrations.
|
1243
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaIntegrationsRequest`
|
1244
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaIntegrationsResponse`
|
1245
|
+
def DescribeGrafanaIntegrations(request)
|
1246
|
+
body = send_request('DescribeGrafanaIntegrations', request.serialize)
|
1031
1247
|
response = JSON.parse(body)
|
1032
1248
|
if response['Response'].key?('Error') == false
|
1033
|
-
model =
|
1249
|
+
model = DescribeGrafanaIntegrationsResponse.new
|
1034
1250
|
model.deserialize(response['Response'])
|
1035
1251
|
model
|
1036
1252
|
else
|
@@ -1045,16 +1261,16 @@ module TencentCloud
|
|
1045
1261
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1046
1262
|
end
|
1047
1263
|
|
1048
|
-
#
|
1264
|
+
# 列出 Grafana 告警通道
|
1049
1265
|
|
1050
|
-
# @param request: Request instance for
|
1051
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1052
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1053
|
-
def
|
1054
|
-
body = send_request('
|
1266
|
+
# @param request: Request instance for DescribeGrafanaNotificationChannels.
|
1267
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaNotificationChannelsRequest`
|
1268
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaNotificationChannelsResponse`
|
1269
|
+
def DescribeGrafanaNotificationChannels(request)
|
1270
|
+
body = send_request('DescribeGrafanaNotificationChannels', request.serialize)
|
1055
1271
|
response = JSON.parse(body)
|
1056
1272
|
if response['Response'].key?('Error') == false
|
1057
|
-
model =
|
1273
|
+
model = DescribeGrafanaNotificationChannelsResponse.new
|
1058
1274
|
model.deserialize(response['Response'])
|
1059
1275
|
model
|
1060
1276
|
else
|
@@ -1069,16 +1285,16 @@ module TencentCloud
|
|
1069
1285
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1070
1286
|
end
|
1071
1287
|
|
1072
|
-
# 列出
|
1288
|
+
# 列出 Grafana 白名单
|
1073
1289
|
|
1074
|
-
# @param request: Request instance for
|
1075
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1076
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1077
|
-
def
|
1078
|
-
body = send_request('
|
1290
|
+
# @param request: Request instance for DescribeGrafanaWhiteList.
|
1291
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaWhiteListRequest`
|
1292
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaWhiteListResponse`
|
1293
|
+
def DescribeGrafanaWhiteList(request)
|
1294
|
+
body = send_request('DescribeGrafanaWhiteList', request.serialize)
|
1079
1295
|
response = JSON.parse(body)
|
1080
1296
|
if response['Response'].key?('Error') == false
|
1081
|
-
model =
|
1297
|
+
model = DescribeGrafanaWhiteListResponse.new
|
1082
1298
|
model.deserialize(response['Response'])
|
1083
1299
|
model
|
1084
1300
|
else
|
@@ -1093,20 +1309,16 @@ module TencentCloud
|
|
1093
1309
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1094
1310
|
end
|
1095
1311
|
|
1096
|
-
#
|
1097
|
-
# <ul>
|
1098
|
-
# <li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
1099
|
-
# <li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
|
1100
|
-
# </ul>
|
1312
|
+
# 列出实例已安装的插件
|
1101
1313
|
|
1102
|
-
# @param request: Request instance for
|
1103
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1104
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1105
|
-
def
|
1106
|
-
body = send_request('
|
1314
|
+
# @param request: Request instance for DescribeInstalledPlugins.
|
1315
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeInstalledPluginsRequest`
|
1316
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeInstalledPluginsResponse`
|
1317
|
+
def DescribeInstalledPlugins(request)
|
1318
|
+
body = send_request('DescribeInstalledPlugins', request.serialize)
|
1107
1319
|
response = JSON.parse(body)
|
1108
1320
|
if response['Response'].key?('Error') == false
|
1109
|
-
model =
|
1321
|
+
model = DescribeInstalledPluginsResponse.new
|
1110
1322
|
model.deserialize(response['Response'])
|
1111
1323
|
model
|
1112
1324
|
else
|
@@ -1121,16 +1333,16 @@ module TencentCloud
|
|
1121
1333
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1122
1334
|
end
|
1123
1335
|
|
1124
|
-
#
|
1336
|
+
# 云监控支持多种类型的监控,此接口列出支持的所有类型
|
1125
1337
|
|
1126
|
-
# @param request: Request instance for
|
1127
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1128
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1129
|
-
def
|
1130
|
-
body = send_request('
|
1338
|
+
# @param request: Request instance for DescribeMonitorTypes.
|
1339
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorTypesRequest`
|
1340
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorTypesResponse`
|
1341
|
+
def DescribeMonitorTypes(request)
|
1342
|
+
body = send_request('DescribeMonitorTypes', request.serialize)
|
1131
1343
|
response = JSON.parse(body)
|
1132
1344
|
if response['Response'].key?('Error') == false
|
1133
|
-
model =
|
1345
|
+
model = DescribeMonitorTypesResponse.new
|
1134
1346
|
model.deserialize(response['Response'])
|
1135
1347
|
model
|
1136
1348
|
else
|
@@ -1145,16 +1357,16 @@ module TencentCloud
|
|
1145
1357
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1146
1358
|
end
|
1147
1359
|
|
1148
|
-
#
|
1360
|
+
# 列出可安装的所有 Grafana 插件
|
1149
1361
|
|
1150
|
-
# @param request: Request instance for
|
1151
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1152
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1153
|
-
def
|
1154
|
-
body = send_request('
|
1362
|
+
# @param request: Request instance for DescribePluginOverviews.
|
1363
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePluginOverviewsRequest`
|
1364
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePluginOverviewsResponse`
|
1365
|
+
def DescribePluginOverviews(request)
|
1366
|
+
body = send_request('DescribePluginOverviews', request.serialize)
|
1155
1367
|
response = JSON.parse(body)
|
1156
1368
|
if response['Response'].key?('Error') == false
|
1157
|
-
model =
|
1369
|
+
model = DescribePluginOverviewsResponse.new
|
1158
1370
|
model.deserialize(response['Response'])
|
1159
1371
|
model
|
1160
1372
|
else
|
@@ -1169,14 +1381,258 @@ module TencentCloud
|
|
1169
1381
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1170
1382
|
end
|
1171
1383
|
|
1172
|
-
#
|
1173
|
-
# <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
1174
|
-
# <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
1384
|
+
# 获取基础告警策略条件
|
1175
1385
|
|
1176
|
-
# @param request: Request instance for
|
1177
|
-
# @type request: :class:`Tencentcloud::monitor::V20180724::
|
1178
|
-
# @rtype: :class:`Tencentcloud::monitor::V20180724::
|
1179
|
-
def
|
1386
|
+
# @param request: Request instance for DescribePolicyConditionList.
|
1387
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePolicyConditionListRequest`
|
1388
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePolicyConditionListResponse`
|
1389
|
+
def DescribePolicyConditionList(request)
|
1390
|
+
body = send_request('DescribePolicyConditionList', request.serialize)
|
1391
|
+
response = JSON.parse(body)
|
1392
|
+
if response['Response'].key?('Error') == false
|
1393
|
+
model = DescribePolicyConditionListResponse.new
|
1394
|
+
model.deserialize(response['Response'])
|
1395
|
+
model
|
1396
|
+
else
|
1397
|
+
code = response['Response']['Error']['Code']
|
1398
|
+
message = response['Response']['Error']['Message']
|
1399
|
+
reqid = response['Response']['RequestId']
|
1400
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1401
|
+
end
|
1402
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1403
|
+
raise e
|
1404
|
+
rescue StandardError => e
|
1405
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# 获取基础策略组详情
|
1409
|
+
|
1410
|
+
# @param request: Request instance for DescribePolicyGroupInfo.
|
1411
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePolicyGroupInfoRequest`
|
1412
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePolicyGroupInfoResponse`
|
1413
|
+
def DescribePolicyGroupInfo(request)
|
1414
|
+
body = send_request('DescribePolicyGroupInfo', request.serialize)
|
1415
|
+
response = JSON.parse(body)
|
1416
|
+
if response['Response'].key?('Error') == false
|
1417
|
+
model = DescribePolicyGroupInfoResponse.new
|
1418
|
+
model.deserialize(response['Response'])
|
1419
|
+
model
|
1420
|
+
else
|
1421
|
+
code = response['Response']['Error']['Code']
|
1422
|
+
message = response['Response']['Error']['Message']
|
1423
|
+
reqid = response['Response']['RequestId']
|
1424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1425
|
+
end
|
1426
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1427
|
+
raise e
|
1428
|
+
rescue StandardError => e
|
1429
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# 获取基础策略告警组列表
|
1433
|
+
|
1434
|
+
# @param request: Request instance for DescribePolicyGroupList.
|
1435
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePolicyGroupListRequest`
|
1436
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePolicyGroupListResponse`
|
1437
|
+
def DescribePolicyGroupList(request)
|
1438
|
+
body = send_request('DescribePolicyGroupList', request.serialize)
|
1439
|
+
response = JSON.parse(body)
|
1440
|
+
if response['Response'].key?('Error') == false
|
1441
|
+
model = DescribePolicyGroupListResponse.new
|
1442
|
+
model.deserialize(response['Response'])
|
1443
|
+
model
|
1444
|
+
else
|
1445
|
+
code = response['Response']['Error']['Code']
|
1446
|
+
message = response['Response']['Error']['Message']
|
1447
|
+
reqid = response['Response']['RequestId']
|
1448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1449
|
+
end
|
1450
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1451
|
+
raise e
|
1452
|
+
rescue StandardError => e
|
1453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
# 分页获取产品事件的列表
|
1457
|
+
|
1458
|
+
# @param request: Request instance for DescribeProductEventList.
|
1459
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeProductEventListRequest`
|
1460
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeProductEventListResponse`
|
1461
|
+
def DescribeProductEventList(request)
|
1462
|
+
body = send_request('DescribeProductEventList', request.serialize)
|
1463
|
+
response = JSON.parse(body)
|
1464
|
+
if response['Response'].key?('Error') == false
|
1465
|
+
model = DescribeProductEventListResponse.new
|
1466
|
+
model.deserialize(response['Response'])
|
1467
|
+
model
|
1468
|
+
else
|
1469
|
+
code = response['Response']['Error']['Code']
|
1470
|
+
message = response['Response']['Error']['Message']
|
1471
|
+
reqid = response['Response']['RequestId']
|
1472
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1473
|
+
end
|
1474
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1475
|
+
raise e
|
1476
|
+
rescue StandardError => e
|
1477
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# 查询云监控产品列表,支持云服务器CVM、云数据库、云消息队列、负载均衡、容器服务、专线等云产品。
|
1481
|
+
|
1482
|
+
# @param request: Request instance for DescribeProductList.
|
1483
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeProductListRequest`
|
1484
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeProductListResponse`
|
1485
|
+
def DescribeProductList(request)
|
1486
|
+
body = send_request('DescribeProductList', request.serialize)
|
1487
|
+
response = JSON.parse(body)
|
1488
|
+
if response['Response'].key?('Error') == false
|
1489
|
+
model = DescribeProductListResponse.new
|
1490
|
+
model.deserialize(response['Response'])
|
1491
|
+
model
|
1492
|
+
else
|
1493
|
+
code = response['Response']['Error']['Code']
|
1494
|
+
message = response['Response']['Error']['Message']
|
1495
|
+
reqid = response['Response']['RequestId']
|
1496
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1497
|
+
end
|
1498
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1499
|
+
raise e
|
1500
|
+
rescue StandardError => e
|
1501
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
# 列出 Prometheus CVM Agent
|
1505
|
+
|
1506
|
+
# @param request: Request instance for DescribePrometheusAgents.
|
1507
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAgentsRequest`
|
1508
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusAgentsResponse`
|
1509
|
+
def DescribePrometheusAgents(request)
|
1510
|
+
body = send_request('DescribePrometheusAgents', request.serialize)
|
1511
|
+
response = JSON.parse(body)
|
1512
|
+
if response['Response'].key?('Error') == false
|
1513
|
+
model = DescribePrometheusAgentsResponse.new
|
1514
|
+
model.deserialize(response['Response'])
|
1515
|
+
model
|
1516
|
+
else
|
1517
|
+
code = response['Response']['Error']['Code']
|
1518
|
+
message = response['Response']['Error']['Message']
|
1519
|
+
reqid = response['Response']['RequestId']
|
1520
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1521
|
+
end
|
1522
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1523
|
+
raise e
|
1524
|
+
rescue StandardError => e
|
1525
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# 本接口 (DescribePrometheusInstances) 用于查询一个或多个实例的详细信息。
|
1529
|
+
# <ul>
|
1530
|
+
# <li>可以根据实例ID、实例名称或者实例状态等信息来查询实例的详细信息</li>
|
1531
|
+
# <li>如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。</li>
|
1532
|
+
# </ul>
|
1533
|
+
|
1534
|
+
# @param request: Request instance for DescribePrometheusInstances.
|
1535
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesRequest`
|
1536
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusInstancesResponse`
|
1537
|
+
def DescribePrometheusInstances(request)
|
1538
|
+
body = send_request('DescribePrometheusInstances', request.serialize)
|
1539
|
+
response = JSON.parse(body)
|
1540
|
+
if response['Response'].key?('Error') == false
|
1541
|
+
model = DescribePrometheusInstancesResponse.new
|
1542
|
+
model.deserialize(response['Response'])
|
1543
|
+
model
|
1544
|
+
else
|
1545
|
+
code = response['Response']['Error']['Code']
|
1546
|
+
message = response['Response']['Error']['Message']
|
1547
|
+
reqid = response['Response']['RequestId']
|
1548
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1549
|
+
end
|
1550
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1551
|
+
raise e
|
1552
|
+
rescue StandardError => e
|
1553
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
# 列出 Prometheus 抓取任务
|
1557
|
+
|
1558
|
+
# @param request: Request instance for DescribePrometheusScrapeJobs.
|
1559
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusScrapeJobsRequest`
|
1560
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusScrapeJobsResponse`
|
1561
|
+
def DescribePrometheusScrapeJobs(request)
|
1562
|
+
body = send_request('DescribePrometheusScrapeJobs', request.serialize)
|
1563
|
+
response = JSON.parse(body)
|
1564
|
+
if response['Response'].key?('Error') == false
|
1565
|
+
model = DescribePrometheusScrapeJobsResponse.new
|
1566
|
+
model.deserialize(response['Response'])
|
1567
|
+
model
|
1568
|
+
else
|
1569
|
+
code = response['Response']['Error']['Code']
|
1570
|
+
message = response['Response']['Error']['Message']
|
1571
|
+
reqid = response['Response']['RequestId']
|
1572
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1573
|
+
end
|
1574
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1575
|
+
raise e
|
1576
|
+
rescue StandardError => e
|
1577
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
# 根据条件查询 Prometheus 预聚合规则
|
1581
|
+
|
1582
|
+
# @param request: Request instance for DescribeRecordingRules.
|
1583
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesRequest`
|
1584
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesResponse`
|
1585
|
+
def DescribeRecordingRules(request)
|
1586
|
+
body = send_request('DescribeRecordingRules', request.serialize)
|
1587
|
+
response = JSON.parse(body)
|
1588
|
+
if response['Response'].key?('Error') == false
|
1589
|
+
model = DescribeRecordingRulesResponse.new
|
1590
|
+
model.deserialize(response['Response'])
|
1591
|
+
model
|
1592
|
+
else
|
1593
|
+
code = response['Response']['Error']['Code']
|
1594
|
+
message = response['Response']['Error']['Message']
|
1595
|
+
reqid = response['Response']['RequestId']
|
1596
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1597
|
+
end
|
1598
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1599
|
+
raise e
|
1600
|
+
rescue StandardError => e
|
1601
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1602
|
+
end
|
1603
|
+
|
1604
|
+
# 列出当前grafana实例的所有授权账号
|
1605
|
+
|
1606
|
+
# @param request: Request instance for DescribeSSOAccount.
|
1607
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeSSOAccountRequest`
|
1608
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeSSOAccountResponse`
|
1609
|
+
def DescribeSSOAccount(request)
|
1610
|
+
body = send_request('DescribeSSOAccount', request.serialize)
|
1611
|
+
response = JSON.parse(body)
|
1612
|
+
if response['Response'].key?('Error') == false
|
1613
|
+
model = DescribeSSOAccountResponse.new
|
1614
|
+
model.deserialize(response['Response'])
|
1615
|
+
model
|
1616
|
+
else
|
1617
|
+
code = response['Response']['Error']['Code']
|
1618
|
+
message = response['Response']['Error']['Message']
|
1619
|
+
reqid = response['Response']['RequestId']
|
1620
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1621
|
+
end
|
1622
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1623
|
+
raise e
|
1624
|
+
rescue StandardError => e
|
1625
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1626
|
+
end
|
1627
|
+
|
1628
|
+
# 列出在腾讯云容器服务下创建的 Prometheus 服务发现。
|
1629
|
+
# <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
1630
|
+
# <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
1631
|
+
|
1632
|
+
# @param request: Request instance for DescribeServiceDiscovery.
|
1633
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeServiceDiscoveryRequest`
|
1634
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeServiceDiscoveryResponse`
|
1635
|
+
def DescribeServiceDiscovery(request)
|
1180
1636
|
body = send_request('DescribeServiceDiscovery', request.serialize)
|
1181
1637
|
response = JSON.parse(body)
|
1182
1638
|
if response['Response'].key?('Error') == false
|
@@ -1243,6 +1699,78 @@ module TencentCloud
|
|
1243
1699
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1244
1700
|
end
|
1245
1701
|
|
1702
|
+
# 设置 Grafana 公网访问
|
1703
|
+
|
1704
|
+
# @param request: Request instance for EnableGrafanaInternet.
|
1705
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::EnableGrafanaInternetRequest`
|
1706
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::EnableGrafanaInternetResponse`
|
1707
|
+
def EnableGrafanaInternet(request)
|
1708
|
+
body = send_request('EnableGrafanaInternet', request.serialize)
|
1709
|
+
response = JSON.parse(body)
|
1710
|
+
if response['Response'].key?('Error') == false
|
1711
|
+
model = EnableGrafanaInternetResponse.new
|
1712
|
+
model.deserialize(response['Response'])
|
1713
|
+
model
|
1714
|
+
else
|
1715
|
+
code = response['Response']['Error']['Code']
|
1716
|
+
message = response['Response']['Error']['Message']
|
1717
|
+
reqid = response['Response']['RequestId']
|
1718
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1719
|
+
end
|
1720
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1721
|
+
raise e
|
1722
|
+
rescue StandardError => e
|
1723
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# 设置 Grafana 单点登录,使用腾讯云账号
|
1727
|
+
|
1728
|
+
# @param request: Request instance for EnableGrafanaSSO.
|
1729
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::EnableGrafanaSSORequest`
|
1730
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::EnableGrafanaSSOResponse`
|
1731
|
+
def EnableGrafanaSSO(request)
|
1732
|
+
body = send_request('EnableGrafanaSSO', request.serialize)
|
1733
|
+
response = JSON.parse(body)
|
1734
|
+
if response['Response'].key?('Error') == false
|
1735
|
+
model = EnableGrafanaSSOResponse.new
|
1736
|
+
model.deserialize(response['Response'])
|
1737
|
+
model
|
1738
|
+
else
|
1739
|
+
code = response['Response']['Error']['Code']
|
1740
|
+
message = response['Response']['Error']['Message']
|
1741
|
+
reqid = response['Response']['RequestId']
|
1742
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1743
|
+
end
|
1744
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1745
|
+
raise e
|
1746
|
+
rescue StandardError => e
|
1747
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# SSO单点登录时,设置是否cam鉴权
|
1751
|
+
|
1752
|
+
# @param request: Request instance for EnableSSOCamCheck.
|
1753
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::EnableSSOCamCheckRequest`
|
1754
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::EnableSSOCamCheckResponse`
|
1755
|
+
def EnableSSOCamCheck(request)
|
1756
|
+
body = send_request('EnableSSOCamCheck', request.serialize)
|
1757
|
+
response = JSON.parse(body)
|
1758
|
+
if response['Response'].key?('Error') == false
|
1759
|
+
model = EnableSSOCamCheckResponse.new
|
1760
|
+
model.deserialize(response['Response'])
|
1761
|
+
model
|
1762
|
+
else
|
1763
|
+
code = response['Response']['Error']['Code']
|
1764
|
+
message = response['Response']['Error']['Message']
|
1765
|
+
reqid = response['Response']['RequestId']
|
1766
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1767
|
+
end
|
1768
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1769
|
+
raise e
|
1770
|
+
rescue StandardError => e
|
1771
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1772
|
+
end
|
1773
|
+
|
1246
1774
|
# 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
|
1247
1775
|
# 传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
1248
1776
|
# 接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
@@ -1294,6 +1822,30 @@ module TencentCloud
|
|
1294
1822
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1295
1823
|
end
|
1296
1824
|
|
1825
|
+
# 安装 Grafana Plugin
|
1826
|
+
|
1827
|
+
# @param request: Request instance for InstallPlugins.
|
1828
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::InstallPluginsRequest`
|
1829
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::InstallPluginsResponse`
|
1830
|
+
def InstallPlugins(request)
|
1831
|
+
body = send_request('InstallPlugins', request.serialize)
|
1832
|
+
response = JSON.parse(body)
|
1833
|
+
if response['Response'].key?('Error') == false
|
1834
|
+
model = InstallPluginsResponse.new
|
1835
|
+
model.deserialize(response['Response'])
|
1836
|
+
model
|
1837
|
+
else
|
1838
|
+
code = response['Response']['Error']['Code']
|
1839
|
+
message = response['Response']['Error']['Message']
|
1840
|
+
reqid = response['Response']['RequestId']
|
1841
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1842
|
+
end
|
1843
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1844
|
+
raise e
|
1845
|
+
rescue StandardError => e
|
1846
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1847
|
+
end
|
1848
|
+
|
1297
1849
|
# 云监控告警编辑告警通知模板
|
1298
1850
|
|
1299
1851
|
# @param request: Request instance for ModifyAlarmNotice.
|
@@ -1462,6 +2014,30 @@ module TencentCloud
|
|
1462
2014
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1463
2015
|
end
|
1464
2016
|
|
2017
|
+
# 修改 Grafana 实例属性
|
2018
|
+
|
2019
|
+
# @param request: Request instance for ModifyGrafanaInstance.
|
2020
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyGrafanaInstanceRequest`
|
2021
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyGrafanaInstanceResponse`
|
2022
|
+
def ModifyGrafanaInstance(request)
|
2023
|
+
body = send_request('ModifyGrafanaInstance', request.serialize)
|
2024
|
+
response = JSON.parse(body)
|
2025
|
+
if response['Response'].key?('Error') == false
|
2026
|
+
model = ModifyGrafanaInstanceResponse.new
|
2027
|
+
model.deserialize(response['Response'])
|
2028
|
+
model
|
2029
|
+
else
|
2030
|
+
code = response['Response']['Error']['Code']
|
2031
|
+
message = response['Response']['Error']['Message']
|
2032
|
+
reqid = response['Response']['RequestId']
|
2033
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2034
|
+
end
|
2035
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2036
|
+
raise e
|
2037
|
+
rescue StandardError => e
|
2038
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2039
|
+
end
|
2040
|
+
|
1465
2041
|
# 更新策略组
|
1466
2042
|
|
1467
2043
|
# @param request: Request instance for ModifyPolicyGroup.
|
@@ -1540,6 +2116,30 @@ module TencentCloud
|
|
1540
2116
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1541
2117
|
end
|
1542
2118
|
|
2119
|
+
# 恢复 Grafana 实例
|
2120
|
+
|
2121
|
+
# @param request: Request instance for ResumeGrafanaInstance.
|
2122
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ResumeGrafanaInstanceRequest`
|
2123
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ResumeGrafanaInstanceResponse`
|
2124
|
+
def ResumeGrafanaInstance(request)
|
2125
|
+
body = send_request('ResumeGrafanaInstance', request.serialize)
|
2126
|
+
response = JSON.parse(body)
|
2127
|
+
if response['Response'].key?('Error') == false
|
2128
|
+
model = ResumeGrafanaInstanceResponse.new
|
2129
|
+
model.deserialize(response['Response'])
|
2130
|
+
model
|
2131
|
+
else
|
2132
|
+
code = response['Response']['Error']['Code']
|
2133
|
+
message = response['Response']['Error']['Message']
|
2134
|
+
reqid = response['Response']['RequestId']
|
2135
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2136
|
+
end
|
2137
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2138
|
+
raise e
|
2139
|
+
rescue StandardError => e
|
2140
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2141
|
+
end
|
2142
|
+
|
1543
2143
|
# 发送自定义消息告警
|
1544
2144
|
|
1545
2145
|
# @param request: Request instance for SendCustomAlarmMsg.
|
@@ -1709,6 +2309,30 @@ module TencentCloud
|
|
1709
2309
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1710
2310
|
end
|
1711
2311
|
|
2312
|
+
# 删除已安装的插件
|
2313
|
+
|
2314
|
+
# @param request: Request instance for UninstallGrafanaPlugins.
|
2315
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UninstallGrafanaPluginsRequest`
|
2316
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UninstallGrafanaPluginsResponse`
|
2317
|
+
def UninstallGrafanaPlugins(request)
|
2318
|
+
body = send_request('UninstallGrafanaPlugins', request.serialize)
|
2319
|
+
response = JSON.parse(body)
|
2320
|
+
if response['Response'].key?('Error') == false
|
2321
|
+
model = UninstallGrafanaPluginsResponse.new
|
2322
|
+
model.deserialize(response['Response'])
|
2323
|
+
model
|
2324
|
+
else
|
2325
|
+
code = response['Response']['Error']['Code']
|
2326
|
+
message = response['Response']['Error']['Message']
|
2327
|
+
reqid = response['Response']['RequestId']
|
2328
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2329
|
+
end
|
2330
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2331
|
+
raise e
|
2332
|
+
rescue StandardError => e
|
2333
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2334
|
+
end
|
2335
|
+
|
1712
2336
|
# 更新 Prometheus 的报警规则。
|
1713
2337
|
|
1714
2338
|
# 请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
@@ -1759,6 +2383,30 @@ module TencentCloud
|
|
1759
2383
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1760
2384
|
end
|
1761
2385
|
|
2386
|
+
# 更新 Grafana 的 DNS 配置
|
2387
|
+
|
2388
|
+
# @param request: Request instance for UpdateDNSConfig.
|
2389
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateDNSConfigRequest`
|
2390
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateDNSConfigResponse`
|
2391
|
+
def UpdateDNSConfig(request)
|
2392
|
+
body = send_request('UpdateDNSConfig', request.serialize)
|
2393
|
+
response = JSON.parse(body)
|
2394
|
+
if response['Response'].key?('Error') == false
|
2395
|
+
model = UpdateDNSConfigResponse.new
|
2396
|
+
model.deserialize(response['Response'])
|
2397
|
+
model
|
2398
|
+
else
|
2399
|
+
code = response['Response']['Error']['Code']
|
2400
|
+
message = response['Response']['Error']['Message']
|
2401
|
+
reqid = response['Response']['RequestId']
|
2402
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2403
|
+
end
|
2404
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2405
|
+
raise e
|
2406
|
+
rescue StandardError => e
|
2407
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2408
|
+
end
|
2409
|
+
|
1762
2410
|
# 更新 exporter 集成配置
|
1763
2411
|
|
1764
2412
|
# @param request: Request instance for UpdateExporterIntegration.
|
@@ -1783,6 +2431,126 @@ module TencentCloud
|
|
1783
2431
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1784
2432
|
end
|
1785
2433
|
|
2434
|
+
# 更新 Grafana 配置
|
2435
|
+
|
2436
|
+
# @param request: Request instance for UpdateGrafanaConfig.
|
2437
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaConfigRequest`
|
2438
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaConfigResponse`
|
2439
|
+
def UpdateGrafanaConfig(request)
|
2440
|
+
body = send_request('UpdateGrafanaConfig', request.serialize)
|
2441
|
+
response = JSON.parse(body)
|
2442
|
+
if response['Response'].key?('Error') == false
|
2443
|
+
model = UpdateGrafanaConfigResponse.new
|
2444
|
+
model.deserialize(response['Response'])
|
2445
|
+
model
|
2446
|
+
else
|
2447
|
+
code = response['Response']['Error']['Code']
|
2448
|
+
message = response['Response']['Error']['Message']
|
2449
|
+
reqid = response['Response']['RequestId']
|
2450
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2451
|
+
end
|
2452
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2453
|
+
raise e
|
2454
|
+
rescue StandardError => e
|
2455
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2456
|
+
end
|
2457
|
+
|
2458
|
+
# 更新 Grafana 环境变量
|
2459
|
+
|
2460
|
+
# @param request: Request instance for UpdateGrafanaEnvironments.
|
2461
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaEnvironmentsRequest`
|
2462
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaEnvironmentsResponse`
|
2463
|
+
def UpdateGrafanaEnvironments(request)
|
2464
|
+
body = send_request('UpdateGrafanaEnvironments', request.serialize)
|
2465
|
+
response = JSON.parse(body)
|
2466
|
+
if response['Response'].key?('Error') == false
|
2467
|
+
model = UpdateGrafanaEnvironmentsResponse.new
|
2468
|
+
model.deserialize(response['Response'])
|
2469
|
+
model
|
2470
|
+
else
|
2471
|
+
code = response['Response']['Error']['Code']
|
2472
|
+
message = response['Response']['Error']['Message']
|
2473
|
+
reqid = response['Response']['RequestId']
|
2474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2475
|
+
end
|
2476
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2477
|
+
raise e
|
2478
|
+
rescue StandardError => e
|
2479
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2480
|
+
end
|
2481
|
+
|
2482
|
+
# 更新 Grafana 集成配置
|
2483
|
+
|
2484
|
+
# @param request: Request instance for UpdateGrafanaIntegration.
|
2485
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaIntegrationRequest`
|
2486
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaIntegrationResponse`
|
2487
|
+
def UpdateGrafanaIntegration(request)
|
2488
|
+
body = send_request('UpdateGrafanaIntegration', request.serialize)
|
2489
|
+
response = JSON.parse(body)
|
2490
|
+
if response['Response'].key?('Error') == false
|
2491
|
+
model = UpdateGrafanaIntegrationResponse.new
|
2492
|
+
model.deserialize(response['Response'])
|
2493
|
+
model
|
2494
|
+
else
|
2495
|
+
code = response['Response']['Error']['Code']
|
2496
|
+
message = response['Response']['Error']['Message']
|
2497
|
+
reqid = response['Response']['RequestId']
|
2498
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2499
|
+
end
|
2500
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2501
|
+
raise e
|
2502
|
+
rescue StandardError => e
|
2503
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
# 更新 Grafana 告警通道
|
2507
|
+
|
2508
|
+
# @param request: Request instance for UpdateGrafanaNotificationChannel.
|
2509
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaNotificationChannelRequest`
|
2510
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaNotificationChannelResponse`
|
2511
|
+
def UpdateGrafanaNotificationChannel(request)
|
2512
|
+
body = send_request('UpdateGrafanaNotificationChannel', request.serialize)
|
2513
|
+
response = JSON.parse(body)
|
2514
|
+
if response['Response'].key?('Error') == false
|
2515
|
+
model = UpdateGrafanaNotificationChannelResponse.new
|
2516
|
+
model.deserialize(response['Response'])
|
2517
|
+
model
|
2518
|
+
else
|
2519
|
+
code = response['Response']['Error']['Code']
|
2520
|
+
message = response['Response']['Error']['Message']
|
2521
|
+
reqid = response['Response']['RequestId']
|
2522
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2523
|
+
end
|
2524
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2525
|
+
raise e
|
2526
|
+
rescue StandardError => e
|
2527
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2528
|
+
end
|
2529
|
+
|
2530
|
+
# 更新 Grafana 白名单
|
2531
|
+
|
2532
|
+
# @param request: Request instance for UpdateGrafanaWhiteList.
|
2533
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaWhiteListRequest`
|
2534
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateGrafanaWhiteListResponse`
|
2535
|
+
def UpdateGrafanaWhiteList(request)
|
2536
|
+
body = send_request('UpdateGrafanaWhiteList', request.serialize)
|
2537
|
+
response = JSON.parse(body)
|
2538
|
+
if response['Response'].key?('Error') == false
|
2539
|
+
model = UpdateGrafanaWhiteListResponse.new
|
2540
|
+
model.deserialize(response['Response'])
|
2541
|
+
model
|
2542
|
+
else
|
2543
|
+
code = response['Response']['Error']['Code']
|
2544
|
+
message = response['Response']['Error']['Message']
|
2545
|
+
reqid = response['Response']['RequestId']
|
2546
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2547
|
+
end
|
2548
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2549
|
+
raise e
|
2550
|
+
rescue StandardError => e
|
2551
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2552
|
+
end
|
2553
|
+
|
1786
2554
|
# 更新 Prometheus CVM Agent 状态
|
1787
2555
|
|
1788
2556
|
# @param request: Request instance for UpdatePrometheusAgentStatus.
|
@@ -1855,6 +2623,30 @@ module TencentCloud
|
|
1855
2623
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1856
2624
|
end
|
1857
2625
|
|
2626
|
+
# 更新已授权账号的备注、权限信息,会直接覆盖原有的信息,不传则不会更新。
|
2627
|
+
|
2628
|
+
# @param request: Request instance for UpdateSSOAccount.
|
2629
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpdateSSOAccountRequest`
|
2630
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpdateSSOAccountResponse`
|
2631
|
+
def UpdateSSOAccount(request)
|
2632
|
+
body = send_request('UpdateSSOAccount', request.serialize)
|
2633
|
+
response = JSON.parse(body)
|
2634
|
+
if response['Response'].key?('Error') == false
|
2635
|
+
model = UpdateSSOAccountResponse.new
|
2636
|
+
model.deserialize(response['Response'])
|
2637
|
+
model
|
2638
|
+
else
|
2639
|
+
code = response['Response']['Error']['Code']
|
2640
|
+
message = response['Response']['Error']['Message']
|
2641
|
+
reqid = response['Response']['RequestId']
|
2642
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2643
|
+
end
|
2644
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2645
|
+
raise e
|
2646
|
+
rescue StandardError => e
|
2647
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2648
|
+
end
|
2649
|
+
|
1858
2650
|
# 在腾讯云容器服务下更新 Prometheus 服务发现。
|
1859
2651
|
# <p>注意:前提条件,已经通过 Prometheus 控制台集成了对应的腾讯云容器服务,具体请参考
|
1860
2652
|
# <a href="https://cloud.tencent.com/document/product/248/48859" target="_blank">Agent 安装</a>。</p>
|
@@ -1905,6 +2697,30 @@ module TencentCloud
|
|
1905
2697
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1906
2698
|
end
|
1907
2699
|
|
2700
|
+
# 升级 Grafana 实例
|
2701
|
+
|
2702
|
+
# @param request: Request instance for UpgradeGrafanaInstance.
|
2703
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::UpgradeGrafanaInstanceRequest`
|
2704
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::UpgradeGrafanaInstanceResponse`
|
2705
|
+
def UpgradeGrafanaInstance(request)
|
2706
|
+
body = send_request('UpgradeGrafanaInstance', request.serialize)
|
2707
|
+
response = JSON.parse(body)
|
2708
|
+
if response['Response'].key?('Error') == false
|
2709
|
+
model = UpgradeGrafanaInstanceResponse.new
|
2710
|
+
model.deserialize(response['Response'])
|
2711
|
+
model
|
2712
|
+
else
|
2713
|
+
code = response['Response']['Error']['Code']
|
2714
|
+
message = response['Response']['Error']['Message']
|
2715
|
+
reqid = response['Response']['RequestId']
|
2716
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2717
|
+
end
|
2718
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2719
|
+
raise e
|
2720
|
+
rescue StandardError => e
|
2721
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2722
|
+
end
|
2723
|
+
|
1908
2724
|
|
1909
2725
|
end
|
1910
2726
|
end
|