tencentcloud-sdk-apm 3.0.809 → 3.0.810

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: 65ebc94fce88c3fcd810f3ce8fd91b4315716204
4
- data.tar.gz: 99128087c1a3a28f4c758c3132c84816bdc1bf8f
3
+ metadata.gz: f2bc5cfb856e84a21939ef8d78d5febd34d518e4
4
+ data.tar.gz: 8fff37f464b777779509edb41caa6338e1f720ac
5
5
  SHA512:
6
- metadata.gz: 82865a41273f11a47d764edf5ebb4e5da2d5409bb48fa68e11add32187e2d50118f54eecff018b7a6a10da359d60f9acdca861026391577ab7b950b96617b26c
7
- data.tar.gz: 2c87a88ddf48f4e674ca39f50fc9bffb05f460f60a41d8fd306c6f76cbc0482982beb668cbb1b9f15e24a2837f863ced57d9a8e3be17912f7d8f62311978be04
6
+ metadata.gz: 3df6442a4c194d3660b4a4042d74aca3c815dc9c4ccb3cf7e706f9d7c9e3d1ee29520f9a96b9641411da7c99e880573a420e2423695f75d94e47274f56b6f137
7
+ data.tar.gz: 0c4ef825fd2f8a052cef043c691da23a5d776cae6377bee533cfb5154dc8760295114f25ef886b4280dfb1b47b2002d96de6beafc59917efe4363477d3b67551
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.809
1
+ 3.0.810
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 查询应用配置信息
105
+
106
+ # @param request: Request instance for DescribeGeneralApmApplicationConfig.
107
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeGeneralApmApplicationConfigRequest`
108
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeGeneralApmApplicationConfigResponse`
109
+ def DescribeGeneralApmApplicationConfig(request)
110
+ body = send_request('DescribeGeneralApmApplicationConfig', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeGeneralApmApplicationConfigResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
105
129
  # 接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
106
130
 
@@ -198,6 +222,30 @@ module TencentCloud
198
222
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
223
  end
200
224
 
225
+ # 根据维度名和过滤条件,查询维度数据.
226
+
227
+ # @param request: Request instance for DescribeTagValues.
228
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeTagValuesRequest`
229
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeTagValuesResponse`
230
+ def DescribeTagValues(request)
231
+ body = send_request('DescribeTagValues', request.serialize)
232
+ response = JSON.parse(body)
233
+ if response['Response'].key?('Error') == false
234
+ model = DescribeTagValuesResponse.new
235
+ model.deserialize(response['Response'])
236
+ model
237
+ else
238
+ code = response['Response']['Error']['Code']
239
+ message = response['Response']['Error']['Message']
240
+ reqid = response['Response']['RequestId']
241
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
242
+ end
243
+ rescue TencentCloud::Common::TencentCloudSDKException => e
244
+ raise e
245
+ rescue StandardError => e
246
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
+ end
248
+
201
249
  # 修改APM实例接口
202
250
 
203
251
  # @param request: Request instance for ModifyApmInstance.
@@ -222,6 +270,30 @@ module TencentCloud
222
270
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
271
  end
224
272
 
273
+ # 对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
274
+
275
+ # @param request: Request instance for ModifyGeneralApmApplicationConfig.
276
+ # @type request: :class:`Tencentcloud::apm::V20210622::ModifyGeneralApmApplicationConfigRequest`
277
+ # @rtype: :class:`Tencentcloud::apm::V20210622::ModifyGeneralApmApplicationConfigResponse`
278
+ def ModifyGeneralApmApplicationConfig(request)
279
+ body = send_request('ModifyGeneralApmApplicationConfig', request.serialize)
280
+ response = JSON.parse(body)
281
+ if response['Response'].key?('Error') == false
282
+ model = ModifyGeneralApmApplicationConfigResponse.new
283
+ model.deserialize(response['Response'])
284
+ model
285
+ else
286
+ code = response['Response']['Error']['Code']
287
+ message = response['Response']['Error']['Message']
288
+ reqid = response['Response']['RequestId']
289
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
290
+ end
291
+ rescue TencentCloud::Common::TencentCloudSDKException => e
292
+ raise e
293
+ rescue StandardError => e
294
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
295
+ end
296
+
225
297
  # apm销毁实例
226
298
 
227
299
  # @param request: Request instance for TerminateApmInstance.
@@ -103,6 +103,104 @@ module TencentCloud
103
103
  end
104
104
  end
105
105
 
106
+ # 应用相关的配置列表项
107
+ class ApmApplicationConfigView < TencentCloud::Common::AbstractModel
108
+ # @param InstanceKey: 实例ID
109
+ # @type InstanceKey: String
110
+ # @param ServiceName: 服务名
111
+ # @type ServiceName: String
112
+ # @param OperationNameFilter: 接口过滤
113
+ # @type OperationNameFilter: String
114
+ # @param ExceptionFilter: 异常过滤
115
+ # @type ExceptionFilter: String
116
+ # @param ErrorCodeFilter: 错误码过滤
117
+ # @type ErrorCodeFilter: String
118
+ # @param EventEnable: 应用诊断开关
119
+ # 注意:此字段可能返回 null,表示取不到有效值。
120
+ # @type EventEnable: Boolean
121
+ # @param UrlConvergenceSwitch: URL收敛开关 0 关 1 开
122
+ # @type UrlConvergenceSwitch: Integer
123
+ # @param UrlConvergenceThreshold: URL收敛阈值
124
+ # @type UrlConvergenceThreshold: Integer
125
+ # @param UrlConvergence: URL收敛规则正则
126
+ # @type UrlConvergence: String
127
+ # @param UrlExclude: URL排除规则正则
128
+ # @type UrlExclude: String
129
+ # @param IsRelatedLog: 是否开启日志 0 关 1 开
130
+ # @type IsRelatedLog: Integer
131
+ # @param LogSource: 日志来源
132
+ # 注意:此字段可能返回 null,表示取不到有效值。
133
+ # @type LogSource: String
134
+ # @param LogSet: CLS日志集
135
+ # @type LogSet: String
136
+ # @param LogTopicID: 日志主题ID
137
+ # @type LogTopicID: String
138
+ # @param SnapshotEnable: 线程剖析开关
139
+ # @type SnapshotEnable: Boolean
140
+ # @param SnapshotTimeout: 线程剖析超时阈值
141
+ # @type SnapshotTimeout: Integer
142
+ # @param AgentEnable: 探针开启开关
143
+ # @type AgentEnable: Boolean
144
+ # @param InstrumentList: 组件列表开关
145
+ # 注意:此字段可能返回 null,表示取不到有效值。
146
+ # @type InstrumentList: Array
147
+ # @param TraceSquash: 链路压缩开关
148
+ # @type TraceSquash: Boolean
149
+
150
+ attr_accessor :InstanceKey, :ServiceName, :OperationNameFilter, :ExceptionFilter, :ErrorCodeFilter, :EventEnable, :UrlConvergenceSwitch, :UrlConvergenceThreshold, :UrlConvergence, :UrlExclude, :IsRelatedLog, :LogSource, :LogSet, :LogTopicID, :SnapshotEnable, :SnapshotTimeout, :AgentEnable, :InstrumentList, :TraceSquash
151
+
152
+ def initialize(instancekey=nil, servicename=nil, operationnamefilter=nil, exceptionfilter=nil, errorcodefilter=nil, eventenable=nil, urlconvergenceswitch=nil, urlconvergencethreshold=nil, urlconvergence=nil, urlexclude=nil, isrelatedlog=nil, logsource=nil, logset=nil, logtopicid=nil, snapshotenable=nil, snapshottimeout=nil, agentenable=nil, instrumentlist=nil, tracesquash=nil)
153
+ @InstanceKey = instancekey
154
+ @ServiceName = servicename
155
+ @OperationNameFilter = operationnamefilter
156
+ @ExceptionFilter = exceptionfilter
157
+ @ErrorCodeFilter = errorcodefilter
158
+ @EventEnable = eventenable
159
+ @UrlConvergenceSwitch = urlconvergenceswitch
160
+ @UrlConvergenceThreshold = urlconvergencethreshold
161
+ @UrlConvergence = urlconvergence
162
+ @UrlExclude = urlexclude
163
+ @IsRelatedLog = isrelatedlog
164
+ @LogSource = logsource
165
+ @LogSet = logset
166
+ @LogTopicID = logtopicid
167
+ @SnapshotEnable = snapshotenable
168
+ @SnapshotTimeout = snapshottimeout
169
+ @AgentEnable = agentenable
170
+ @InstrumentList = instrumentlist
171
+ @TraceSquash = tracesquash
172
+ end
173
+
174
+ def deserialize(params)
175
+ @InstanceKey = params['InstanceKey']
176
+ @ServiceName = params['ServiceName']
177
+ @OperationNameFilter = params['OperationNameFilter']
178
+ @ExceptionFilter = params['ExceptionFilter']
179
+ @ErrorCodeFilter = params['ErrorCodeFilter']
180
+ @EventEnable = params['EventEnable']
181
+ @UrlConvergenceSwitch = params['UrlConvergenceSwitch']
182
+ @UrlConvergenceThreshold = params['UrlConvergenceThreshold']
183
+ @UrlConvergence = params['UrlConvergence']
184
+ @UrlExclude = params['UrlExclude']
185
+ @IsRelatedLog = params['IsRelatedLog']
186
+ @LogSource = params['LogSource']
187
+ @LogSet = params['LogSet']
188
+ @LogTopicID = params['LogTopicID']
189
+ @SnapshotEnable = params['SnapshotEnable']
190
+ @SnapshotTimeout = params['SnapshotTimeout']
191
+ @AgentEnable = params['AgentEnable']
192
+ unless params['InstrumentList'].nil?
193
+ @InstrumentList = []
194
+ params['InstrumentList'].each do |i|
195
+ instrument_tmp = Instrument.new
196
+ instrument_tmp.deserialize(i)
197
+ @InstrumentList << instrument_tmp
198
+ end
199
+ end
200
+ @TraceSquash = params['TraceSquash']
201
+ end
202
+ end
203
+
106
204
  # 指标维度信息
107
205
  class ApmField < TencentCloud::Common::AbstractModel
108
206
  # @param CompareVal: 昨日同比指标值,已弃用,不建议使用
@@ -563,6 +661,49 @@ module TencentCloud
563
661
  end
564
662
  end
565
663
 
664
+ # DescribeGeneralApmApplicationConfig请求参数结构体
665
+ class DescribeGeneralApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
666
+ # @param ServiceName: 应用名
667
+ # @type ServiceName: String
668
+ # @param InstanceId: 实例Id
669
+ # @type InstanceId: String
670
+
671
+ attr_accessor :ServiceName, :InstanceId
672
+
673
+ def initialize(servicename=nil, instanceid=nil)
674
+ @ServiceName = servicename
675
+ @InstanceId = instanceid
676
+ end
677
+
678
+ def deserialize(params)
679
+ @ServiceName = params['ServiceName']
680
+ @InstanceId = params['InstanceId']
681
+ end
682
+ end
683
+
684
+ # DescribeGeneralApmApplicationConfig返回参数结构体
685
+ class DescribeGeneralApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
686
+ # @param ApmApplicationConfigView: 应用配置项
687
+ # @type ApmApplicationConfigView: :class:`Tencentcloud::Apm.v20210622.models.ApmApplicationConfigView`
688
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
689
+ # @type RequestId: String
690
+
691
+ attr_accessor :ApmApplicationConfigView, :RequestId
692
+
693
+ def initialize(apmapplicationconfigview=nil, requestid=nil)
694
+ @ApmApplicationConfigView = apmapplicationconfigview
695
+ @RequestId = requestid
696
+ end
697
+
698
+ def deserialize(params)
699
+ unless params['ApmApplicationConfigView'].nil?
700
+ @ApmApplicationConfigView = ApmApplicationConfigView.new
701
+ @ApmApplicationConfigView.deserialize(params['ApmApplicationConfigView'])
702
+ end
703
+ @RequestId = params['RequestId']
704
+ end
705
+ end
706
+
566
707
  # DescribeGeneralMetricData请求参数结构体
567
708
  class DescribeGeneralMetricDataRequest < TencentCloud::Common::AbstractModel
568
709
  # @param Filters: 要过滤的维度信息:
@@ -970,6 +1111,80 @@ module TencentCloud
970
1111
  end
971
1112
  end
972
1113
 
1114
+ # DescribeTagValues请求参数结构体
1115
+ class DescribeTagValuesRequest < TencentCloud::Common::AbstractModel
1116
+ # @param TagKey: 维度名
1117
+ # @type TagKey: String
1118
+ # @param InstanceId: 实例ID
1119
+ # @type InstanceId: String
1120
+ # @param EndTime: 结束时间
1121
+ # @type EndTime: Integer
1122
+ # @param Filters: 过滤条件
1123
+ # @type Filters: Array
1124
+ # @param StartTime: 开始时间
1125
+ # @type StartTime: Integer
1126
+ # @param OrFilters: Or过滤条件
1127
+ # @type OrFilters: Array
1128
+ # @param Type: 使用类型
1129
+ # @type Type: String
1130
+
1131
+ attr_accessor :TagKey, :InstanceId, :EndTime, :Filters, :StartTime, :OrFilters, :Type
1132
+
1133
+ def initialize(tagkey=nil, instanceid=nil, endtime=nil, filters=nil, starttime=nil, orfilters=nil, type=nil)
1134
+ @TagKey = tagkey
1135
+ @InstanceId = instanceid
1136
+ @EndTime = endtime
1137
+ @Filters = filters
1138
+ @StartTime = starttime
1139
+ @OrFilters = orfilters
1140
+ @Type = type
1141
+ end
1142
+
1143
+ def deserialize(params)
1144
+ @TagKey = params['TagKey']
1145
+ @InstanceId = params['InstanceId']
1146
+ @EndTime = params['EndTime']
1147
+ unless params['Filters'].nil?
1148
+ @Filters = []
1149
+ params['Filters'].each do |i|
1150
+ filter_tmp = Filter.new
1151
+ filter_tmp.deserialize(i)
1152
+ @Filters << filter_tmp
1153
+ end
1154
+ end
1155
+ @StartTime = params['StartTime']
1156
+ unless params['OrFilters'].nil?
1157
+ @OrFilters = []
1158
+ params['OrFilters'].each do |i|
1159
+ filter_tmp = Filter.new
1160
+ filter_tmp.deserialize(i)
1161
+ @OrFilters << filter_tmp
1162
+ end
1163
+ end
1164
+ @Type = params['Type']
1165
+ end
1166
+ end
1167
+
1168
+ # DescribeTagValues返回参数结构体
1169
+ class DescribeTagValuesResponse < TencentCloud::Common::AbstractModel
1170
+ # @param Values: 维度值列表
1171
+ # @type Values: Array
1172
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1173
+ # @type RequestId: String
1174
+
1175
+ attr_accessor :Values, :RequestId
1176
+
1177
+ def initialize(values=nil, requestid=nil)
1178
+ @Values = values
1179
+ @RequestId = requestid
1180
+ end
1181
+
1182
+ def deserialize(params)
1183
+ @Values = params['Values']
1184
+ @RequestId = params['RequestId']
1185
+ end
1186
+ end
1187
+
973
1188
  # 查询过滤参数
974
1189
  class Filter < TencentCloud::Common::AbstractModel
975
1190
  # @param Type: 过滤方式(=, !=, in)
@@ -1014,6 +1229,28 @@ module TencentCloud
1014
1229
  end
1015
1230
  end
1016
1231
 
1232
+ # 组件
1233
+ class Instrument < TencentCloud::Common::AbstractModel
1234
+ # @param Name: 组件名称
1235
+ # 注意:此字段可能返回 null,表示取不到有效值。
1236
+ # @type Name: String
1237
+ # @param Enable: 组件开关
1238
+ # 注意:此字段可能返回 null,表示取不到有效值。
1239
+ # @type Enable: Boolean
1240
+
1241
+ attr_accessor :Name, :Enable
1242
+
1243
+ def initialize(name=nil, enable=nil)
1244
+ @Name = name
1245
+ @Enable = enable
1246
+ end
1247
+
1248
+ def deserialize(params)
1249
+ @Name = params['Name']
1250
+ @Enable = params['Enable']
1251
+ end
1252
+ end
1253
+
1017
1254
  # 指标曲线数据
1018
1255
  class Line < TencentCloud::Common::AbstractModel
1019
1256
  # @param MetricName: 指标名
@@ -1164,6 +1401,57 @@ module TencentCloud
1164
1401
  end
1165
1402
  end
1166
1403
 
1404
+ # ModifyGeneralApmApplicationConfig请求参数结构体
1405
+ class ModifyGeneralApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
1406
+ # @param InstanceId: 实例Id
1407
+ # @type InstanceId: String
1408
+ # @param Tags: 需要修改的字段key value分别指定字段名、字段值
1409
+ # @type Tags: Array
1410
+ # @param ServiceNames: 需要修改配置的服务列表名称
1411
+ # @type ServiceNames: Array
1412
+
1413
+ attr_accessor :InstanceId, :Tags, :ServiceNames
1414
+
1415
+ def initialize(instanceid=nil, tags=nil, servicenames=nil)
1416
+ @InstanceId = instanceid
1417
+ @Tags = tags
1418
+ @ServiceNames = servicenames
1419
+ end
1420
+
1421
+ def deserialize(params)
1422
+ @InstanceId = params['InstanceId']
1423
+ unless params['Tags'].nil?
1424
+ @Tags = []
1425
+ params['Tags'].each do |i|
1426
+ apmtag_tmp = ApmTag.new
1427
+ apmtag_tmp.deserialize(i)
1428
+ @Tags << apmtag_tmp
1429
+ end
1430
+ end
1431
+ @ServiceNames = params['ServiceNames']
1432
+ end
1433
+ end
1434
+
1435
+ # ModifyGeneralApmApplicationConfig返回参数结构体
1436
+ class ModifyGeneralApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
1437
+ # @param Message: 返回值描述
1438
+ # @type Message: String
1439
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1440
+ # @type RequestId: String
1441
+
1442
+ attr_accessor :Message, :RequestId
1443
+
1444
+ def initialize(message=nil, requestid=nil)
1445
+ @Message = message
1446
+ @RequestId = requestid
1447
+ end
1448
+
1449
+ def deserialize(params)
1450
+ @Message = params['Message']
1451
+ @RequestId = params['RequestId']
1452
+ end
1453
+ end
1454
+
1167
1455
  # sql排序字段
1168
1456
  class OrderBy < TencentCloud::Common::AbstractModel
1169
1457
  # @param Key: 需要排序的字段
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.809
4
+ version: 3.0.810
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-04-23 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common