tencentcloud-sdk-monitor 3.0.965 → 3.0.966
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/v20180724/client.rb +48 -0
- data/lib/v20180724/models.rb +185 -0
- 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: 3b2036226e4126ce67da3c08941448abb5c00fd1
|
4
|
+
data.tar.gz: 844a1ed28bbcd1bbef2493fe270057b4863076fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6259c304bd2671bc8af1d3a049067bdc2a4050543543ea3d2627e5eca5270a8ec1b5f7b33ba9aeef53d5ed039ef870265ca0ad56f4d2912d6533d6a5419ab259
|
7
|
+
data.tar.gz: ff15402173b41abaed08011e83be9186cea262ed12fcb796b9c67072c93fe4a4a976c91e844b761efc1837f514bb072e0f8a646eb969c503424f4b66f279228b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.966
|
data/lib/v20180724/client.rb
CHANGED
@@ -2492,6 +2492,30 @@ module TencentCloud
|
|
2492
2492
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2493
2493
|
end
|
2494
2494
|
|
2495
|
+
# 获取多写配置详情
|
2496
|
+
|
2497
|
+
# @param request: Request instance for DescribeRemoteURLs.
|
2498
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeRemoteURLsRequest`
|
2499
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeRemoteURLsResponse`
|
2500
|
+
def DescribeRemoteURLs(request)
|
2501
|
+
body = send_request('DescribeRemoteURLs', request.serialize)
|
2502
|
+
response = JSON.parse(body)
|
2503
|
+
if response['Response'].key?('Error') == false
|
2504
|
+
model = DescribeRemoteURLsResponse.new
|
2505
|
+
model.deserialize(response['Response'])
|
2506
|
+
model
|
2507
|
+
else
|
2508
|
+
code = response['Response']['Error']['Code']
|
2509
|
+
message = response['Response']['Error']['Message']
|
2510
|
+
reqid = response['Response']['RequestId']
|
2511
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2512
|
+
end
|
2513
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2514
|
+
raise e
|
2515
|
+
rescue StandardError => e
|
2516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2517
|
+
end
|
2518
|
+
|
2495
2519
|
# 列出当前grafana实例的所有授权账号
|
2496
2520
|
|
2497
2521
|
# @param request: Request instance for DescribeSSOAccount.
|
@@ -3127,6 +3151,30 @@ module TencentCloud
|
|
3127
3151
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3128
3152
|
end
|
3129
3153
|
|
3154
|
+
# 修改多写配置
|
3155
|
+
|
3156
|
+
# @param request: Request instance for ModifyRemoteURLs.
|
3157
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::ModifyRemoteURLsRequest`
|
3158
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::ModifyRemoteURLsResponse`
|
3159
|
+
def ModifyRemoteURLs(request)
|
3160
|
+
body = send_request('ModifyRemoteURLs', request.serialize)
|
3161
|
+
response = JSON.parse(body)
|
3162
|
+
if response['Response'].key?('Error') == false
|
3163
|
+
model = ModifyRemoteURLsResponse.new
|
3164
|
+
model.deserialize(response['Response'])
|
3165
|
+
model
|
3166
|
+
else
|
3167
|
+
code = response['Response']['Error']['Code']
|
3168
|
+
message = response['Response']['Error']['Message']
|
3169
|
+
reqid = response['Response']['RequestId']
|
3170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3171
|
+
end
|
3172
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3173
|
+
raise e
|
3174
|
+
rescue StandardError => e
|
3175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3176
|
+
end
|
3177
|
+
|
3130
3178
|
# 本接口(ResumeGrafanaInstance)用于 Grafana 包年包月实例的停服续费,调用后按原版本续费一个月。仍在运行中的实例无法使用该接口进行续费。
|
3131
3179
|
|
3132
3180
|
# @param request: Request instance for ResumeGrafanaInstance.
|
data/lib/v20180724/models.rb
CHANGED
@@ -940,6 +940,28 @@ module TencentCloud
|
|
940
940
|
end
|
941
941
|
end
|
942
942
|
|
943
|
+
# url鉴权
|
944
|
+
class BasicAuth < TencentCloud::Common::AbstractModel
|
945
|
+
# @param UserName: 用户名
|
946
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
947
|
+
# @type UserName: String
|
948
|
+
# @param Password: 密码
|
949
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
950
|
+
# @type Password: String
|
951
|
+
|
952
|
+
attr_accessor :UserName, :Password
|
953
|
+
|
954
|
+
def initialize(username=nil, password=nil)
|
955
|
+
@UserName = username
|
956
|
+
@Password = password
|
957
|
+
end
|
958
|
+
|
959
|
+
def deserialize(params)
|
960
|
+
@UserName = params['UserName']
|
961
|
+
@Password = params['Password']
|
962
|
+
end
|
963
|
+
end
|
964
|
+
|
943
965
|
# BindPrometheusManagedGrafana请求参数结构体
|
944
966
|
class BindPrometheusManagedGrafanaRequest < TencentCloud::Common::AbstractModel
|
945
967
|
# @param InstanceId: Prometheus 实例 ID
|
@@ -8902,6 +8924,53 @@ module TencentCloud
|
|
8902
8924
|
end
|
8903
8925
|
end
|
8904
8926
|
|
8927
|
+
# DescribeRemoteURLs请求参数结构体
|
8928
|
+
class DescribeRemoteURLsRequest < TencentCloud::Common::AbstractModel
|
8929
|
+
# @param InstanceId: 实例ID
|
8930
|
+
# @type InstanceId: String
|
8931
|
+
# @param RemoteURLs: url数组
|
8932
|
+
# @type RemoteURLs: Array
|
8933
|
+
|
8934
|
+
attr_accessor :InstanceId, :RemoteURLs
|
8935
|
+
|
8936
|
+
def initialize(instanceid=nil, remoteurls=nil)
|
8937
|
+
@InstanceId = instanceid
|
8938
|
+
@RemoteURLs = remoteurls
|
8939
|
+
end
|
8940
|
+
|
8941
|
+
def deserialize(params)
|
8942
|
+
@InstanceId = params['InstanceId']
|
8943
|
+
@RemoteURLs = params['RemoteURLs']
|
8944
|
+
end
|
8945
|
+
end
|
8946
|
+
|
8947
|
+
# DescribeRemoteURLs返回参数结构体
|
8948
|
+
class DescribeRemoteURLsResponse < TencentCloud::Common::AbstractModel
|
8949
|
+
# @param RemoteWrites: 多写配置
|
8950
|
+
# @type RemoteWrites: Array
|
8951
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8952
|
+
# @type RequestId: String
|
8953
|
+
|
8954
|
+
attr_accessor :RemoteWrites, :RequestId
|
8955
|
+
|
8956
|
+
def initialize(remotewrites=nil, requestid=nil)
|
8957
|
+
@RemoteWrites = remotewrites
|
8958
|
+
@RequestId = requestid
|
8959
|
+
end
|
8960
|
+
|
8961
|
+
def deserialize(params)
|
8962
|
+
unless params['RemoteWrites'].nil?
|
8963
|
+
@RemoteWrites = []
|
8964
|
+
params['RemoteWrites'].each do |i|
|
8965
|
+
remotewrite_tmp = RemoteWrite.new
|
8966
|
+
remotewrite_tmp.deserialize(i)
|
8967
|
+
@RemoteWrites << remotewrite_tmp
|
8968
|
+
end
|
8969
|
+
end
|
8970
|
+
@RequestId = params['RequestId']
|
8971
|
+
end
|
8972
|
+
end
|
8973
|
+
|
8905
8974
|
# DescribeSSOAccount请求参数结构体
|
8906
8975
|
class DescribeSSOAccountRequest < TencentCloud::Common::AbstractModel
|
8907
8976
|
# @param InstanceId: Grafana 实例 ID,例如:grafana-abcdefgh
|
@@ -11322,6 +11391,49 @@ module TencentCloud
|
|
11322
11391
|
end
|
11323
11392
|
end
|
11324
11393
|
|
11394
|
+
# ModifyRemoteURLs请求参数结构体
|
11395
|
+
class ModifyRemoteURLsRequest < TencentCloud::Common::AbstractModel
|
11396
|
+
# @param InstanceId: 实例ID
|
11397
|
+
# @type InstanceId: String
|
11398
|
+
# @param RemoteWrites: 多写配置
|
11399
|
+
# @type RemoteWrites: Array
|
11400
|
+
|
11401
|
+
attr_accessor :InstanceId, :RemoteWrites
|
11402
|
+
|
11403
|
+
def initialize(instanceid=nil, remotewrites=nil)
|
11404
|
+
@InstanceId = instanceid
|
11405
|
+
@RemoteWrites = remotewrites
|
11406
|
+
end
|
11407
|
+
|
11408
|
+
def deserialize(params)
|
11409
|
+
@InstanceId = params['InstanceId']
|
11410
|
+
unless params['RemoteWrites'].nil?
|
11411
|
+
@RemoteWrites = []
|
11412
|
+
params['RemoteWrites'].each do |i|
|
11413
|
+
remotewrite_tmp = RemoteWrite.new
|
11414
|
+
remotewrite_tmp.deserialize(i)
|
11415
|
+
@RemoteWrites << remotewrite_tmp
|
11416
|
+
end
|
11417
|
+
end
|
11418
|
+
end
|
11419
|
+
end
|
11420
|
+
|
11421
|
+
# ModifyRemoteURLs返回参数结构体
|
11422
|
+
class ModifyRemoteURLsResponse < TencentCloud::Common::AbstractModel
|
11423
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11424
|
+
# @type RequestId: String
|
11425
|
+
|
11426
|
+
attr_accessor :RequestId
|
11427
|
+
|
11428
|
+
def initialize(requestid=nil)
|
11429
|
+
@RequestId = requestid
|
11430
|
+
end
|
11431
|
+
|
11432
|
+
def deserialize(params)
|
11433
|
+
@RequestId = params['RequestId']
|
11434
|
+
end
|
11435
|
+
end
|
11436
|
+
|
11325
11437
|
# 监控类型详细信息
|
11326
11438
|
class MonitorTypeInfo < TencentCloud::Common::AbstractModel
|
11327
11439
|
# @param Id: 监控类型ID
|
@@ -13419,6 +13531,79 @@ module TencentCloud
|
|
13419
13531
|
end
|
13420
13532
|
end
|
13421
13533
|
|
13534
|
+
# 多写配置
|
13535
|
+
class RemoteWrite < TencentCloud::Common::AbstractModel
|
13536
|
+
# @param URL: 多写url
|
13537
|
+
# @type URL: String
|
13538
|
+
# @param URLRelabelConfig: RelabelConfig
|
13539
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13540
|
+
# @type URLRelabelConfig: String
|
13541
|
+
# @param BasicAuth: 鉴权
|
13542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13543
|
+
# @type BasicAuth: :class:`Tencentcloud::Monitor.v20180724.models.BasicAuth`
|
13544
|
+
# @param MaxBlockSize: 最大block
|
13545
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13546
|
+
# @type MaxBlockSize: String
|
13547
|
+
# @param Label: Label
|
13548
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13549
|
+
# @type Label: String
|
13550
|
+
# @param Headers: HTTP 额外添加的头
|
13551
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13552
|
+
# @type Headers: Array
|
13553
|
+
|
13554
|
+
attr_accessor :URL, :URLRelabelConfig, :BasicAuth, :MaxBlockSize, :Label, :Headers
|
13555
|
+
|
13556
|
+
def initialize(url=nil, urlrelabelconfig=nil, basicauth=nil, maxblocksize=nil, label=nil, headers=nil)
|
13557
|
+
@URL = url
|
13558
|
+
@URLRelabelConfig = urlrelabelconfig
|
13559
|
+
@BasicAuth = basicauth
|
13560
|
+
@MaxBlockSize = maxblocksize
|
13561
|
+
@Label = label
|
13562
|
+
@Headers = headers
|
13563
|
+
end
|
13564
|
+
|
13565
|
+
def deserialize(params)
|
13566
|
+
@URL = params['URL']
|
13567
|
+
@URLRelabelConfig = params['URLRelabelConfig']
|
13568
|
+
unless params['BasicAuth'].nil?
|
13569
|
+
@BasicAuth = BasicAuth.new
|
13570
|
+
@BasicAuth.deserialize(params['BasicAuth'])
|
13571
|
+
end
|
13572
|
+
@MaxBlockSize = params['MaxBlockSize']
|
13573
|
+
@Label = params['Label']
|
13574
|
+
unless params['Headers'].nil?
|
13575
|
+
@Headers = []
|
13576
|
+
params['Headers'].each do |i|
|
13577
|
+
remotewriteheader_tmp = RemoteWriteHeader.new
|
13578
|
+
remotewriteheader_tmp.deserialize(i)
|
13579
|
+
@Headers << remotewriteheader_tmp
|
13580
|
+
end
|
13581
|
+
end
|
13582
|
+
end
|
13583
|
+
end
|
13584
|
+
|
13585
|
+
# Remote Write 协议额外添加的 HTTP 头
|
13586
|
+
class RemoteWriteHeader < TencentCloud::Common::AbstractModel
|
13587
|
+
# @param Key: HTTP 头的键
|
13588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13589
|
+
# @type Key: String
|
13590
|
+
# @param Value: HTTP 头的值
|
13591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
13592
|
+
# @type Value: String
|
13593
|
+
|
13594
|
+
attr_accessor :Key, :Value
|
13595
|
+
|
13596
|
+
def initialize(key=nil, value=nil)
|
13597
|
+
@Key = key
|
13598
|
+
@Value = value
|
13599
|
+
end
|
13600
|
+
|
13601
|
+
def deserialize(params)
|
13602
|
+
@Key = params['Key']
|
13603
|
+
@Value = params['Value']
|
13604
|
+
end
|
13605
|
+
end
|
13606
|
+
|
13422
13607
|
# ResumeGrafanaInstance请求参数结构体
|
13423
13608
|
class ResumeGrafanaInstanceRequest < TencentCloud::Common::AbstractModel
|
13424
13609
|
# @param InstanceId: Grafana 实例 ID,例如:grafana-12345678
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.966
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|