tencentcloud-sdk-monitor 3.0.1153 → 3.0.1158
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 +24 -0
- data/lib/v20180724/models.rb +78 -3
- 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: 668ea757b206bd3ac7a06d22eb32eb1c2a33918c
|
4
|
+
data.tar.gz: c36630d4f11aeeb9b70999b3d796d696ebf65bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f699a14bb23326d04404015144842c84f075bf752888212e76e502e2a4482ed7c9e0ba53cd144c1851e1b83f1473488d8645441d3016cf551cfde45390792a
|
7
|
+
data.tar.gz: 22b18dce9c8f5a544ff78365072e63f10074a977de5c8da013edc8f39893a40c0e0b50eef64d03d24ddc38d3a60c70f6ec743f874a5d439138b5bc073a224eb4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1158
|
data/lib/v20180724/client.rb
CHANGED
@@ -2708,6 +2708,30 @@ module TencentCloud
|
|
2708
2708
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2709
2709
|
end
|
2710
2710
|
|
2711
|
+
# 查询安装的 Agent 列表
|
2712
|
+
|
2713
|
+
# @param request: Request instance for DescribeRemoteWrites.
|
2714
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeRemoteWritesRequest`
|
2715
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeRemoteWritesResponse`
|
2716
|
+
def DescribeRemoteWrites(request)
|
2717
|
+
body = send_request('DescribeRemoteWrites', request.serialize)
|
2718
|
+
response = JSON.parse(body)
|
2719
|
+
if response['Response'].key?('Error') == false
|
2720
|
+
model = DescribeRemoteWritesResponse.new
|
2721
|
+
model.deserialize(response['Response'])
|
2722
|
+
model
|
2723
|
+
else
|
2724
|
+
code = response['Response']['Error']['Code']
|
2725
|
+
message = response['Response']['Error']['Message']
|
2726
|
+
reqid = response['Response']['RequestId']
|
2727
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2728
|
+
end
|
2729
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2730
|
+
raise e
|
2731
|
+
rescue StandardError => e
|
2732
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2733
|
+
end
|
2734
|
+
|
2711
2735
|
# 列出当前grafana实例的所有授权账号
|
2712
2736
|
|
2713
2737
|
# @param request: Request instance for DescribeSSOAccount.
|
data/lib/v20180724/models.rb
CHANGED
@@ -9044,16 +9044,20 @@ module TencentCloud
|
|
9044
9044
|
|
9045
9045
|
# DescribePrometheusScrapeStatistics请求参数结构体
|
9046
9046
|
class DescribePrometheusScrapeStatisticsRequest < TencentCloud::Common::AbstractModel
|
9047
|
+
# @param InstanceIds: 实例ID列表
|
9048
|
+
# @type InstanceIds: Array
|
9047
9049
|
# @param JobType: job 类型
|
9048
9050
|
# @type JobType: String
|
9049
9051
|
|
9050
|
-
attr_accessor :JobType
|
9052
|
+
attr_accessor :InstanceIds, :JobType
|
9051
9053
|
|
9052
|
-
def initialize(jobtype=nil)
|
9054
|
+
def initialize(instanceids=nil, jobtype=nil)
|
9055
|
+
@InstanceIds = instanceids
|
9053
9056
|
@JobType = jobtype
|
9054
9057
|
end
|
9055
9058
|
|
9056
9059
|
def deserialize(params)
|
9060
|
+
@InstanceIds = params['InstanceIds']
|
9057
9061
|
@JobType = params['JobType']
|
9058
9062
|
end
|
9059
9063
|
end
|
@@ -9442,6 +9446,61 @@ module TencentCloud
|
|
9442
9446
|
end
|
9443
9447
|
end
|
9444
9448
|
|
9449
|
+
# DescribeRemoteWrites请求参数结构体
|
9450
|
+
class DescribeRemoteWritesRequest < TencentCloud::Common::AbstractModel
|
9451
|
+
# @param InstanceId: 实例 ID
|
9452
|
+
# @type InstanceId: String
|
9453
|
+
# @param Offset: 列表 offset
|
9454
|
+
# @type Offset: Integer
|
9455
|
+
# @param Limit: 返回 limit
|
9456
|
+
# @type Limit: Integer
|
9457
|
+
|
9458
|
+
attr_accessor :InstanceId, :Offset, :Limit
|
9459
|
+
|
9460
|
+
def initialize(instanceid=nil, offset=nil, limit=nil)
|
9461
|
+
@InstanceId = instanceid
|
9462
|
+
@Offset = offset
|
9463
|
+
@Limit = limit
|
9464
|
+
end
|
9465
|
+
|
9466
|
+
def deserialize(params)
|
9467
|
+
@InstanceId = params['InstanceId']
|
9468
|
+
@Offset = params['Offset']
|
9469
|
+
@Limit = params['Limit']
|
9470
|
+
end
|
9471
|
+
end
|
9472
|
+
|
9473
|
+
# DescribeRemoteWrites返回参数结构体
|
9474
|
+
class DescribeRemoteWritesResponse < TencentCloud::Common::AbstractModel
|
9475
|
+
# @param Count: 存储数据
|
9476
|
+
# @type Count: Integer
|
9477
|
+
# @param RemoteWrites: 多写信息
|
9478
|
+
# @type RemoteWrites: Array
|
9479
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9480
|
+
# @type RequestId: String
|
9481
|
+
|
9482
|
+
attr_accessor :Count, :RemoteWrites, :RequestId
|
9483
|
+
|
9484
|
+
def initialize(count=nil, remotewrites=nil, requestid=nil)
|
9485
|
+
@Count = count
|
9486
|
+
@RemoteWrites = remotewrites
|
9487
|
+
@RequestId = requestid
|
9488
|
+
end
|
9489
|
+
|
9490
|
+
def deserialize(params)
|
9491
|
+
@Count = params['Count']
|
9492
|
+
unless params['RemoteWrites'].nil?
|
9493
|
+
@RemoteWrites = []
|
9494
|
+
params['RemoteWrites'].each do |i|
|
9495
|
+
writedestination_tmp = WriteDestination.new
|
9496
|
+
writedestination_tmp.deserialize(i)
|
9497
|
+
@RemoteWrites << writedestination_tmp
|
9498
|
+
end
|
9499
|
+
end
|
9500
|
+
@RequestId = params['RequestId']
|
9501
|
+
end
|
9502
|
+
end
|
9503
|
+
|
9445
9504
|
# DescribeSSOAccount请求参数结构体
|
9446
9505
|
class DescribeSSOAccountRequest < TencentCloud::Common::AbstractModel
|
9447
9506
|
# @param InstanceId: Grafana 实例 ID,例如:grafana-abcdefgh
|
@@ -9996,7 +10055,7 @@ module TencentCloud
|
|
9996
10055
|
# @type StartTime: String
|
9997
10056
|
# @param EndTime: 结束时间,如2018-09-22T20:51:23+08:00,默认为当前时间。 EndTime不能小于StartTime
|
9998
10057
|
# @type EndTime: String
|
9999
|
-
# @param SpecifyStatistics: 返回多种统计方式数据。avg, max, min (1,2,4)
|
10058
|
+
# @param SpecifyStatistics: 返回多种统计方式数据。avg, max, min (1,2,4)可以自由组合。特别说明:建议查询时严格参考API配置文档中提供的统计方式。如选择其他未提供的统计方式,可能有数据统计误差。
|
10000
10059
|
# @type SpecifyStatistics: Integer
|
10001
10060
|
|
10002
10061
|
attr_accessor :Namespace, :MetricName, :Instances, :Period, :StartTime, :EndTime, :SpecifyStatistics
|
@@ -16302,6 +16361,22 @@ module TencentCloud
|
|
16302
16361
|
end
|
16303
16362
|
end
|
16304
16363
|
|
16364
|
+
# 数据写向目标
|
16365
|
+
class WriteDestination < TencentCloud::Common::AbstractModel
|
16366
|
+
# @param Destination: 存储标识
|
16367
|
+
# @type Destination: String
|
16368
|
+
|
16369
|
+
attr_accessor :Destination
|
16370
|
+
|
16371
|
+
def initialize(destination=nil)
|
16372
|
+
@Destination = destination
|
16373
|
+
end
|
16374
|
+
|
16375
|
+
def deserialize(params)
|
16376
|
+
@Destination = params['Destination']
|
16377
|
+
end
|
16378
|
+
end
|
16379
|
+
|
16305
16380
|
end
|
16306
16381
|
end
|
16307
16382
|
end
|
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.1158
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|