tencentcloud-sdk-monitor 3.0.406 → 3.0.407
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 +24 -0
- data/lib/v20180724/models.rb +126 -7
- 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: b0d5bfce95be205a608186a574f4c13754ed899b
|
4
|
+
data.tar.gz: a4cf9cde8ee6838d6f415b09ecde6f58e82c6cd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00a3f1a7b388fa78b06e44b3f076e4aaa017caf06d595edce49ff25e94020c9cdbd447aa9ad5a6f476dccf2c5805e95b11c9e70f70f9dd60f07ed48b6059bc46
|
7
|
+
data.tar.gz: 0ae562c2db8a52bc16d42881656dea87c73ce3f17e2c340fb185899d5d33030097bcd8e1c3de6a3788d318e3352cf4a4f4871c1bafa3e74d20a2ce03de40606c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.407
|
data/lib/v20180724/client.rb
CHANGED
@@ -1165,6 +1165,30 @@ module TencentCloud
|
|
1165
1165
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1166
1166
|
end
|
1167
1167
|
|
1168
|
+
# 列出 Grafana 所有告警通道
|
1169
|
+
|
1170
|
+
# @param request: Request instance for DescribeGrafanaChannels.
|
1171
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaChannelsRequest`
|
1172
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeGrafanaChannelsResponse`
|
1173
|
+
def DescribeGrafanaChannels(request)
|
1174
|
+
body = send_request('DescribeGrafanaChannels', request.serialize)
|
1175
|
+
response = JSON.parse(body)
|
1176
|
+
if response['Response'].key?('Error') == false
|
1177
|
+
model = DescribeGrafanaChannelsResponse.new
|
1178
|
+
model.deserialize(response['Response'])
|
1179
|
+
model
|
1180
|
+
else
|
1181
|
+
code = response['Response']['Error']['Code']
|
1182
|
+
message = response['Response']['Error']['Message']
|
1183
|
+
reqid = response['Response']['RequestId']
|
1184
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1185
|
+
end
|
1186
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1187
|
+
raise e
|
1188
|
+
rescue StandardError => e
|
1189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1190
|
+
end
|
1191
|
+
|
1168
1192
|
# 列出 Grafana 的设置,即 grafana.ini 文件内容
|
1169
1193
|
|
1170
1194
|
# @param request: Request instance for DescribeGrafanaConfig.
|
data/lib/v20180724/models.rb
CHANGED
@@ -4116,6 +4116,69 @@ module TencentCloud
|
|
4116
4116
|
end
|
4117
4117
|
end
|
4118
4118
|
|
4119
|
+
# DescribeGrafanaChannels请求参数结构体
|
4120
|
+
class DescribeGrafanaChannelsRequest < TencentCloud::Common::AbstractModel
|
4121
|
+
# @param InstanceId: 实例 ID
|
4122
|
+
# @type InstanceId: String
|
4123
|
+
# @param Offset: 偏移量
|
4124
|
+
# @type Offset: Integer
|
4125
|
+
# @param Limit: 查询数量
|
4126
|
+
# @type Limit: Integer
|
4127
|
+
# @param ChannelName: 渠道名
|
4128
|
+
# @type ChannelName: String
|
4129
|
+
# @param ChannelIds: 渠道 ID
|
4130
|
+
# @type ChannelIds: Array
|
4131
|
+
# @param ChannelState: 状态
|
4132
|
+
# @type ChannelState: Integer
|
4133
|
+
|
4134
|
+
attr_accessor :InstanceId, :Offset, :Limit, :ChannelName, :ChannelIds, :ChannelState
|
4135
|
+
|
4136
|
+
def initialize(instanceid=nil, offset=nil, limit=nil, channelname=nil, channelids=nil, channelstate=nil)
|
4137
|
+
@InstanceId = instanceid
|
4138
|
+
@Offset = offset
|
4139
|
+
@Limit = limit
|
4140
|
+
@ChannelName = channelname
|
4141
|
+
@ChannelIds = channelids
|
4142
|
+
@ChannelState = channelstate
|
4143
|
+
end
|
4144
|
+
|
4145
|
+
def deserialize(params)
|
4146
|
+
@InstanceId = params['InstanceId']
|
4147
|
+
@Offset = params['Offset']
|
4148
|
+
@Limit = params['Limit']
|
4149
|
+
@ChannelName = params['ChannelName']
|
4150
|
+
@ChannelIds = params['ChannelIds']
|
4151
|
+
@ChannelState = params['ChannelState']
|
4152
|
+
end
|
4153
|
+
end
|
4154
|
+
|
4155
|
+
# DescribeGrafanaChannels返回参数结构体
|
4156
|
+
class DescribeGrafanaChannelsResponse < TencentCloud::Common::AbstractModel
|
4157
|
+
# @param NotificationChannelSet: 告警通道数组
|
4158
|
+
# @type NotificationChannelSet: Array
|
4159
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4160
|
+
# @type RequestId: String
|
4161
|
+
|
4162
|
+
attr_accessor :NotificationChannelSet, :RequestId
|
4163
|
+
|
4164
|
+
def initialize(notificationchannelset=nil, requestid=nil)
|
4165
|
+
@NotificationChannelSet = notificationchannelset
|
4166
|
+
@RequestId = requestid
|
4167
|
+
end
|
4168
|
+
|
4169
|
+
def deserialize(params)
|
4170
|
+
unless params['NotificationChannelSet'].nil?
|
4171
|
+
@NotificationChannelSet = []
|
4172
|
+
params['NotificationChannelSet'].each do |i|
|
4173
|
+
grafanachannel_tmp = GrafanaChannel.new
|
4174
|
+
grafanachannel_tmp.deserialize(i)
|
4175
|
+
@NotificationChannelSet << grafanachannel_tmp
|
4176
|
+
end
|
4177
|
+
end
|
4178
|
+
@RequestId = params['RequestId']
|
4179
|
+
end
|
4180
|
+
end
|
4181
|
+
|
4119
4182
|
# DescribeGrafanaConfig请求参数结构体
|
4120
4183
|
class DescribeGrafanaConfigRequest < TencentCloud::Common::AbstractModel
|
4121
4184
|
# @param InstanceId: 实例 ID
|
@@ -6944,14 +7007,21 @@ module TencentCloud
|
|
6944
7007
|
# @type Notes: String
|
6945
7008
|
# @param CreateAt: 创建时间
|
6946
7009
|
# @type CreateAt: String
|
7010
|
+
# @param InstanceId: 实例 ID
|
7011
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7012
|
+
# @type InstanceId: String
|
7013
|
+
# @param Uin: 用户主账号 UIN
|
7014
|
+
# @type Uin: String
|
6947
7015
|
|
6948
|
-
attr_accessor :UserId, :Role, :Notes, :CreateAt
|
7016
|
+
attr_accessor :UserId, :Role, :Notes, :CreateAt, :InstanceId, :Uin
|
6949
7017
|
|
6950
|
-
def initialize(userid=nil, role=nil, notes=nil, createat=nil)
|
7018
|
+
def initialize(userid=nil, role=nil, notes=nil, createat=nil, instanceid=nil, uin=nil)
|
6951
7019
|
@UserId = userid
|
6952
7020
|
@Role = role
|
6953
7021
|
@Notes = notes
|
6954
7022
|
@CreateAt = createat
|
7023
|
+
@InstanceId = instanceid
|
7024
|
+
@Uin = uin
|
6955
7025
|
end
|
6956
7026
|
|
6957
7027
|
def deserialize(params)
|
@@ -6966,6 +7036,8 @@ module TencentCloud
|
|
6966
7036
|
end
|
6967
7037
|
@Notes = params['Notes']
|
6968
7038
|
@CreateAt = params['CreateAt']
|
7039
|
+
@InstanceId = params['InstanceId']
|
7040
|
+
@Uin = params['Uin']
|
6969
7041
|
end
|
6970
7042
|
end
|
6971
7043
|
|
@@ -6989,6 +7061,43 @@ module TencentCloud
|
|
6989
7061
|
end
|
6990
7062
|
end
|
6991
7063
|
|
7064
|
+
# Grafana 告警渠道
|
7065
|
+
class GrafanaChannel < TencentCloud::Common::AbstractModel
|
7066
|
+
# @param ChannelId: 渠道 ID
|
7067
|
+
# @type ChannelId: String
|
7068
|
+
# @param ChannelName: 渠道名
|
7069
|
+
# @type ChannelName: String
|
7070
|
+
# @param Receivers: 告警通道模板 ID 数组
|
7071
|
+
# @type Receivers: Array
|
7072
|
+
# @param CreatedAt: 创建时间
|
7073
|
+
# @type CreatedAt: String
|
7074
|
+
# @param UpdatedAt: 更新时间
|
7075
|
+
# @type UpdatedAt: String
|
7076
|
+
# @param OrganizationIds: 告警渠道的所有生效组织
|
7077
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7078
|
+
# @type OrganizationIds: Array
|
7079
|
+
|
7080
|
+
attr_accessor :ChannelId, :ChannelName, :Receivers, :CreatedAt, :UpdatedAt, :OrganizationIds
|
7081
|
+
|
7082
|
+
def initialize(channelid=nil, channelname=nil, receivers=nil, createdat=nil, updatedat=nil, organizationids=nil)
|
7083
|
+
@ChannelId = channelid
|
7084
|
+
@ChannelName = channelname
|
7085
|
+
@Receivers = receivers
|
7086
|
+
@CreatedAt = createdat
|
7087
|
+
@UpdatedAt = updatedat
|
7088
|
+
@OrganizationIds = organizationids
|
7089
|
+
end
|
7090
|
+
|
7091
|
+
def deserialize(params)
|
7092
|
+
@ChannelId = params['ChannelId']
|
7093
|
+
@ChannelName = params['ChannelName']
|
7094
|
+
@Receivers = params['Receivers']
|
7095
|
+
@CreatedAt = params['CreatedAt']
|
7096
|
+
@UpdatedAt = params['UpdatedAt']
|
7097
|
+
@OrganizationIds = params['OrganizationIds']
|
7098
|
+
end
|
7099
|
+
end
|
7100
|
+
|
6992
7101
|
# 查询 Grafana 实例时的实例类型
|
6993
7102
|
class GrafanaInstanceInfo < TencentCloud::Common::AbstractModel
|
6994
7103
|
# @param InstanceName: 实例名
|
@@ -7095,14 +7204,18 @@ module TencentCloud
|
|
7095
7204
|
# @type Content: String
|
7096
7205
|
# @param Description: 集成描述
|
7097
7206
|
# @type Description: String
|
7207
|
+
# @param GrafanaURL: Grafana 跳转地址
|
7208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7209
|
+
# @type GrafanaURL: String
|
7098
7210
|
|
7099
|
-
attr_accessor :IntegrationId, :Kind, :Content, :Description
|
7211
|
+
attr_accessor :IntegrationId, :Kind, :Content, :Description, :GrafanaURL
|
7100
7212
|
|
7101
|
-
def initialize(integrationid=nil, kind=nil, content=nil, description=nil)
|
7213
|
+
def initialize(integrationid=nil, kind=nil, content=nil, description=nil, grafanaurl=nil)
|
7102
7214
|
@IntegrationId = integrationid
|
7103
7215
|
@Kind = kind
|
7104
7216
|
@Content = content
|
7105
7217
|
@Description = description
|
7218
|
+
@GrafanaURL = grafanaurl
|
7106
7219
|
end
|
7107
7220
|
|
7108
7221
|
def deserialize(params)
|
@@ -7110,6 +7223,7 @@ module TencentCloud
|
|
7110
7223
|
@Kind = params['Kind']
|
7111
7224
|
@Content = params['Content']
|
7112
7225
|
@Description = params['Description']
|
7226
|
+
@GrafanaURL = params['GrafanaURL']
|
7113
7227
|
end
|
7114
7228
|
end
|
7115
7229
|
|
@@ -9126,7 +9240,7 @@ module TencentCloud
|
|
9126
9240
|
# @type RuleId: String
|
9127
9241
|
# @param RuleState: 规则状态码
|
9128
9242
|
# @type RuleState: Integer
|
9129
|
-
# @param Name:
|
9243
|
+
# @param Name: 分组名称
|
9130
9244
|
# @type Name: String
|
9131
9245
|
# @param Group: 规则内容组
|
9132
9246
|
# @type Group: String
|
@@ -9136,10 +9250,13 @@ module TencentCloud
|
|
9136
9250
|
# @type CreatedAt: String
|
9137
9251
|
# @param UpdatedAt: 规则最近更新时间
|
9138
9252
|
# @type UpdatedAt: String
|
9253
|
+
# @param RuleName: 规则名称
|
9254
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9255
|
+
# @type RuleName: String
|
9139
9256
|
|
9140
|
-
attr_accessor :RuleId, :RuleState, :Name, :Group, :Total, :CreatedAt, :UpdatedAt
|
9257
|
+
attr_accessor :RuleId, :RuleState, :Name, :Group, :Total, :CreatedAt, :UpdatedAt, :RuleName
|
9141
9258
|
|
9142
|
-
def initialize(ruleid=nil, rulestate=nil, name=nil, group=nil, total=nil, createdat=nil, updatedat=nil)
|
9259
|
+
def initialize(ruleid=nil, rulestate=nil, name=nil, group=nil, total=nil, createdat=nil, updatedat=nil, rulename=nil)
|
9143
9260
|
@RuleId = ruleid
|
9144
9261
|
@RuleState = rulestate
|
9145
9262
|
@Name = name
|
@@ -9147,6 +9264,7 @@ module TencentCloud
|
|
9147
9264
|
@Total = total
|
9148
9265
|
@CreatedAt = createdat
|
9149
9266
|
@UpdatedAt = updatedat
|
9267
|
+
@RuleName = rulename
|
9150
9268
|
end
|
9151
9269
|
|
9152
9270
|
def deserialize(params)
|
@@ -9157,6 +9275,7 @@ module TencentCloud
|
|
9157
9275
|
@Total = params['Total']
|
9158
9276
|
@CreatedAt = params['CreatedAt']
|
9159
9277
|
@UpdatedAt = params['UpdatedAt']
|
9278
|
+
@RuleName = params['RuleName']
|
9160
9279
|
end
|
9161
9280
|
end
|
9162
9281
|
|
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.407
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|