tencentcloud-sdk-es 1.0.229 → 1.0.230

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: 2a471befc58674ce4d366417f347a073154f417a
4
- data.tar.gz: e9e8489449ef9b0f5a5467f0e15acb23ff8e098b
3
+ metadata.gz: 8dc39233d2216612ad0b0a3150d6c69cac1cdbfd
4
+ data.tar.gz: bf659d4d44d8e83397b475c9d002978d6bcff7d9
5
5
  SHA512:
6
- metadata.gz: 4b165d6d933638cf5fb1c9eb6310cc696feabd91bd9032be43a45f83e9eebdb3e34db019b97c2e4ca1d6fa7f61133b3abf3d8632ae333bfa8bb2fd5079065081
7
- data.tar.gz: 94252e595e51d846a336f9251ef5ab220d27785678eecd90bcf64dd9a949343cbbe9de35a5af3fc40d88e08d50bb40fc3411d6758ab41395f4d2f895cad0cfc7
6
+ metadata.gz: 1e086edffc434b50200cc1bb7d96c965a28b5123ea22884fe0a1e41d6883f6c3baabd1935a9c4cabab8f92564f9f48fe83bf5c5b5ab330c5dbf5817322bd68e2
7
+ data.tar.gz: c98f21192c06dbd64db4fb791cc27995ae204e7b74d8ce1e3ecb2247cbb96aa10de92ff5077b3715a6b0c3a08df529d4de8e038a84b3876d10218a069a36984a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.229
1
+ 1.0.230
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 查询集群各视图数据,包括集群维度、节点维度、Kibana维度
153
+
154
+ # @param request: Request instance for DescribeViews.
155
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeViewsRequest`
156
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeViewsResponse`
157
+ def DescribeViews(request)
158
+ body = send_request('DescribeViews', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeViewsResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 智能运维诊断集群
153
177
 
154
178
  # @param request: Request instance for DiagnoseInstance.
@@ -17,6 +17,94 @@
17
17
  module TencentCloud
18
18
  module Es
19
19
  module V20180416
20
+ # 集群维度视图数据
21
+ class ClusterView < TencentCloud::Common::AbstractModel
22
+ # @param Health: 集群健康状态
23
+ # @type Health: Float
24
+ # @param Visible: 集群是否可见
25
+ # @type Visible: Float
26
+ # @param Break: 集群是否熔断
27
+ # @type Break: Float
28
+ # @param AvgDiskUsage: 平均磁盘使用率
29
+ # @type AvgDiskUsage: Float
30
+ # @param AvgMemUsage: 平均内存使用率
31
+ # @type AvgMemUsage: Float
32
+ # @param AvgCpuUsage: 平均cpu使用率
33
+ # @type AvgCpuUsage: Float
34
+ # @param TotalDiskSize: 集群总存储大小
35
+ # @type TotalDiskSize: Integer
36
+ # @param TargetNodeTypes: 客户端请求节点
37
+ # @type TargetNodeTypes: Array
38
+ # @param NodeNum: 在线节点数
39
+ # @type NodeNum: Integer
40
+ # @param TotalNodeNum: 总节点数
41
+ # @type TotalNodeNum: Integer
42
+ # @param DataNodeNum: 数据节点数
43
+ # @type DataNodeNum: Integer
44
+ # @param IndexNum: 索引数
45
+ # @type IndexNum: Integer
46
+ # @param DocNum: 文档数
47
+ # @type DocNum: Integer
48
+ # @param DiskUsedInBytes: 磁盘已使用字节数
49
+ # @type DiskUsedInBytes: Integer
50
+ # @param ShardNum: 分片个数
51
+ # @type ShardNum: Integer
52
+ # @param PrimaryShardNum: 主分片个数
53
+ # @type PrimaryShardNum: Integer
54
+ # @param RelocatingShardNum: 迁移中的分片个数
55
+ # @type RelocatingShardNum: Integer
56
+ # @param InitializingShardNum: 初始化中的分片个数
57
+ # @type InitializingShardNum: Integer
58
+ # @param UnassignedShardNum: 未分配的分片个数
59
+ # @type UnassignedShardNum: Integer
60
+
61
+ attr_accessor :Health, :Visible, :Break, :AvgDiskUsage, :AvgMemUsage, :AvgCpuUsage, :TotalDiskSize, :TargetNodeTypes, :NodeNum, :TotalNodeNum, :DataNodeNum, :IndexNum, :DocNum, :DiskUsedInBytes, :ShardNum, :PrimaryShardNum, :RelocatingShardNum, :InitializingShardNum, :UnassignedShardNum
62
+
63
+ def initialize(health=nil, visible=nil, _break=nil, avgdiskusage=nil, avgmemusage=nil, avgcpuusage=nil, totaldisksize=nil, targetnodetypes=nil, nodenum=nil, totalnodenum=nil, datanodenum=nil, indexnum=nil, docnum=nil, diskusedinbytes=nil, shardnum=nil, primaryshardnum=nil, relocatingshardnum=nil, initializingshardnum=nil, unassignedshardnum=nil)
64
+ @Health = health
65
+ @Visible = visible
66
+ @Break = _break
67
+ @AvgDiskUsage = avgdiskusage
68
+ @AvgMemUsage = avgmemusage
69
+ @AvgCpuUsage = avgcpuusage
70
+ @TotalDiskSize = totaldisksize
71
+ @TargetNodeTypes = targetnodetypes
72
+ @NodeNum = nodenum
73
+ @TotalNodeNum = totalnodenum
74
+ @DataNodeNum = datanodenum
75
+ @IndexNum = indexnum
76
+ @DocNum = docnum
77
+ @DiskUsedInBytes = diskusedinbytes
78
+ @ShardNum = shardnum
79
+ @PrimaryShardNum = primaryshardnum
80
+ @RelocatingShardNum = relocatingshardnum
81
+ @InitializingShardNum = initializingshardnum
82
+ @UnassignedShardNum = unassignedshardnum
83
+ end
84
+
85
+ def deserialize(params)
86
+ @Health = params['Health']
87
+ @Visible = params['Visible']
88
+ @Break = params['Break']
89
+ @AvgDiskUsage = params['AvgDiskUsage']
90
+ @AvgMemUsage = params['AvgMemUsage']
91
+ @AvgCpuUsage = params['AvgCpuUsage']
92
+ @TotalDiskSize = params['TotalDiskSize']
93
+ @TargetNodeTypes = params['TargetNodeTypes']
94
+ @NodeNum = params['NodeNum']
95
+ @TotalNodeNum = params['TotalNodeNum']
96
+ @DataNodeNum = params['DataNodeNum']
97
+ @IndexNum = params['IndexNum']
98
+ @DocNum = params['DocNum']
99
+ @DiskUsedInBytes = params['DiskUsedInBytes']
100
+ @ShardNum = params['ShardNum']
101
+ @PrimaryShardNum = params['PrimaryShardNum']
102
+ @RelocatingShardNum = params['RelocatingShardNum']
103
+ @InitializingShardNum = params['InitializingShardNum']
104
+ @UnassignedShardNum = params['UnassignedShardNum']
105
+ end
106
+ end
107
+
20
108
  # ES cos自动备份信息
21
109
  class CosBackup < TencentCloud::Common::AbstractModel
22
110
  # @param IsAutoBackup: 是否开启cos自动备份
@@ -483,6 +571,70 @@ module TencentCloud
483
571
  end
484
572
  end
485
573
 
574
+ # DescribeViews请求参数结构体
575
+ class DescribeViewsRequest < TencentCloud::Common::AbstractModel
576
+ # @param InstanceId: 集群实例ID
577
+ # @type InstanceId: String
578
+
579
+ attr_accessor :InstanceId
580
+
581
+ def initialize(instanceid=nil)
582
+ @InstanceId = instanceid
583
+ end
584
+
585
+ def deserialize(params)
586
+ @InstanceId = params['InstanceId']
587
+ end
588
+ end
589
+
590
+ # DescribeViews返回参数结构体
591
+ class DescribeViewsResponse < TencentCloud::Common::AbstractModel
592
+ # @param ClusterView: 集群维度视图
593
+ # 注意:此字段可能返回 null,表示取不到有效值。
594
+ # @type ClusterView: :class:`Tencentcloud::Es.v20180416.models.ClusterView`
595
+ # @param NodesView: 节点维度视图
596
+ # 注意:此字段可能返回 null,表示取不到有效值。
597
+ # @type NodesView: Array
598
+ # @param KibanasView: Kibana维度视图
599
+ # 注意:此字段可能返回 null,表示取不到有效值。
600
+ # @type KibanasView: Array
601
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
602
+ # @type RequestId: String
603
+
604
+ attr_accessor :ClusterView, :NodesView, :KibanasView, :RequestId
605
+
606
+ def initialize(clusterview=nil, nodesview=nil, kibanasview=nil, requestid=nil)
607
+ @ClusterView = clusterview
608
+ @NodesView = nodesview
609
+ @KibanasView = kibanasview
610
+ @RequestId = requestid
611
+ end
612
+
613
+ def deserialize(params)
614
+ unless params['ClusterView'].nil?
615
+ @ClusterView = ClusterView.new
616
+ @ClusterView.deserialize(params['ClusterView'])
617
+ end
618
+ unless params['NodesView'].nil?
619
+ @NodesView = []
620
+ params['NodesView'].each do |i|
621
+ nodeview_tmp = NodeView.new
622
+ nodeview_tmp.deserialize(i)
623
+ @NodesView << nodeview_tmp
624
+ end
625
+ end
626
+ unless params['KibanasView'].nil?
627
+ @KibanasView = []
628
+ params['KibanasView'].each do |i|
629
+ kibanaview_tmp = KibanaView.new
630
+ kibanaview_tmp.deserialize(i)
631
+ @KibanasView << kibanaview_tmp
632
+ end
633
+ end
634
+ @RequestId = params['RequestId']
635
+ end
636
+ end
637
+
486
638
  # DiagnoseInstance请求参数结构体
487
639
  class DiagnoseInstanceRequest < TencentCloud::Common::AbstractModel
488
640
  # @param InstanceId: ES实例ID
@@ -1080,6 +1232,50 @@ module TencentCloud
1080
1232
  end
1081
1233
  end
1082
1234
 
1235
+ # Kibana视图数据
1236
+ class KibanaView < TencentCloud::Common::AbstractModel
1237
+ # @param Ip: Kibana节点IP
1238
+ # @type Ip: String
1239
+ # @param DiskSize: 节点总磁盘大小
1240
+ # @type DiskSize: Integer
1241
+ # @param DiskUsage: 磁盘使用率
1242
+ # @type DiskUsage: Float
1243
+ # @param MemSize: 节点内存大小
1244
+ # @type MemSize: Integer
1245
+ # @param MemUsage: 内存使用率
1246
+ # @type MemUsage: Float
1247
+ # @param CpuNum: 节点cpu个数
1248
+ # @type CpuNum: Integer
1249
+ # @param CpuUsage: cpu使用率
1250
+ # @type CpuUsage: Float
1251
+ # @param Zone: 可用区
1252
+ # @type Zone: String
1253
+
1254
+ attr_accessor :Ip, :DiskSize, :DiskUsage, :MemSize, :MemUsage, :CpuNum, :CpuUsage, :Zone
1255
+
1256
+ def initialize(ip=nil, disksize=nil, diskusage=nil, memsize=nil, memusage=nil, cpunum=nil, cpuusage=nil, zone=nil)
1257
+ @Ip = ip
1258
+ @DiskSize = disksize
1259
+ @DiskUsage = diskusage
1260
+ @MemSize = memsize
1261
+ @MemUsage = memusage
1262
+ @CpuNum = cpunum
1263
+ @CpuUsage = cpuusage
1264
+ @Zone = zone
1265
+ end
1266
+
1267
+ def deserialize(params)
1268
+ @Ip = params['Ip']
1269
+ @DiskSize = params['DiskSize']
1270
+ @DiskUsage = params['DiskUsage']
1271
+ @MemSize = params['MemSize']
1272
+ @MemUsage = params['MemUsage']
1273
+ @CpuNum = params['CpuNum']
1274
+ @CpuUsage = params['CpuUsage']
1275
+ @Zone = params['Zone']
1276
+ end
1277
+ end
1278
+
1083
1279
  # 节点本地盘信息
1084
1280
  class LocalDiskInfo < TencentCloud::Common::AbstractModel
1085
1281
  # @param LocalDiskType: 本地盘类型<li>LOCAL_SATA:大数据型</li><li>NVME_SSD:高IO型</li>
@@ -1195,6 +1391,86 @@ module TencentCloud
1195
1391
  end
1196
1392
  end
1197
1393
 
1394
+ # 节点维度视图数据
1395
+ class NodeView < TencentCloud::Common::AbstractModel
1396
+ # @param NodeId: 节点ID
1397
+ # @type NodeId: String
1398
+ # @param NodeIp: 节点IP
1399
+ # @type NodeIp: String
1400
+ # @param Visible: 节点是否可见
1401
+ # @type Visible: Float
1402
+ # @param Break: 是否熔断
1403
+ # @type Break: Float
1404
+ # @param DiskSize: 节点总磁盘大小
1405
+ # @type DiskSize: Integer
1406
+ # @param DiskUsage: 磁盘使用率
1407
+ # @type DiskUsage: Float
1408
+ # @param MemSize: 节点内存大小,单位GB
1409
+ # @type MemSize: Integer
1410
+ # @param MemUsage: 内存使用率
1411
+ # @type MemUsage: Float
1412
+ # @param CpuNum: 节点cpu个数
1413
+ # @type CpuNum: Integer
1414
+ # @param CpuUsage: cpu使用率
1415
+ # @type CpuUsage: Float
1416
+ # @param Zone: 可用区
1417
+ # @type Zone: String
1418
+ # @param NodeRole: 节点角色
1419
+ # @type NodeRole: String
1420
+ # @param NodeHttpIp: 节点HTTP IP
1421
+ # @type NodeHttpIp: String
1422
+ # @param JvmMemUsage: JVM内存使用率
1423
+ # @type JvmMemUsage: Float
1424
+ # @param ShardNum: 节点分片数
1425
+ # @type ShardNum: Integer
1426
+ # @param DiskIds: 节点上磁盘ID列表
1427
+ # @type DiskIds: Array
1428
+ # @param Hidden: 是否为隐藏可用区
1429
+ # @type Hidden: Boolean
1430
+
1431
+ attr_accessor :NodeId, :NodeIp, :Visible, :Break, :DiskSize, :DiskUsage, :MemSize, :MemUsage, :CpuNum, :CpuUsage, :Zone, :NodeRole, :NodeHttpIp, :JvmMemUsage, :ShardNum, :DiskIds, :Hidden
1432
+
1433
+ def initialize(nodeid=nil, nodeip=nil, visible=nil, _break=nil, disksize=nil, diskusage=nil, memsize=nil, memusage=nil, cpunum=nil, cpuusage=nil, zone=nil, noderole=nil, nodehttpip=nil, jvmmemusage=nil, shardnum=nil, diskids=nil, hidden=nil)
1434
+ @NodeId = nodeid
1435
+ @NodeIp = nodeip
1436
+ @Visible = visible
1437
+ @Break = _break
1438
+ @DiskSize = disksize
1439
+ @DiskUsage = diskusage
1440
+ @MemSize = memsize
1441
+ @MemUsage = memusage
1442
+ @CpuNum = cpunum
1443
+ @CpuUsage = cpuusage
1444
+ @Zone = zone
1445
+ @NodeRole = noderole
1446
+ @NodeHttpIp = nodehttpip
1447
+ @JvmMemUsage = jvmmemusage
1448
+ @ShardNum = shardnum
1449
+ @DiskIds = diskids
1450
+ @Hidden = hidden
1451
+ end
1452
+
1453
+ def deserialize(params)
1454
+ @NodeId = params['NodeId']
1455
+ @NodeIp = params['NodeIp']
1456
+ @Visible = params['Visible']
1457
+ @Break = params['Break']
1458
+ @DiskSize = params['DiskSize']
1459
+ @DiskUsage = params['DiskUsage']
1460
+ @MemSize = params['MemSize']
1461
+ @MemUsage = params['MemUsage']
1462
+ @CpuNum = params['CpuNum']
1463
+ @CpuUsage = params['CpuUsage']
1464
+ @Zone = params['Zone']
1465
+ @NodeRole = params['NodeRole']
1466
+ @NodeHttpIp = params['NodeHttpIp']
1467
+ @JvmMemUsage = params['JvmMemUsage']
1468
+ @ShardNum = params['ShardNum']
1469
+ @DiskIds = params['DiskIds']
1470
+ @Hidden = params['Hidden']
1471
+ end
1472
+ end
1473
+
1198
1474
  # ES集群操作详细信息
1199
1475
  class Operation < TencentCloud::Common::AbstractModel
1200
1476
  # @param Id: 操作唯一id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.229
4
+ version: 1.0.230
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-22 00:00:00.000000000 Z
11
+ date: 2021-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common