tencentcloud-sdk-monitor 3.0.405 → 3.0.408

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a75829f80b35b25c991bc0c4f6e17f5582968f6
4
- data.tar.gz: 2443ccee297be62c735c19e0ce06d62bcea5d03f
3
+ metadata.gz: aae9d4dd200a8b3426cc82372c47a6236b465e23
4
+ data.tar.gz: f70f4f63f770c2fd6d7e3d428282650fd2638726
5
5
  SHA512:
6
- metadata.gz: 7e9dab598faa17a0583672f9dfd9b0a48139f963941a24126fc2c9d3d0f1d9f17a1e06cc449ad30c070389e660793eab3c0d2af21ae56067a7a73581d57ab441
7
- data.tar.gz: daf2c5bd219751368e15a6b704a4a2e7618ef992193e9f8ef01576e149007c6fbcd18491377498e278ea7cb72b7be4712930597c772275baa4981a5888d86546
6
+ metadata.gz: 84fd1f0ef04e8c667cc7a484c773965c57c36f8b755f4e8ba22d6797b328fac244b2ba5640e6e2a17cd9077fbc1baafa14e1c84c5b309eec9ce2cd9859937b49
7
+ data.tar.gz: 61cc32ebc0de1971d9b8a5831baa8afeadb8392c46ff2e926be39c4ee1789cb3bf7372ca9ada25752913405be8186b1fc6ff45239b6e940a974b1c0913a07321
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.405
1
+ 3.0.408
@@ -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.
@@ -1776,6 +1800,9 @@ module TencentCloud
1776
1800
  # 接口调用频率限制为:20次/秒,1200次/分钟。单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
1777
1801
  # 若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
1778
1802
 
1803
+ # >?
1804
+ # >- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。
1805
+
1779
1806
  # @param request: Request instance for GetMonitorData.
1780
1807
  # @type request: :class:`Tencentcloud::monitor::V20180724::GetMonitorDataRequest`
1781
1808
  # @rtype: :class:`Tencentcloud::monitor::V20180724::GetMonitorDataResponse`
@@ -1534,16 +1534,21 @@ module TencentCloud
1534
1534
 
1535
1535
  # CreateGrafanaIntegration返回参数结构体
1536
1536
  class CreateGrafanaIntegrationResponse < TencentCloud::Common::AbstractModel
1537
+ # @param IntegrationId: 集成 ID
1538
+ # 注意:此字段可能返回 null,表示取不到有效值。
1539
+ # @type IntegrationId: String
1537
1540
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1538
1541
  # @type RequestId: String
1539
1542
 
1540
- attr_accessor :RequestId
1543
+ attr_accessor :IntegrationId, :RequestId
1541
1544
 
1542
- def initialize(requestid=nil)
1545
+ def initialize(integrationid=nil, requestid=nil)
1546
+ @IntegrationId = integrationid
1543
1547
  @RequestId = requestid
1544
1548
  end
1545
1549
 
1546
1550
  def deserialize(params)
1551
+ @IntegrationId = params['IntegrationId']
1547
1552
  @RequestId = params['RequestId']
1548
1553
  end
1549
1554
  end
@@ -1554,21 +1559,24 @@ module TencentCloud
1554
1559
  # @type InstanceId: String
1555
1560
  # @param ChannelName: 渠道名
1556
1561
  # @type ChannelName: String
1557
- # @param OrgId: 组织 ID
1562
+ # @param OrgId: 默认为1,已废弃,请使用 OrganizationIds
1558
1563
  # @type OrgId: Integer
1559
1564
  # @param Receivers: 接受告警通道 ID 数组
1560
1565
  # @type Receivers: Array
1561
- # @param ExtraOrgIds: 额外组织 ID 数组
1566
+ # @param ExtraOrgIds: 额外组织 ID 数组,已废弃,请使用 OrganizationIds
1562
1567
  # @type ExtraOrgIds: Array
1568
+ # @param OrganizationIds: 生效的所有组织 ID 数组,默认为 ["1"]
1569
+ # @type OrganizationIds: Array
1563
1570
 
1564
- attr_accessor :InstanceId, :ChannelName, :OrgId, :Receivers, :ExtraOrgIds
1571
+ attr_accessor :InstanceId, :ChannelName, :OrgId, :Receivers, :ExtraOrgIds, :OrganizationIds
1565
1572
 
1566
- def initialize(instanceid=nil, channelname=nil, orgid=nil, receivers=nil, extraorgids=nil)
1573
+ def initialize(instanceid=nil, channelname=nil, orgid=nil, receivers=nil, extraorgids=nil, organizationids=nil)
1567
1574
  @InstanceId = instanceid
1568
1575
  @ChannelName = channelname
1569
1576
  @OrgId = orgid
1570
1577
  @Receivers = receivers
1571
1578
  @ExtraOrgIds = extraorgids
1579
+ @OrganizationIds = organizationids
1572
1580
  end
1573
1581
 
1574
1582
  def deserialize(params)
@@ -1577,6 +1585,7 @@ module TencentCloud
1577
1585
  @OrgId = params['OrgId']
1578
1586
  @Receivers = params['Receivers']
1579
1587
  @ExtraOrgIds = params['ExtraOrgIds']
1588
+ @OrganizationIds = params['OrganizationIds']
1580
1589
  end
1581
1590
  end
1582
1591
 
@@ -4107,6 +4116,69 @@ module TencentCloud
4107
4116
  end
4108
4117
  end
4109
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
+
4110
4182
  # DescribeGrafanaConfig请求参数结构体
4111
4183
  class DescribeGrafanaConfigRequest < TencentCloud::Common::AbstractModel
4112
4184
  # @param InstanceId: 实例 ID
@@ -6935,14 +7007,21 @@ module TencentCloud
6935
7007
  # @type Notes: String
6936
7008
  # @param CreateAt: 创建时间
6937
7009
  # @type CreateAt: String
7010
+ # @param InstanceId: 实例 ID
7011
+ # 注意:此字段可能返回 null,表示取不到有效值。
7012
+ # @type InstanceId: String
7013
+ # @param Uin: 用户主账号 UIN
7014
+ # @type Uin: String
6938
7015
 
6939
- attr_accessor :UserId, :Role, :Notes, :CreateAt
7016
+ attr_accessor :UserId, :Role, :Notes, :CreateAt, :InstanceId, :Uin
6940
7017
 
6941
- 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)
6942
7019
  @UserId = userid
6943
7020
  @Role = role
6944
7021
  @Notes = notes
6945
7022
  @CreateAt = createat
7023
+ @InstanceId = instanceid
7024
+ @Uin = uin
6946
7025
  end
6947
7026
 
6948
7027
  def deserialize(params)
@@ -6957,6 +7036,8 @@ module TencentCloud
6957
7036
  end
6958
7037
  @Notes = params['Notes']
6959
7038
  @CreateAt = params['CreateAt']
7039
+ @InstanceId = params['InstanceId']
7040
+ @Uin = params['Uin']
6960
7041
  end
6961
7042
  end
6962
7043
 
@@ -6980,6 +7061,43 @@ module TencentCloud
6980
7061
  end
6981
7062
  end
6982
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
+
6983
7101
  # 查询 Grafana 实例时的实例类型
6984
7102
  class GrafanaInstanceInfo < TencentCloud::Common::AbstractModel
6985
7103
  # @param InstanceName: 实例名
@@ -7086,14 +7204,18 @@ module TencentCloud
7086
7204
  # @type Content: String
7087
7205
  # @param Description: 集成描述
7088
7206
  # @type Description: String
7207
+ # @param GrafanaURL: Grafana 跳转地址
7208
+ # 注意:此字段可能返回 null,表示取不到有效值。
7209
+ # @type GrafanaURL: String
7089
7210
 
7090
- attr_accessor :IntegrationId, :Kind, :Content, :Description
7211
+ attr_accessor :IntegrationId, :Kind, :Content, :Description, :GrafanaURL
7091
7212
 
7092
- def initialize(integrationid=nil, kind=nil, content=nil, description=nil)
7213
+ def initialize(integrationid=nil, kind=nil, content=nil, description=nil, grafanaurl=nil)
7093
7214
  @IntegrationId = integrationid
7094
7215
  @Kind = kind
7095
7216
  @Content = content
7096
7217
  @Description = description
7218
+ @GrafanaURL = grafanaurl
7097
7219
  end
7098
7220
 
7099
7221
  def deserialize(params)
@@ -7101,6 +7223,7 @@ module TencentCloud
7101
7223
  @Kind = params['Kind']
7102
7224
  @Content = params['Content']
7103
7225
  @Description = params['Description']
7226
+ @GrafanaURL = params['GrafanaURL']
7104
7227
  end
7105
7228
  end
7106
7229
 
@@ -7116,18 +7239,21 @@ module TencentCloud
7116
7239
  # @type CreatedAt: String
7117
7240
  # @param UpdatedAt: 更新时间
7118
7241
  # @type UpdatedAt: String
7119
- # @param OrgId: 默认生效组织
7242
+ # @param OrgId: 默认生效组织,已废弃,请使用 OrganizationIds
7120
7243
  # @type OrgId: String
7121
- # @param ExtraOrgIds: 额外生效组织
7244
+ # @param ExtraOrgIds: 额外生效组织,已废弃,请使用 OrganizationIds
7122
7245
  # 注意:此字段可能返回 null,表示取不到有效值。
7123
7246
  # @type ExtraOrgIds: Array
7124
- # @param OrgIds: 生效组织
7247
+ # @param OrgIds: 生效组织,已废弃,请使用 OrganizationIds
7125
7248
  # 注意:此字段可能返回 null,表示取不到有效值。
7126
7249
  # @type OrgIds: String
7250
+ # @param OrganizationIds: 告警渠道的所有生效组织
7251
+ # 注意:此字段可能返回 null,表示取不到有效值。
7252
+ # @type OrganizationIds: String
7127
7253
 
7128
- attr_accessor :ChannelId, :ChannelName, :Receivers, :CreatedAt, :UpdatedAt, :OrgId, :ExtraOrgIds, :OrgIds
7254
+ attr_accessor :ChannelId, :ChannelName, :Receivers, :CreatedAt, :UpdatedAt, :OrgId, :ExtraOrgIds, :OrgIds, :OrganizationIds
7129
7255
 
7130
- def initialize(channelid=nil, channelname=nil, receivers=nil, createdat=nil, updatedat=nil, orgid=nil, extraorgids=nil, orgids=nil)
7256
+ def initialize(channelid=nil, channelname=nil, receivers=nil, createdat=nil, updatedat=nil, orgid=nil, extraorgids=nil, orgids=nil, organizationids=nil)
7131
7257
  @ChannelId = channelid
7132
7258
  @ChannelName = channelname
7133
7259
  @Receivers = receivers
@@ -7136,6 +7262,7 @@ module TencentCloud
7136
7262
  @OrgId = orgid
7137
7263
  @ExtraOrgIds = extraorgids
7138
7264
  @OrgIds = orgids
7265
+ @OrganizationIds = organizationids
7139
7266
  end
7140
7267
 
7141
7268
  def deserialize(params)
@@ -7147,6 +7274,7 @@ module TencentCloud
7147
7274
  @OrgId = params['OrgId']
7148
7275
  @ExtraOrgIds = params['ExtraOrgIds']
7149
7276
  @OrgIds = params['OrgIds']
7277
+ @OrganizationIds = params['OrganizationIds']
7150
7278
  end
7151
7279
  end
7152
7280
 
@@ -9112,7 +9240,7 @@ module TencentCloud
9112
9240
  # @type RuleId: String
9113
9241
  # @param RuleState: 规则状态码
9114
9242
  # @type RuleState: Integer
9115
- # @param Name: 规则名称
9243
+ # @param Name: 分组名称
9116
9244
  # @type Name: String
9117
9245
  # @param Group: 规则内容组
9118
9246
  # @type Group: String
@@ -9122,10 +9250,13 @@ module TencentCloud
9122
9250
  # @type CreatedAt: String
9123
9251
  # @param UpdatedAt: 规则最近更新时间
9124
9252
  # @type UpdatedAt: String
9253
+ # @param RuleName: 规则名称
9254
+ # 注意:此字段可能返回 null,表示取不到有效值。
9255
+ # @type RuleName: String
9125
9256
 
9126
- attr_accessor :RuleId, :RuleState, :Name, :Group, :Total, :CreatedAt, :UpdatedAt
9257
+ attr_accessor :RuleId, :RuleState, :Name, :Group, :Total, :CreatedAt, :UpdatedAt, :RuleName
9127
9258
 
9128
- 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)
9129
9260
  @RuleId = ruleid
9130
9261
  @RuleState = rulestate
9131
9262
  @Name = name
@@ -9133,6 +9264,7 @@ module TencentCloud
9133
9264
  @Total = total
9134
9265
  @CreatedAt = createdat
9135
9266
  @UpdatedAt = updatedat
9267
+ @RuleName = rulename
9136
9268
  end
9137
9269
 
9138
9270
  def deserialize(params)
@@ -9143,6 +9275,7 @@ module TencentCloud
9143
9275
  @Total = params['Total']
9144
9276
  @CreatedAt = params['CreatedAt']
9145
9277
  @UpdatedAt = params['UpdatedAt']
9278
+ @RuleName = params['RuleName']
9146
9279
  end
9147
9280
  end
9148
9281
 
@@ -10059,17 +10192,20 @@ module TencentCloud
10059
10192
  # @type ChannelName: String
10060
10193
  # @param Receivers: 接受告警通道 ID 数组
10061
10194
  # @type Receivers: Array
10062
- # @param ExtraOrgIds: 额外组织 ID 数组
10195
+ # @param ExtraOrgIds: 已废弃,请使用 OrganizationIds
10063
10196
  # @type ExtraOrgIds: Array
10197
+ # @param OrganizationIds: 生效的组织 ID 数组
10198
+ # @type OrganizationIds: Array
10064
10199
 
10065
- attr_accessor :ChannelId, :InstanceId, :ChannelName, :Receivers, :ExtraOrgIds
10200
+ attr_accessor :ChannelId, :InstanceId, :ChannelName, :Receivers, :ExtraOrgIds, :OrganizationIds
10066
10201
 
10067
- def initialize(channelid=nil, instanceid=nil, channelname=nil, receivers=nil, extraorgids=nil)
10202
+ def initialize(channelid=nil, instanceid=nil, channelname=nil, receivers=nil, extraorgids=nil, organizationids=nil)
10068
10203
  @ChannelId = channelid
10069
10204
  @InstanceId = instanceid
10070
10205
  @ChannelName = channelname
10071
10206
  @Receivers = receivers
10072
10207
  @ExtraOrgIds = extraorgids
10208
+ @OrganizationIds = organizationids
10073
10209
  end
10074
10210
 
10075
10211
  def deserialize(params)
@@ -10078,6 +10214,7 @@ module TencentCloud
10078
10214
  @ChannelName = params['ChannelName']
10079
10215
  @Receivers = params['Receivers']
10080
10216
  @ExtraOrgIds = params['ExtraOrgIds']
10217
+ @OrganizationIds = params['OrganizationIds']
10081
10218
  end
10082
10219
  end
10083
10220
 
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.405
4
+ version: 3.0.408
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-06 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common