tencentcloud-sdk-monitor 3.0.965 → 3.0.967

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: 632418ad2bcba02472f23271893c0a9ac49d6036
4
- data.tar.gz: 292852eca52aadbef27a66cb9596802654d9d6c9
3
+ metadata.gz: 65eeecb7b2cdbdaec695bd13f048b76e2e2b41f7
4
+ data.tar.gz: 5805d0add0f571877be21b22c8003b81dc362b43
5
5
  SHA512:
6
- metadata.gz: 1a14119840d69f05510dada6df56fc7ac5f80b951f542878745573ba90ba40c237c7b96e957862bd5777643b955711ac2fdc2ff940877142937a69c74923b400
7
- data.tar.gz: aed79da7c247faf284011d8de05d036c881f3223b399be6852eff07c6b31354633f285aecaa4b1252ab37632a9d7de26e73161b017019f99e2baf1f0abfec7a1
6
+ metadata.gz: 639070e3c8beb59b76d4175ca4f8d09ed0479ede25d046c7721a55ab655015515bf143d1950c144b5c87c5203cea464ffd19ecb400d537eb3ee3432d317db796
7
+ data.tar.gz: a0491a229f6ffbd0fe73b035224f9b951d4b603d1c179005a20e9e8a0bab9525d427537ab0e92b3565c1a2b5a5ecfa132b6aa5dbac22001a17eb60f4afc8e02c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.965
1
+ 3.0.967
@@ -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.
@@ -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.965
4
+ version: 3.0.967
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-19 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common