tencentcloud-sdk-apm 3.0.1150 → 3.0.1178

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.
@@ -57,6 +57,33 @@ module TencentCloud
57
57
  end
58
58
  end
59
59
 
60
+ # 探针有关接口的相关配置
61
+ class AgentOperationConfigView < TencentCloud::Common::AbstractModel
62
+ # @param RetentionValid: 当前接口配置是否开启了接口白名单配置
63
+ # 注意:此字段可能返回 null,表示取不到有效值。
64
+ # @type RetentionValid: Boolean
65
+ # @param IgnoreOperation: RetentionValid为false时生效,接口配置中的黑名单配置,配置中的接口不采集
66
+ # 注意:此字段可能返回 null,表示取不到有效值。
67
+ # @type IgnoreOperation: String
68
+ # @param RetentionOperation: RetentionValid为true时生效,接口配置中的白名单配置,仅采集配置中的接口
69
+ # 注意:此字段可能返回 null,表示取不到有效值。
70
+ # @type RetentionOperation: String
71
+
72
+ attr_accessor :RetentionValid, :IgnoreOperation, :RetentionOperation
73
+
74
+ def initialize(retentionvalid=nil, ignoreoperation=nil, retentionoperation=nil)
75
+ @RetentionValid = retentionvalid
76
+ @IgnoreOperation = ignoreoperation
77
+ @RetentionOperation = retentionoperation
78
+ end
79
+
80
+ def deserialize(params)
81
+ @RetentionValid = params['RetentionValid']
82
+ @IgnoreOperation = params['IgnoreOperation']
83
+ @RetentionOperation = params['RetentionOperation']
84
+ end
85
+ end
86
+
60
87
  # APM Agent 信息
61
88
  class ApmAgentInfo < TencentCloud::Common::AbstractModel
62
89
  # @param AgentDownloadURL: Agent 下载地址
@@ -93,6 +120,274 @@ module TencentCloud
93
120
  end
94
121
  end
95
122
 
123
+ # 查询应用配置返回参数
124
+ class ApmAppConfig < TencentCloud::Common::AbstractModel
125
+ # @param InstanceKey: 实例ID
126
+ # @type InstanceKey: String
127
+ # @param ServiceName: 服务名
128
+ # @type ServiceName: String
129
+ # @param UrlConvergenceSwitch: URL收敛开关
130
+ # @type UrlConvergenceSwitch: Integer
131
+ # @param UrlConvergenceThreshold: URL收敛阈值
132
+ # @type UrlConvergenceThreshold: Integer
133
+ # @param UrlConvergence: URL收敛正则
134
+ # @type UrlConvergence: String
135
+ # @param ExceptionFilter: 异常过滤正则
136
+ # @type ExceptionFilter: String
137
+ # @param ErrorCodeFilter: 错误码过滤
138
+ # @type ErrorCodeFilter: String
139
+ # @param Components: 服务组件类型
140
+ # @type Components: String
141
+ # @param UrlExclude: URL排除正则
142
+ # @type UrlExclude: String
143
+ # @param LogSource: 日志来源
144
+ # @type LogSource: String
145
+ # @param LogRegion: 日志所在地域
146
+ # @type LogRegion: String
147
+ # @param IsRelatedLog: 是否开启日志 0 关 1 开
148
+ # @type IsRelatedLog: Integer
149
+ # @param LogTopicID: 日志主题ID
150
+ # @type LogTopicID: String
151
+ # @param IgnoreOperationName: 需过滤的接口名
152
+ # @type IgnoreOperationName: String
153
+ # @param LogSet: CLS日志集 | ES集群ID
154
+ # @type LogSet: String
155
+ # @param TraceRateLimit: 探针每秒上报trace数
156
+ # @type TraceRateLimit: Integer
157
+ # @param EnableSnapshot: 是否开启线程剖析
158
+ # @type EnableSnapshot: Boolean
159
+ # @param SnapshotTimeout: 线程剖析超时阈值
160
+ # @type SnapshotTimeout: Integer
161
+ # @param AgentEnable: 是否开启agent
162
+ # @type AgentEnable: Boolean
163
+ # @param InstrumentList: 组件列表
164
+ # 注意:此字段可能返回 null,表示取不到有效值。
165
+ # @type InstrumentList: Array
166
+ # @param TraceSquash: 是否开启链路压缩
167
+ # @type TraceSquash: Boolean
168
+ # @param EventEnable: 是否开启应用诊断开关
169
+ # @type EventEnable: Boolean
170
+ # @param AgentOperationConfigView: 探针接口相关配置
171
+ # 注意:此字段可能返回 null,表示取不到有效值。
172
+ # @type AgentOperationConfigView: :class:`Tencentcloud::Apm.v20210622.models.AgentOperationConfigView`
173
+ # @param EnableLogConfig: 是否开启应用日志配置
174
+ # @type EnableLogConfig: Boolean
175
+ # @param ServiceID: 应用ID
176
+ # 注意:此字段可能返回 null,表示取不到有效值。
177
+ # @type ServiceID: String
178
+ # @param EnableDashboardConfig: 应用是否开启dashboard配置: false 关(与业务系统保持一致)/true 开(应用级配置)
179
+ # 注意:此字段可能返回 null,表示取不到有效值。
180
+ # @type EnableDashboardConfig: Boolean
181
+ # @param IsRelatedDashboard: 是否关联dashboard: 0 关 1 开
182
+ # 注意:此字段可能返回 null,表示取不到有效值。
183
+ # @type IsRelatedDashboard: Integer
184
+ # @param DashboardTopicID: dashboard ID
185
+ # 注意:此字段可能返回 null,表示取不到有效值。
186
+ # @type DashboardTopicID: String
187
+ # @param EnableSecurityConfig: 是否开启应用级别配置
188
+ # 注意:此字段可能返回 null,表示取不到有效值。
189
+ # @type EnableSecurityConfig: Boolean
190
+ # @param IsInstrumentationVulnerabilityScan: 是否开启组件漏洞检测
191
+ # 注意:此字段可能返回 null,表示取不到有效值。
192
+ # @type IsInstrumentationVulnerabilityScan: Integer
193
+ # @param IsSqlInjectionAnalysis: 是否开启SQL注入分析
194
+ # 注意:此字段可能返回 null,表示取不到有效值。
195
+ # @type IsSqlInjectionAnalysis: Integer
196
+ # @param IsRemoteCommandExecutionAnalysis: 是否开启远程命令执行分析
197
+ # 注意:此字段可能返回 null,表示取不到有效值。
198
+ # @type IsRemoteCommandExecutionAnalysis: Integer
199
+ # @param IsMemoryHijackingAnalysis: 是否开启内存马检测分析
200
+ # 注意:此字段可能返回 null,表示取不到有效值。
201
+ # @type IsMemoryHijackingAnalysis: Integer
202
+ # @param LogIndexType: CLS索引类型(0=全文索引,1=键值索引)
203
+ # @type LogIndexType: Integer
204
+ # @param LogTraceIdKey: traceId的索引key: 当CLS索引类型为键值索引时生效
205
+ # @type LogTraceIdKey: String
206
+ # @param IsDeleteAnyFileAnalysis: 是否开启删除任意文件检测(0-关闭,1-开启)
207
+ # 注意:此字段可能返回 null,表示取不到有效值。
208
+ # @type IsDeleteAnyFileAnalysis: Integer
209
+ # @param IsReadAnyFileAnalysis: 是否开启读取任意文件检测(0-关闭,1-开启)
210
+ # 注意:此字段可能返回 null,表示取不到有效值。
211
+ # @type IsReadAnyFileAnalysis: Integer
212
+ # @param IsUploadAnyFileAnalysis: 是否开启上传任意文件检测(0-关闭,1-开启)
213
+ # 注意:此字段可能返回 null,表示取不到有效值。
214
+ # @type IsUploadAnyFileAnalysis: Integer
215
+ # @param IsIncludeAnyFileAnalysis: 是否开启包含任意文件检测(0-关闭,1-开启)
216
+ # 注意:此字段可能返回 null,表示取不到有效值。
217
+ # @type IsIncludeAnyFileAnalysis: Integer
218
+ # @param IsDirectoryTraversalAnalysis: 是否开启目录遍历检测(0-关闭,1-开启)
219
+ # 注意:此字段可能返回 null,表示取不到有效值。
220
+ # @type IsDirectoryTraversalAnalysis: Integer
221
+ # @param IsTemplateEngineInjectionAnalysis: 是否开启模板引擎注入检测(0-关闭,1-开启)
222
+ # 注意:此字段可能返回 null,表示取不到有效值。
223
+ # @type IsTemplateEngineInjectionAnalysis: Integer
224
+ # @param IsScriptEngineInjectionAnalysis: 是否开启脚本引擎注入检测(0-关闭,1-开启)
225
+ # 注意:此字段可能返回 null,表示取不到有效值。
226
+ # @type IsScriptEngineInjectionAnalysis: Integer
227
+ # @param IsExpressionInjectionAnalysis: 是否开启表达式注入检测(0-关闭,1-开启)
228
+ # 注意:此字段可能返回 null,表示取不到有效值。
229
+ # @type IsExpressionInjectionAnalysis: Integer
230
+ # @param IsJNDIInjectionAnalysis: 是否开启JNDI注入检测(0-关闭,1-开启)
231
+ # 注意:此字段可能返回 null,表示取不到有效值。
232
+ # @type IsJNDIInjectionAnalysis: Integer
233
+ # @param IsJNIInjectionAnalysis: 是否开启JNI注入检测(0-关闭,1-开启)
234
+ # 注意:此字段可能返回 null,表示取不到有效值。
235
+ # @type IsJNIInjectionAnalysis: Integer
236
+ # @param IsWebshellBackdoorAnalysis: 是否开启Webshell后门检测(0-关闭,1-开启)
237
+ # 注意:此字段可能返回 null,表示取不到有效值。
238
+ # @type IsWebshellBackdoorAnalysis: Integer
239
+ # @param IsDeserializationAnalysis: 是否开启反序列化检测(0-关闭,1-开启)
240
+ # 注意:此字段可能返回 null,表示取不到有效值。
241
+ # @type IsDeserializationAnalysis: Integer
242
+ # @param UrlAutoConvergenceEnable: 接口名称自动收敛开关(0-关闭,1-开启)
243
+ # @type UrlAutoConvergenceEnable: Boolean
244
+ # @param UrlLongSegmentThreshold: URL长分段收敛阈值
245
+ # @type UrlLongSegmentThreshold: Integer
246
+ # @param UrlNumberSegmentThreshold: URL数字分段收敛阈值
247
+ # @type UrlNumberSegmentThreshold: Integer
248
+ # @param DisableMemoryUsed: 探针熔断内存阈值
249
+ # @type DisableMemoryUsed: Integer
250
+ # @param DisableCpuUsed: 探针熔断CPU阈值
251
+ # @type DisableCpuUsed: Integer
252
+ # @param DbStatementParametersEnabled: 是否开启SQL参数获取
253
+ # @type DbStatementParametersEnabled: Boolean
254
+ # @param SlowSQLThresholds: 慢SQL阈值
255
+ # @type SlowSQLThresholds: Array
256
+
257
+ attr_accessor :InstanceKey, :ServiceName, :UrlConvergenceSwitch, :UrlConvergenceThreshold, :UrlConvergence, :ExceptionFilter, :ErrorCodeFilter, :Components, :UrlExclude, :LogSource, :LogRegion, :IsRelatedLog, :LogTopicID, :IgnoreOperationName, :LogSet, :TraceRateLimit, :EnableSnapshot, :SnapshotTimeout, :AgentEnable, :InstrumentList, :TraceSquash, :EventEnable, :AgentOperationConfigView, :EnableLogConfig, :ServiceID, :EnableDashboardConfig, :IsRelatedDashboard, :DashboardTopicID, :EnableSecurityConfig, :IsInstrumentationVulnerabilityScan, :IsSqlInjectionAnalysis, :IsRemoteCommandExecutionAnalysis, :IsMemoryHijackingAnalysis, :LogIndexType, :LogTraceIdKey, :IsDeleteAnyFileAnalysis, :IsReadAnyFileAnalysis, :IsUploadAnyFileAnalysis, :IsIncludeAnyFileAnalysis, :IsDirectoryTraversalAnalysis, :IsTemplateEngineInjectionAnalysis, :IsScriptEngineInjectionAnalysis, :IsExpressionInjectionAnalysis, :IsJNDIInjectionAnalysis, :IsJNIInjectionAnalysis, :IsWebshellBackdoorAnalysis, :IsDeserializationAnalysis, :UrlAutoConvergenceEnable, :UrlLongSegmentThreshold, :UrlNumberSegmentThreshold, :DisableMemoryUsed, :DisableCpuUsed, :DbStatementParametersEnabled, :SlowSQLThresholds
258
+
259
+ def initialize(instancekey=nil, servicename=nil, urlconvergenceswitch=nil, urlconvergencethreshold=nil, urlconvergence=nil, exceptionfilter=nil, errorcodefilter=nil, components=nil, urlexclude=nil, logsource=nil, logregion=nil, isrelatedlog=nil, logtopicid=nil, ignoreoperationname=nil, logset=nil, traceratelimit=nil, enablesnapshot=nil, snapshottimeout=nil, agentenable=nil, instrumentlist=nil, tracesquash=nil, eventenable=nil, agentoperationconfigview=nil, enablelogconfig=nil, serviceid=nil, enabledashboardconfig=nil, isrelateddashboard=nil, dashboardtopicid=nil, enablesecurityconfig=nil, isinstrumentationvulnerabilityscan=nil, issqlinjectionanalysis=nil, isremotecommandexecutionanalysis=nil, ismemoryhijackinganalysis=nil, logindextype=nil, logtraceidkey=nil, isdeleteanyfileanalysis=nil, isreadanyfileanalysis=nil, isuploadanyfileanalysis=nil, isincludeanyfileanalysis=nil, isdirectorytraversalanalysis=nil, istemplateengineinjectionanalysis=nil, isscriptengineinjectionanalysis=nil, isexpressioninjectionanalysis=nil, isjndiinjectionanalysis=nil, isjniinjectionanalysis=nil, iswebshellbackdooranalysis=nil, isdeserializationanalysis=nil, urlautoconvergenceenable=nil, urllongsegmentthreshold=nil, urlnumbersegmentthreshold=nil, disablememoryused=nil, disablecpuused=nil, dbstatementparametersenabled=nil, slowsqlthresholds=nil)
260
+ @InstanceKey = instancekey
261
+ @ServiceName = servicename
262
+ @UrlConvergenceSwitch = urlconvergenceswitch
263
+ @UrlConvergenceThreshold = urlconvergencethreshold
264
+ @UrlConvergence = urlconvergence
265
+ @ExceptionFilter = exceptionfilter
266
+ @ErrorCodeFilter = errorcodefilter
267
+ @Components = components
268
+ @UrlExclude = urlexclude
269
+ @LogSource = logsource
270
+ @LogRegion = logregion
271
+ @IsRelatedLog = isrelatedlog
272
+ @LogTopicID = logtopicid
273
+ @IgnoreOperationName = ignoreoperationname
274
+ @LogSet = logset
275
+ @TraceRateLimit = traceratelimit
276
+ @EnableSnapshot = enablesnapshot
277
+ @SnapshotTimeout = snapshottimeout
278
+ @AgentEnable = agentenable
279
+ @InstrumentList = instrumentlist
280
+ @TraceSquash = tracesquash
281
+ @EventEnable = eventenable
282
+ @AgentOperationConfigView = agentoperationconfigview
283
+ @EnableLogConfig = enablelogconfig
284
+ @ServiceID = serviceid
285
+ @EnableDashboardConfig = enabledashboardconfig
286
+ @IsRelatedDashboard = isrelateddashboard
287
+ @DashboardTopicID = dashboardtopicid
288
+ @EnableSecurityConfig = enablesecurityconfig
289
+ @IsInstrumentationVulnerabilityScan = isinstrumentationvulnerabilityscan
290
+ @IsSqlInjectionAnalysis = issqlinjectionanalysis
291
+ @IsRemoteCommandExecutionAnalysis = isremotecommandexecutionanalysis
292
+ @IsMemoryHijackingAnalysis = ismemoryhijackinganalysis
293
+ @LogIndexType = logindextype
294
+ @LogTraceIdKey = logtraceidkey
295
+ @IsDeleteAnyFileAnalysis = isdeleteanyfileanalysis
296
+ @IsReadAnyFileAnalysis = isreadanyfileanalysis
297
+ @IsUploadAnyFileAnalysis = isuploadanyfileanalysis
298
+ @IsIncludeAnyFileAnalysis = isincludeanyfileanalysis
299
+ @IsDirectoryTraversalAnalysis = isdirectorytraversalanalysis
300
+ @IsTemplateEngineInjectionAnalysis = istemplateengineinjectionanalysis
301
+ @IsScriptEngineInjectionAnalysis = isscriptengineinjectionanalysis
302
+ @IsExpressionInjectionAnalysis = isexpressioninjectionanalysis
303
+ @IsJNDIInjectionAnalysis = isjndiinjectionanalysis
304
+ @IsJNIInjectionAnalysis = isjniinjectionanalysis
305
+ @IsWebshellBackdoorAnalysis = iswebshellbackdooranalysis
306
+ @IsDeserializationAnalysis = isdeserializationanalysis
307
+ @UrlAutoConvergenceEnable = urlautoconvergenceenable
308
+ @UrlLongSegmentThreshold = urllongsegmentthreshold
309
+ @UrlNumberSegmentThreshold = urlnumbersegmentthreshold
310
+ @DisableMemoryUsed = disablememoryused
311
+ @DisableCpuUsed = disablecpuused
312
+ @DbStatementParametersEnabled = dbstatementparametersenabled
313
+ @SlowSQLThresholds = slowsqlthresholds
314
+ end
315
+
316
+ def deserialize(params)
317
+ @InstanceKey = params['InstanceKey']
318
+ @ServiceName = params['ServiceName']
319
+ @UrlConvergenceSwitch = params['UrlConvergenceSwitch']
320
+ @UrlConvergenceThreshold = params['UrlConvergenceThreshold']
321
+ @UrlConvergence = params['UrlConvergence']
322
+ @ExceptionFilter = params['ExceptionFilter']
323
+ @ErrorCodeFilter = params['ErrorCodeFilter']
324
+ @Components = params['Components']
325
+ @UrlExclude = params['UrlExclude']
326
+ @LogSource = params['LogSource']
327
+ @LogRegion = params['LogRegion']
328
+ @IsRelatedLog = params['IsRelatedLog']
329
+ @LogTopicID = params['LogTopicID']
330
+ @IgnoreOperationName = params['IgnoreOperationName']
331
+ @LogSet = params['LogSet']
332
+ @TraceRateLimit = params['TraceRateLimit']
333
+ @EnableSnapshot = params['EnableSnapshot']
334
+ @SnapshotTimeout = params['SnapshotTimeout']
335
+ @AgentEnable = params['AgentEnable']
336
+ unless params['InstrumentList'].nil?
337
+ @InstrumentList = []
338
+ params['InstrumentList'].each do |i|
339
+ instrument_tmp = Instrument.new
340
+ instrument_tmp.deserialize(i)
341
+ @InstrumentList << instrument_tmp
342
+ end
343
+ end
344
+ @TraceSquash = params['TraceSquash']
345
+ @EventEnable = params['EventEnable']
346
+ unless params['AgentOperationConfigView'].nil?
347
+ @AgentOperationConfigView = AgentOperationConfigView.new
348
+ @AgentOperationConfigView.deserialize(params['AgentOperationConfigView'])
349
+ end
350
+ @EnableLogConfig = params['EnableLogConfig']
351
+ @ServiceID = params['ServiceID']
352
+ @EnableDashboardConfig = params['EnableDashboardConfig']
353
+ @IsRelatedDashboard = params['IsRelatedDashboard']
354
+ @DashboardTopicID = params['DashboardTopicID']
355
+ @EnableSecurityConfig = params['EnableSecurityConfig']
356
+ @IsInstrumentationVulnerabilityScan = params['IsInstrumentationVulnerabilityScan']
357
+ @IsSqlInjectionAnalysis = params['IsSqlInjectionAnalysis']
358
+ @IsRemoteCommandExecutionAnalysis = params['IsRemoteCommandExecutionAnalysis']
359
+ @IsMemoryHijackingAnalysis = params['IsMemoryHijackingAnalysis']
360
+ @LogIndexType = params['LogIndexType']
361
+ @LogTraceIdKey = params['LogTraceIdKey']
362
+ @IsDeleteAnyFileAnalysis = params['IsDeleteAnyFileAnalysis']
363
+ @IsReadAnyFileAnalysis = params['IsReadAnyFileAnalysis']
364
+ @IsUploadAnyFileAnalysis = params['IsUploadAnyFileAnalysis']
365
+ @IsIncludeAnyFileAnalysis = params['IsIncludeAnyFileAnalysis']
366
+ @IsDirectoryTraversalAnalysis = params['IsDirectoryTraversalAnalysis']
367
+ @IsTemplateEngineInjectionAnalysis = params['IsTemplateEngineInjectionAnalysis']
368
+ @IsScriptEngineInjectionAnalysis = params['IsScriptEngineInjectionAnalysis']
369
+ @IsExpressionInjectionAnalysis = params['IsExpressionInjectionAnalysis']
370
+ @IsJNDIInjectionAnalysis = params['IsJNDIInjectionAnalysis']
371
+ @IsJNIInjectionAnalysis = params['IsJNIInjectionAnalysis']
372
+ @IsWebshellBackdoorAnalysis = params['IsWebshellBackdoorAnalysis']
373
+ @IsDeserializationAnalysis = params['IsDeserializationAnalysis']
374
+ @UrlAutoConvergenceEnable = params['UrlAutoConvergenceEnable']
375
+ @UrlLongSegmentThreshold = params['UrlLongSegmentThreshold']
376
+ @UrlNumberSegmentThreshold = params['UrlNumberSegmentThreshold']
377
+ @DisableMemoryUsed = params['DisableMemoryUsed']
378
+ @DisableCpuUsed = params['DisableCpuUsed']
379
+ @DbStatementParametersEnabled = params['DbStatementParametersEnabled']
380
+ unless params['SlowSQLThresholds'].nil?
381
+ @SlowSQLThresholds = []
382
+ params['SlowSQLThresholds'].each do |i|
383
+ apmtag_tmp = ApmTag.new
384
+ apmtag_tmp.deserialize(i)
385
+ @SlowSQLThresholds << apmtag_tmp
386
+ end
387
+ end
388
+ end
389
+ end
390
+
96
391
  # 应用相关的配置列表项
97
392
  class ApmApplicationConfigView < TencentCloud::Common::AbstractModel
98
393
  # @param InstanceKey: 业务系统 ID
@@ -137,10 +432,14 @@ module TencentCloud
137
432
  # @type DisableMemoryUsed: Integer
138
433
  # @param DisableCpuUsed: 探针熔断CPU阈值
139
434
  # @type DisableCpuUsed: Integer
435
+ # @param DbStatementParametersEnabled: 是否开启SQL参数获取
436
+ # @type DbStatementParametersEnabled: Boolean
437
+ # @param SlowSQLThresholds: 慢SQL阈值
438
+ # @type SlowSQLThresholds: Array
140
439
 
141
- attr_accessor :InstanceKey, :ServiceName, :OperationNameFilter, :ExceptionFilter, :ErrorCodeFilter, :EventEnable, :UrlConvergenceSwitch, :UrlConvergenceThreshold, :UrlConvergence, :UrlExclude, :IsRelatedLog, :LogSource, :LogSet, :LogTopicID, :SnapshotEnable, :SnapshotTimeout, :AgentEnable, :InstrumentList, :TraceSquash, :DisableMemoryUsed, :DisableCpuUsed
440
+ attr_accessor :InstanceKey, :ServiceName, :OperationNameFilter, :ExceptionFilter, :ErrorCodeFilter, :EventEnable, :UrlConvergenceSwitch, :UrlConvergenceThreshold, :UrlConvergence, :UrlExclude, :IsRelatedLog, :LogSource, :LogSet, :LogTopicID, :SnapshotEnable, :SnapshotTimeout, :AgentEnable, :InstrumentList, :TraceSquash, :DisableMemoryUsed, :DisableCpuUsed, :DbStatementParametersEnabled, :SlowSQLThresholds
142
441
 
143
- 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, disablememoryused=nil, disablecpuused=nil)
442
+ 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, disablememoryused=nil, disablecpuused=nil, dbstatementparametersenabled=nil, slowsqlthresholds=nil)
144
443
  @InstanceKey = instancekey
145
444
  @ServiceName = servicename
146
445
  @OperationNameFilter = operationnamefilter
@@ -162,6 +461,8 @@ module TencentCloud
162
461
  @TraceSquash = tracesquash
163
462
  @DisableMemoryUsed = disablememoryused
164
463
  @DisableCpuUsed = disablecpuused
464
+ @DbStatementParametersEnabled = dbstatementparametersenabled
465
+ @SlowSQLThresholds = slowsqlthresholds
165
466
  end
166
467
 
167
468
  def deserialize(params)
@@ -193,6 +494,41 @@ module TencentCloud
193
494
  @TraceSquash = params['TraceSquash']
194
495
  @DisableMemoryUsed = params['DisableMemoryUsed']
195
496
  @DisableCpuUsed = params['DisableCpuUsed']
497
+ @DbStatementParametersEnabled = params['DbStatementParametersEnabled']
498
+ unless params['SlowSQLThresholds'].nil?
499
+ @SlowSQLThresholds = []
500
+ params['SlowSQLThresholds'].each do |i|
501
+ apmtag_tmp = ApmTag.new
502
+ apmtag_tmp.deserialize(i)
503
+ @SlowSQLThresholds << apmtag_tmp
504
+ end
505
+ end
506
+ end
507
+ end
508
+
509
+ # 展示apm业务系统与其他云产品关联关系返回体
510
+ class ApmAssociation < TencentCloud::Common::AbstractModel
511
+ # @param PeerId: 关联产品的实例ID
512
+ # 注意:此字段可能返回 null,表示取不到有效值。
513
+ # @type PeerId: String
514
+ # @param Status: 关联关系状态:1(启用)、2(不启用)、3(已失效)
515
+ # 注意:此字段可能返回 null,表示取不到有效值。
516
+ # @type Status: Integer
517
+ # @param Topic: CKafka消息主题
518
+ # @type Topic: String
519
+
520
+ attr_accessor :PeerId, :Status, :Topic
521
+
522
+ def initialize(peerid=nil, status=nil, topic=nil)
523
+ @PeerId = peerid
524
+ @Status = status
525
+ @Topic = topic
526
+ end
527
+
528
+ def deserialize(params)
529
+ @PeerId = params['PeerId']
530
+ @Status = params['Status']
531
+ @Topic = params['Topic']
196
532
  end
197
533
  end
198
534
 
@@ -539,42 +875,145 @@ module TencentCloud
539
875
  end
540
876
  end
541
877
 
542
- # apm应用指标信息
543
- class ApmServiceMetric < TencentCloud::Common::AbstractModel
544
- # @param Fields: filed数组
878
+ # 展示apm业务系统关联prometheus关系返回体
879
+ class ApmPrometheusRules < TencentCloud::Common::AbstractModel
880
+ # @param Id: 指标匹配规则ID
881
+ # @type Id: Integer
882
+ # @param Name: 指标匹配规则名
545
883
  # 注意:此字段可能返回 null,表示取不到有效值。
546
- # @type Fields: Array
547
- # @param Tags: tag数组
884
+ # @type Name: String
885
+ # @param ServiceName: 规则生效的应用。生效于全部应用就传空字符串
548
886
  # 注意:此字段可能返回 null,表示取不到有效值。
549
- # @type Tags: Array
550
- # @param ServiceDetail: 应用信息
887
+ # @type ServiceName: String
888
+ # @param Status: 指标匹配规则状态:1(启用)、2(不启用)
551
889
  # 注意:此字段可能返回 null,表示取不到有效值。
552
- # @type ServiceDetail: :class:`Tencentcloud::Apm.v20210622.models.ServiceDetail`
890
+ # @type Status: Integer
891
+ # @param MetricNameRule: 指标匹配规则
892
+ # 注意:此字段可能返回 null,表示取不到有效值。
893
+ # @type MetricNameRule: String
894
+ # @param MetricMatchType: 匹配类型:0精准匹配,1前缀匹配,2后缀匹配
895
+ # 注意:此字段可能返回 null,表示取不到有效值。
896
+ # @type MetricMatchType: Integer
553
897
 
554
- attr_accessor :Fields, :Tags, :ServiceDetail
898
+ attr_accessor :Id, :Name, :ServiceName, :Status, :MetricNameRule, :MetricMatchType
555
899
 
556
- def initialize(fields=nil, tags=nil, servicedetail=nil)
557
- @Fields = fields
558
- @Tags = tags
559
- @ServiceDetail = servicedetail
900
+ def initialize(id=nil, name=nil, servicename=nil, status=nil, metricnamerule=nil, metricmatchtype=nil)
901
+ @Id = id
902
+ @Name = name
903
+ @ServiceName = servicename
904
+ @Status = status
905
+ @MetricNameRule = metricnamerule
906
+ @MetricMatchType = metricmatchtype
560
907
  end
561
908
 
562
909
  def deserialize(params)
563
- unless params['Fields'].nil?
564
- @Fields = []
565
- params['Fields'].each do |i|
566
- apmfield_tmp = ApmField.new
567
- apmfield_tmp.deserialize(i)
568
- @Fields << apmfield_tmp
569
- end
570
- end
571
- unless params['Tags'].nil?
572
- @Tags = []
573
- params['Tags'].each do |i|
574
- apmtag_tmp = ApmTag.new
575
- apmtag_tmp.deserialize(i)
576
- @Tags << apmtag_tmp
577
- end
910
+ @Id = params['Id']
911
+ @Name = params['Name']
912
+ @ServiceName = params['ServiceName']
913
+ @Status = params['Status']
914
+ @MetricNameRule = params['MetricNameRule']
915
+ @MetricMatchType = params['MetricMatchType']
916
+ end
917
+ end
918
+
919
+ # 采样配置信息
920
+ class ApmSampleConfig < TencentCloud::Common::AbstractModel
921
+ # @param InstanceKey: 实例ID
922
+ # @type InstanceKey: String
923
+ # @param ServiceName: 服务名
924
+ # @type ServiceName: String
925
+ # @param SampleName: 采样名字
926
+ # @type SampleName: String
927
+ # @param OperationName: 接口名
928
+ # @type OperationName: String
929
+ # @param SpanNum: 采样的span数
930
+ # @type SpanNum: Integer
931
+ # @param Status: 采样配置开关 0 关 1 开
932
+ # @type Status: Integer
933
+ # @param Tags: tags数组
934
+ # 注意:此字段可能返回 null,表示取不到有效值。
935
+ # @type Tags: Array
936
+ # @param SampleRate: 采样率
937
+ # @type SampleRate: Integer
938
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
939
+ # 注意:此字段可能返回 null,表示取不到有效值。
940
+ # @type OperationType: Integer
941
+ # @param Id: 配置Id
942
+ # 注意:此字段可能返回 null,表示取不到有效值。
943
+ # @type Id: Integer
944
+
945
+ attr_accessor :InstanceKey, :ServiceName, :SampleName, :OperationName, :SpanNum, :Status, :Tags, :SampleRate, :OperationType, :Id
946
+
947
+ def initialize(instancekey=nil, servicename=nil, samplename=nil, operationname=nil, spannum=nil, status=nil, tags=nil, samplerate=nil, operationtype=nil, id=nil)
948
+ @InstanceKey = instancekey
949
+ @ServiceName = servicename
950
+ @SampleName = samplename
951
+ @OperationName = operationname
952
+ @SpanNum = spannum
953
+ @Status = status
954
+ @Tags = tags
955
+ @SampleRate = samplerate
956
+ @OperationType = operationtype
957
+ @Id = id
958
+ end
959
+
960
+ def deserialize(params)
961
+ @InstanceKey = params['InstanceKey']
962
+ @ServiceName = params['ServiceName']
963
+ @SampleName = params['SampleName']
964
+ @OperationName = params['OperationName']
965
+ @SpanNum = params['SpanNum']
966
+ @Status = params['Status']
967
+ unless params['Tags'].nil?
968
+ @Tags = []
969
+ params['Tags'].each do |i|
970
+ apmkvitem_tmp = APMKVItem.new
971
+ apmkvitem_tmp.deserialize(i)
972
+ @Tags << apmkvitem_tmp
973
+ end
974
+ end
975
+ @SampleRate = params['SampleRate']
976
+ @OperationType = params['OperationType']
977
+ @Id = params['Id']
978
+ end
979
+ end
980
+
981
+ # apm应用指标信息
982
+ class ApmServiceMetric < TencentCloud::Common::AbstractModel
983
+ # @param Fields: filed数组
984
+ # 注意:此字段可能返回 null,表示取不到有效值。
985
+ # @type Fields: Array
986
+ # @param Tags: tag数组
987
+ # 注意:此字段可能返回 null,表示取不到有效值。
988
+ # @type Tags: Array
989
+ # @param ServiceDetail: 应用信息
990
+ # 注意:此字段可能返回 null,表示取不到有效值。
991
+ # @type ServiceDetail: :class:`Tencentcloud::Apm.v20210622.models.ServiceDetail`
992
+
993
+ attr_accessor :Fields, :Tags, :ServiceDetail
994
+
995
+ def initialize(fields=nil, tags=nil, servicedetail=nil)
996
+ @Fields = fields
997
+ @Tags = tags
998
+ @ServiceDetail = servicedetail
999
+ end
1000
+
1001
+ def deserialize(params)
1002
+ unless params['Fields'].nil?
1003
+ @Fields = []
1004
+ params['Fields'].each do |i|
1005
+ apmfield_tmp = ApmField.new
1006
+ apmfield_tmp.deserialize(i)
1007
+ @Fields << apmfield_tmp
1008
+ end
1009
+ end
1010
+ unless params['Tags'].nil?
1011
+ @Tags = []
1012
+ params['Tags'].each do |i|
1013
+ apmtag_tmp = ApmTag.new
1014
+ apmtag_tmp.deserialize(i)
1015
+ @Tags << apmtag_tmp
1016
+ end
578
1017
  end
579
1018
  unless params['ServiceDetail'].nil?
580
1019
  @ServiceDetail = ServiceDetail.new
@@ -670,6 +1109,128 @@ module TencentCloud
670
1109
  end
671
1110
  end
672
1111
 
1112
+ # CreateApmPrometheusRule请求参数结构体
1113
+ class CreateApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
1114
+ # @param Name: 指标匹配规则名
1115
+ # @type Name: String
1116
+ # @param ServiceName: 规则生效的应用。作用全部应用就传空字符串
1117
+ # @type ServiceName: String
1118
+ # @param MetricMatchType: 指标匹配类型:0精准匹配,1前缀匹配,2后缀匹配
1119
+ # @type MetricMatchType: Integer
1120
+ # @param MetricNameRule: 客户定义的命中指标名规则。
1121
+ # @type MetricNameRule: String
1122
+ # @param InstanceId: 业务系统ID
1123
+ # @type InstanceId: String
1124
+
1125
+ attr_accessor :Name, :ServiceName, :MetricMatchType, :MetricNameRule, :InstanceId
1126
+
1127
+ def initialize(name=nil, servicename=nil, metricmatchtype=nil, metricnamerule=nil, instanceid=nil)
1128
+ @Name = name
1129
+ @ServiceName = servicename
1130
+ @MetricMatchType = metricmatchtype
1131
+ @MetricNameRule = metricnamerule
1132
+ @InstanceId = instanceid
1133
+ end
1134
+
1135
+ def deserialize(params)
1136
+ @Name = params['Name']
1137
+ @ServiceName = params['ServiceName']
1138
+ @MetricMatchType = params['MetricMatchType']
1139
+ @MetricNameRule = params['MetricNameRule']
1140
+ @InstanceId = params['InstanceId']
1141
+ end
1142
+ end
1143
+
1144
+ # CreateApmPrometheusRule返回参数结构体
1145
+ class CreateApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
1146
+ # @param RuleId: 指标匹配规则的ID
1147
+ # @type RuleId: Integer
1148
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1149
+ # @type RequestId: String
1150
+
1151
+ attr_accessor :RuleId, :RequestId
1152
+
1153
+ def initialize(ruleid=nil, requestid=nil)
1154
+ @RuleId = ruleid
1155
+ @RequestId = requestid
1156
+ end
1157
+
1158
+ def deserialize(params)
1159
+ @RuleId = params['RuleId']
1160
+ @RequestId = params['RequestId']
1161
+ end
1162
+ end
1163
+
1164
+ # CreateApmSampleConfig请求参数结构体
1165
+ class CreateApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1166
+ # @param InstanceId: 业务系统ID
1167
+ # @type InstanceId: String
1168
+ # @param SampleRate: 采样率
1169
+ # @type SampleRate: Integer
1170
+ # @param ServiceName: 应用名
1171
+ # @type ServiceName: String
1172
+ # @param SampleName: 采样规则名
1173
+ # @type SampleName: String
1174
+ # @param Tags: 采样Tags
1175
+ # @type Tags: Array
1176
+ # @param OperationName: 接口名
1177
+ # @type OperationName: String
1178
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
1179
+ # @type OperationType: Integer
1180
+
1181
+ attr_accessor :InstanceId, :SampleRate, :ServiceName, :SampleName, :Tags, :OperationName, :OperationType
1182
+
1183
+ def initialize(instanceid=nil, samplerate=nil, servicename=nil, samplename=nil, tags=nil, operationname=nil, operationtype=nil)
1184
+ @InstanceId = instanceid
1185
+ @SampleRate = samplerate
1186
+ @ServiceName = servicename
1187
+ @SampleName = samplename
1188
+ @Tags = tags
1189
+ @OperationName = operationname
1190
+ @OperationType = operationtype
1191
+ end
1192
+
1193
+ def deserialize(params)
1194
+ @InstanceId = params['InstanceId']
1195
+ @SampleRate = params['SampleRate']
1196
+ @ServiceName = params['ServiceName']
1197
+ @SampleName = params['SampleName']
1198
+ unless params['Tags'].nil?
1199
+ @Tags = []
1200
+ params['Tags'].each do |i|
1201
+ apmkvitem_tmp = APMKVItem.new
1202
+ apmkvitem_tmp.deserialize(i)
1203
+ @Tags << apmkvitem_tmp
1204
+ end
1205
+ end
1206
+ @OperationName = params['OperationName']
1207
+ @OperationType = params['OperationType']
1208
+ end
1209
+ end
1210
+
1211
+ # CreateApmSampleConfig返回参数结构体
1212
+ class CreateApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1213
+ # @param ApmSampleConfig: 采样配置参数
1214
+ # @type ApmSampleConfig: :class:`Tencentcloud::Apm.v20210622.models.ApmSampleConfig`
1215
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1216
+ # @type RequestId: String
1217
+
1218
+ attr_accessor :ApmSampleConfig, :RequestId
1219
+
1220
+ def initialize(apmsampleconfig=nil, requestid=nil)
1221
+ @ApmSampleConfig = apmsampleconfig
1222
+ @RequestId = requestid
1223
+ end
1224
+
1225
+ def deserialize(params)
1226
+ unless params['ApmSampleConfig'].nil?
1227
+ @ApmSampleConfig = ApmSampleConfig.new
1228
+ @ApmSampleConfig.deserialize(params['ApmSampleConfig'])
1229
+ end
1230
+ @RequestId = params['RequestId']
1231
+ end
1232
+ end
1233
+
673
1234
  # CreateProfileTask请求参数结构体
674
1235
  class CreateProfileTaskRequest < TencentCloud::Common::AbstractModel
675
1236
  # @param ServiceName: 应用名称
@@ -734,6 +1295,42 @@ module TencentCloud
734
1295
  end
735
1296
  end
736
1297
 
1298
+ # DeleteApmSampleConfig请求参数结构体
1299
+ class DeleteApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1300
+ # @param InstanceId: 业务系统ID
1301
+ # @type InstanceId: String
1302
+ # @param SampleName: 采样规则名
1303
+ # @type SampleName: String
1304
+
1305
+ attr_accessor :InstanceId, :SampleName
1306
+
1307
+ def initialize(instanceid=nil, samplename=nil)
1308
+ @InstanceId = instanceid
1309
+ @SampleName = samplename
1310
+ end
1311
+
1312
+ def deserialize(params)
1313
+ @InstanceId = params['InstanceId']
1314
+ @SampleName = params['SampleName']
1315
+ end
1316
+ end
1317
+
1318
+ # DeleteApmSampleConfig返回参数结构体
1319
+ class DeleteApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1320
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1321
+ # @type RequestId: String
1322
+
1323
+ attr_accessor :RequestId
1324
+
1325
+ def initialize(requestid=nil)
1326
+ @RequestId = requestid
1327
+ end
1328
+
1329
+ def deserialize(params)
1330
+ @RequestId = params['RequestId']
1331
+ end
1332
+ end
1333
+
737
1334
  # DescribeApmAgent请求参数结构体
738
1335
  class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
739
1336
  # @param InstanceId: 业务系统 ID
@@ -789,6 +1386,93 @@ module TencentCloud
789
1386
  end
790
1387
  end
791
1388
 
1389
+ # DescribeApmApplicationConfig请求参数结构体
1390
+ class DescribeApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
1391
+ # @param InstanceId: 实例ID
1392
+ # @type InstanceId: String
1393
+ # @param ServiceName: 服务名称
1394
+ # @type ServiceName: String
1395
+
1396
+ attr_accessor :InstanceId, :ServiceName
1397
+
1398
+ def initialize(instanceid=nil, servicename=nil)
1399
+ @InstanceId = instanceid
1400
+ @ServiceName = servicename
1401
+ end
1402
+
1403
+ def deserialize(params)
1404
+ @InstanceId = params['InstanceId']
1405
+ @ServiceName = params['ServiceName']
1406
+ end
1407
+ end
1408
+
1409
+ # DescribeApmApplicationConfig返回参数结构体
1410
+ class DescribeApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
1411
+ # @param ApmAppConfig: Apm应用配置
1412
+ # 注意:此字段可能返回 null,表示取不到有效值。
1413
+ # @type ApmAppConfig: :class:`Tencentcloud::Apm.v20210622.models.ApmAppConfig`
1414
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1415
+ # @type RequestId: String
1416
+
1417
+ attr_accessor :ApmAppConfig, :RequestId
1418
+
1419
+ def initialize(apmappconfig=nil, requestid=nil)
1420
+ @ApmAppConfig = apmappconfig
1421
+ @RequestId = requestid
1422
+ end
1423
+
1424
+ def deserialize(params)
1425
+ unless params['ApmAppConfig'].nil?
1426
+ @ApmAppConfig = ApmAppConfig.new
1427
+ @ApmAppConfig.deserialize(params['ApmAppConfig'])
1428
+ end
1429
+ @RequestId = params['RequestId']
1430
+ end
1431
+ end
1432
+
1433
+ # DescribeApmAssociation请求参数结构体
1434
+ class DescribeApmAssociationRequest < TencentCloud::Common::AbstractModel
1435
+ # @param ProductName: 关联的产品名,当前只支持Prometheus
1436
+ # @type ProductName: String
1437
+ # @param InstanceId: 业务系统名
1438
+ # @type InstanceId: String
1439
+
1440
+ attr_accessor :ProductName, :InstanceId
1441
+
1442
+ def initialize(productname=nil, instanceid=nil)
1443
+ @ProductName = productname
1444
+ @InstanceId = instanceid
1445
+ end
1446
+
1447
+ def deserialize(params)
1448
+ @ProductName = params['ProductName']
1449
+ @InstanceId = params['InstanceId']
1450
+ end
1451
+ end
1452
+
1453
+ # DescribeApmAssociation返回参数结构体
1454
+ class DescribeApmAssociationResponse < TencentCloud::Common::AbstractModel
1455
+ # @param ApmAssociation: 关联的产品实例ID
1456
+ # @type ApmAssociation: :class:`Tencentcloud::Apm.v20210622.models.ApmAssociation`
1457
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1458
+ # @type RequestId: String
1459
+
1460
+ attr_accessor :ApmAssociation, :RequestId
1461
+
1462
+ def initialize(apmassociation=nil, requestid=nil)
1463
+ @ApmAssociation = apmassociation
1464
+ @RequestId = requestid
1465
+ end
1466
+
1467
+ def deserialize(params)
1468
+ unless params['ApmAssociation'].nil?
1469
+ @ApmAssociation = ApmAssociation.new
1470
+ @ApmAssociation.deserialize(params['ApmAssociation'])
1471
+ end
1472
+ @RequestId = params['RequestId']
1473
+ end
1474
+ end
1475
+
792
1476
  # DescribeApmInstances请求参数结构体
793
1477
  class DescribeApmInstancesRequest < TencentCloud::Common::AbstractModel
794
1478
  # @param Tags: Tag 列表
@@ -859,36 +1543,127 @@ module TencentCloud
859
1543
  end
860
1544
  end
861
1545
 
862
- # DescribeApmServiceMetric请求参数结构体
863
- class DescribeApmServiceMetricRequest < TencentCloud::Common::AbstractModel
1546
+ # DescribeApmPrometheusRule请求参数结构体
1547
+ class DescribeApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
864
1548
  # @param InstanceId: 业务系统ID
865
1549
  # @type InstanceId: String
866
- # @param ServiceName: 应用名
867
- # @type ServiceName: String
868
- # @param ServiceID: 应用ID
869
- # @type ServiceID: String
870
- # @param StartTime: 开始时间
871
- # @type StartTime: Integer
872
- # @param EndTime: 结束时间
873
- # @type EndTime: Integer
874
- # @param OrderBy: 排序
875
- # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
876
- # @param Demo: 是否demo模式
877
- # @type Demo: Boolean
878
- # @param ServiceStatus: 应用状态筛选,可枚举的值为:health、warning、error。如果选中多个状态用逗号隔开,例如:"warning,error"
879
- # @type ServiceStatus: String
880
- # @param Tags: 标签列表
881
- # @type Tags: Array
882
- # @param Page: 页码
883
- # @type Page: Integer
884
- # @param PageSize: 页大小
885
- # @type PageSize: Integer
886
- # @param Filters: 过滤条件
887
- # @type Filters: Array
888
1550
 
889
- attr_accessor :InstanceId, :ServiceName, :ServiceID, :StartTime, :EndTime, :OrderBy, :Demo, :ServiceStatus, :Tags, :Page, :PageSize, :Filters
1551
+ attr_accessor :InstanceId
890
1552
 
891
- def initialize(instanceid=nil, servicename=nil, serviceid=nil, starttime=nil, endtime=nil, orderby=nil, demo=nil, servicestatus=nil, tags=nil, page=nil, pagesize=nil, filters=nil)
1553
+ def initialize(instanceid=nil)
1554
+ @InstanceId = instanceid
1555
+ end
1556
+
1557
+ def deserialize(params)
1558
+ @InstanceId = params['InstanceId']
1559
+ end
1560
+ end
1561
+
1562
+ # DescribeApmPrometheusRule返回参数结构体
1563
+ class DescribeApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
1564
+ # @param ApmPrometheusRules: 指标匹配规则
1565
+ # @type ApmPrometheusRules: Array
1566
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1567
+ # @type RequestId: String
1568
+
1569
+ attr_accessor :ApmPrometheusRules, :RequestId
1570
+
1571
+ def initialize(apmprometheusrules=nil, requestid=nil)
1572
+ @ApmPrometheusRules = apmprometheusrules
1573
+ @RequestId = requestid
1574
+ end
1575
+
1576
+ def deserialize(params)
1577
+ unless params['ApmPrometheusRules'].nil?
1578
+ @ApmPrometheusRules = []
1579
+ params['ApmPrometheusRules'].each do |i|
1580
+ apmprometheusrules_tmp = ApmPrometheusRules.new
1581
+ apmprometheusrules_tmp.deserialize(i)
1582
+ @ApmPrometheusRules << apmprometheusrules_tmp
1583
+ end
1584
+ end
1585
+ @RequestId = params['RequestId']
1586
+ end
1587
+ end
1588
+
1589
+ # DescribeApmSampleConfig请求参数结构体
1590
+ class DescribeApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1591
+ # @param InstanceId: 业务系统ID
1592
+ # @type InstanceId: String
1593
+ # @param SampleName: 采样规则名
1594
+ # @type SampleName: String
1595
+
1596
+ attr_accessor :InstanceId, :SampleName
1597
+
1598
+ def initialize(instanceid=nil, samplename=nil)
1599
+ @InstanceId = instanceid
1600
+ @SampleName = samplename
1601
+ end
1602
+
1603
+ def deserialize(params)
1604
+ @InstanceId = params['InstanceId']
1605
+ @SampleName = params['SampleName']
1606
+ end
1607
+ end
1608
+
1609
+ # DescribeApmSampleConfig返回参数结构体
1610
+ class DescribeApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1611
+ # @param ApmSampleConfigs: 采样配置列表
1612
+ # 注意:此字段可能返回 null,表示取不到有效值。
1613
+ # @type ApmSampleConfigs: Array
1614
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1615
+ # @type RequestId: String
1616
+
1617
+ attr_accessor :ApmSampleConfigs, :RequestId
1618
+
1619
+ def initialize(apmsampleconfigs=nil, requestid=nil)
1620
+ @ApmSampleConfigs = apmsampleconfigs
1621
+ @RequestId = requestid
1622
+ end
1623
+
1624
+ def deserialize(params)
1625
+ unless params['ApmSampleConfigs'].nil?
1626
+ @ApmSampleConfigs = []
1627
+ params['ApmSampleConfigs'].each do |i|
1628
+ apmsampleconfig_tmp = ApmSampleConfig.new
1629
+ apmsampleconfig_tmp.deserialize(i)
1630
+ @ApmSampleConfigs << apmsampleconfig_tmp
1631
+ end
1632
+ end
1633
+ @RequestId = params['RequestId']
1634
+ end
1635
+ end
1636
+
1637
+ # DescribeApmServiceMetric请求参数结构体
1638
+ class DescribeApmServiceMetricRequest < TencentCloud::Common::AbstractModel
1639
+ # @param InstanceId: 业务系统ID
1640
+ # @type InstanceId: String
1641
+ # @param ServiceName: 应用名
1642
+ # @type ServiceName: String
1643
+ # @param ServiceID: 应用ID
1644
+ # @type ServiceID: String
1645
+ # @param StartTime: 开始时间
1646
+ # @type StartTime: Integer
1647
+ # @param EndTime: 结束时间
1648
+ # @type EndTime: Integer
1649
+ # @param OrderBy: 排序
1650
+ # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
1651
+ # @param Demo: 是否demo模式
1652
+ # @type Demo: Boolean
1653
+ # @param ServiceStatus: 应用状态筛选,可枚举的值为:health、warning、error。如果选中多个状态用逗号隔开,例如:"warning,error"
1654
+ # @type ServiceStatus: String
1655
+ # @param Tags: 标签列表
1656
+ # @type Tags: Array
1657
+ # @param Page: 页码
1658
+ # @type Page: Integer
1659
+ # @param PageSize: 页大小
1660
+ # @type PageSize: Integer
1661
+ # @param Filters: 过滤条件
1662
+ # @type Filters: Array
1663
+
1664
+ attr_accessor :InstanceId, :ServiceName, :ServiceID, :StartTime, :EndTime, :OrderBy, :Demo, :ServiceStatus, :Tags, :Page, :PageSize, :Filters
1665
+
1666
+ def initialize(instanceid=nil, servicename=nil, serviceid=nil, starttime=nil, endtime=nil, orderby=nil, demo=nil, servicestatus=nil, tags=nil, page=nil, pagesize=nil, filters=nil)
892
1667
  @InstanceId = instanceid
893
1668
  @ServiceName = servicename
894
1669
  @ServiceID = serviceid
@@ -1727,6 +2502,303 @@ module TencentCloud
1727
2502
  end
1728
2503
  end
1729
2504
 
2505
+ # ModifyApmApplicationConfig请求参数结构体
2506
+ class ModifyApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
2507
+ # @param InstanceId: 业务系统 ID
2508
+ # @type InstanceId: String
2509
+ # @param ServiceName: 应用名
2510
+ # @type ServiceName: String
2511
+ # @param UrlConvergenceSwitch: URL收敛开关,0 关 | 1 开
2512
+ # @type UrlConvergenceSwitch: Integer
2513
+ # @param UrlConvergenceThreshold: URL收敛阈值
2514
+ # @type UrlConvergenceThreshold: Integer
2515
+ # @param ExceptionFilter: 异常过滤正则规则,逗号分隔
2516
+ # @type ExceptionFilter: String
2517
+ # @param UrlConvergence: URL收敛正则规则,逗号分隔
2518
+ # @type UrlConvergence: String
2519
+ # @param ErrorCodeFilter: 错误码过滤,逗号分隔
2520
+ # @type ErrorCodeFilter: String
2521
+ # @param UrlExclude: URL排除正则规则,逗号分隔
2522
+ # @type UrlExclude: String
2523
+ # @param IsRelatedLog: 日志开关 0 关 1 开
2524
+ # @type IsRelatedLog: Integer
2525
+ # @param LogRegion: 日志地域
2526
+ # @type LogRegion: String
2527
+ # @param LogTopicID: 日志主题ID
2528
+ # @type LogTopicID: String
2529
+ # @param LogSet: CLS 日志集 | ES 集群ID
2530
+ # @type LogSet: String
2531
+ # @param LogSource: 日志来源 CLS | ES
2532
+ # @type LogSource: String
2533
+ # @param IgnoreOperationName: 需过滤的接口
2534
+ # @type IgnoreOperationName: String
2535
+ # @param EnableSnapshot: 是否开启线程剖析
2536
+ # @type EnableSnapshot: Boolean
2537
+ # @param SnapshotTimeout: 线程剖析超时阈值
2538
+ # @type SnapshotTimeout: Integer
2539
+ # @param AgentEnable: 是否开启agent
2540
+ # @type AgentEnable: Boolean
2541
+ # @param TraceSquash: 是否开启链路压缩
2542
+ # @type TraceSquash: Boolean
2543
+ # @param EventEnable: 是否开启应用诊断的开关
2544
+ # @type EventEnable: Boolean
2545
+ # @param InstrumentList: 组件列表
2546
+ # @type InstrumentList: Array
2547
+ # @param AgentOperationConfigView: 探针接口相关配置
2548
+ # @type AgentOperationConfigView: :class:`Tencentcloud::Apm.v20210622.models.AgentOperationConfigView`
2549
+ # @param EnableLogConfig: 是否开启应用日志配置
2550
+ # @type EnableLogConfig: Boolean
2551
+ # @param EnableDashboardConfig: 应用是否开启dashboard配置: false 关(与业务系统保持一致)/true 开(应用级配置)
2552
+ # @type EnableDashboardConfig: Boolean
2553
+ # @param IsRelatedDashboard: 是否关联dashboard: 0 关 1 开
2554
+ # @type IsRelatedDashboard: Integer
2555
+ # @param DashboardTopicID: dashboard ID
2556
+ # @type DashboardTopicID: String
2557
+ # @param LogIndexType: CLS索引类型(0=全文索引,1=键值索引)
2558
+ # @type LogIndexType: Integer
2559
+ # @param LogTraceIdKey: traceId的索引key: 当CLS索引类型为键值索引时生效
2560
+ # @type LogTraceIdKey: String
2561
+ # @param EnableSecurityConfig: 是否开启应用安全配置
2562
+ # @type EnableSecurityConfig: Boolean
2563
+ # @param IsSqlInjectionAnalysis: 是否开启SQL注入分析
2564
+ # @type IsSqlInjectionAnalysis: Integer
2565
+ # @param IsInstrumentationVulnerabilityScan: 是否开启组件漏洞检测
2566
+ # @type IsInstrumentationVulnerabilityScan: Integer
2567
+ # @param IsRemoteCommandExecutionAnalysis: 是否开启远程命令检测
2568
+ # @type IsRemoteCommandExecutionAnalysis: Integer
2569
+ # @param IsMemoryHijackingAnalysis: 是否开启内存马检测
2570
+ # @type IsMemoryHijackingAnalysis: Integer
2571
+ # @param IsDeleteAnyFileAnalysis: 是否开启删除任意文件检测(0-关闭,1-开启)
2572
+ # @type IsDeleteAnyFileAnalysis: Integer
2573
+ # @param IsReadAnyFileAnalysis: 是否开启读取任意文件检测(0-关闭,1-开启)
2574
+ # @type IsReadAnyFileAnalysis: Integer
2575
+ # @param IsUploadAnyFileAnalysis: 是否开启上传任意文件检测(0-关闭,1-开启)
2576
+ # @type IsUploadAnyFileAnalysis: Integer
2577
+ # @param IsIncludeAnyFileAnalysis: 是否开启包含任意文件检测(0-关闭,1-开启)
2578
+ # @type IsIncludeAnyFileAnalysis: Integer
2579
+ # @param IsDirectoryTraversalAnalysis: 是否开启目录遍历检测(0-关闭,1-开启)
2580
+ # @type IsDirectoryTraversalAnalysis: Integer
2581
+ # @param IsTemplateEngineInjectionAnalysis: 是否开启模板引擎注入检测(0-关闭,1-开启)
2582
+ # @type IsTemplateEngineInjectionAnalysis: Integer
2583
+ # @param IsScriptEngineInjectionAnalysis: 是否开启脚本引擎注入检测(0-关闭,1-开启)
2584
+ # @type IsScriptEngineInjectionAnalysis: Integer
2585
+ # @param IsExpressionInjectionAnalysis: 是否开启表达式注入检测(0-关闭,1-开启)
2586
+ # @type IsExpressionInjectionAnalysis: Integer
2587
+ # @param IsJNDIInjectionAnalysis: 是否开启JNDI注入检测(0-关闭,1-开启)
2588
+ # @type IsJNDIInjectionAnalysis: Integer
2589
+ # @param IsJNIInjectionAnalysis: 是否开启JNI注入检测(0-关闭,1-开启)
2590
+ # @type IsJNIInjectionAnalysis: Integer
2591
+ # @param IsWebshellBackdoorAnalysis: 是否开启Webshell后门检测(0-关闭,1-开启)
2592
+ # @type IsWebshellBackdoorAnalysis: Integer
2593
+ # @param IsDeserializationAnalysis: 是否开启反序列化检测(0-关闭,1-开启)
2594
+ # @type IsDeserializationAnalysis: Integer
2595
+ # @param UrlAutoConvergenceEnable: 接口自动收敛开关,0 关 | 1 开
2596
+ # @type UrlAutoConvergenceEnable: Boolean
2597
+ # @param UrlLongSegmentThreshold: URL长分段收敛阈值
2598
+ # @type UrlLongSegmentThreshold: Integer
2599
+ # @param UrlNumberSegmentThreshold: URL数字分段收敛阈值
2600
+ # @type UrlNumberSegmentThreshold: Integer
2601
+ # @param DisableMemoryUsed: 探针熔断内存阈值
2602
+ # @type DisableMemoryUsed: Integer
2603
+ # @param DisableCpuUsed: 探针熔断CPU阈值
2604
+ # @type DisableCpuUsed: Integer
2605
+ # @param DbStatementParametersEnabled: 是否开启SQL参数获取
2606
+ # @type DbStatementParametersEnabled: Boolean
2607
+ # @param SlowSQLThresholds: 慢SQL阈值
2608
+ # @type SlowSQLThresholds: Array
2609
+
2610
+ attr_accessor :InstanceId, :ServiceName, :UrlConvergenceSwitch, :UrlConvergenceThreshold, :ExceptionFilter, :UrlConvergence, :ErrorCodeFilter, :UrlExclude, :IsRelatedLog, :LogRegion, :LogTopicID, :LogSet, :LogSource, :IgnoreOperationName, :EnableSnapshot, :SnapshotTimeout, :AgentEnable, :TraceSquash, :EventEnable, :InstrumentList, :AgentOperationConfigView, :EnableLogConfig, :EnableDashboardConfig, :IsRelatedDashboard, :DashboardTopicID, :LogIndexType, :LogTraceIdKey, :EnableSecurityConfig, :IsSqlInjectionAnalysis, :IsInstrumentationVulnerabilityScan, :IsRemoteCommandExecutionAnalysis, :IsMemoryHijackingAnalysis, :IsDeleteAnyFileAnalysis, :IsReadAnyFileAnalysis, :IsUploadAnyFileAnalysis, :IsIncludeAnyFileAnalysis, :IsDirectoryTraversalAnalysis, :IsTemplateEngineInjectionAnalysis, :IsScriptEngineInjectionAnalysis, :IsExpressionInjectionAnalysis, :IsJNDIInjectionAnalysis, :IsJNIInjectionAnalysis, :IsWebshellBackdoorAnalysis, :IsDeserializationAnalysis, :UrlAutoConvergenceEnable, :UrlLongSegmentThreshold, :UrlNumberSegmentThreshold, :DisableMemoryUsed, :DisableCpuUsed, :DbStatementParametersEnabled, :SlowSQLThresholds
2611
+
2612
+ def initialize(instanceid=nil, servicename=nil, urlconvergenceswitch=nil, urlconvergencethreshold=nil, exceptionfilter=nil, urlconvergence=nil, errorcodefilter=nil, urlexclude=nil, isrelatedlog=nil, logregion=nil, logtopicid=nil, logset=nil, logsource=nil, ignoreoperationname=nil, enablesnapshot=nil, snapshottimeout=nil, agentenable=nil, tracesquash=nil, eventenable=nil, instrumentlist=nil, agentoperationconfigview=nil, enablelogconfig=nil, enabledashboardconfig=nil, isrelateddashboard=nil, dashboardtopicid=nil, logindextype=nil, logtraceidkey=nil, enablesecurityconfig=nil, issqlinjectionanalysis=nil, isinstrumentationvulnerabilityscan=nil, isremotecommandexecutionanalysis=nil, ismemoryhijackinganalysis=nil, isdeleteanyfileanalysis=nil, isreadanyfileanalysis=nil, isuploadanyfileanalysis=nil, isincludeanyfileanalysis=nil, isdirectorytraversalanalysis=nil, istemplateengineinjectionanalysis=nil, isscriptengineinjectionanalysis=nil, isexpressioninjectionanalysis=nil, isjndiinjectionanalysis=nil, isjniinjectionanalysis=nil, iswebshellbackdooranalysis=nil, isdeserializationanalysis=nil, urlautoconvergenceenable=nil, urllongsegmentthreshold=nil, urlnumbersegmentthreshold=nil, disablememoryused=nil, disablecpuused=nil, dbstatementparametersenabled=nil, slowsqlthresholds=nil)
2613
+ @InstanceId = instanceid
2614
+ @ServiceName = servicename
2615
+ @UrlConvergenceSwitch = urlconvergenceswitch
2616
+ @UrlConvergenceThreshold = urlconvergencethreshold
2617
+ @ExceptionFilter = exceptionfilter
2618
+ @UrlConvergence = urlconvergence
2619
+ @ErrorCodeFilter = errorcodefilter
2620
+ @UrlExclude = urlexclude
2621
+ @IsRelatedLog = isrelatedlog
2622
+ @LogRegion = logregion
2623
+ @LogTopicID = logtopicid
2624
+ @LogSet = logset
2625
+ @LogSource = logsource
2626
+ @IgnoreOperationName = ignoreoperationname
2627
+ @EnableSnapshot = enablesnapshot
2628
+ @SnapshotTimeout = snapshottimeout
2629
+ @AgentEnable = agentenable
2630
+ @TraceSquash = tracesquash
2631
+ @EventEnable = eventenable
2632
+ @InstrumentList = instrumentlist
2633
+ @AgentOperationConfigView = agentoperationconfigview
2634
+ @EnableLogConfig = enablelogconfig
2635
+ @EnableDashboardConfig = enabledashboardconfig
2636
+ @IsRelatedDashboard = isrelateddashboard
2637
+ @DashboardTopicID = dashboardtopicid
2638
+ @LogIndexType = logindextype
2639
+ @LogTraceIdKey = logtraceidkey
2640
+ @EnableSecurityConfig = enablesecurityconfig
2641
+ @IsSqlInjectionAnalysis = issqlinjectionanalysis
2642
+ @IsInstrumentationVulnerabilityScan = isinstrumentationvulnerabilityscan
2643
+ @IsRemoteCommandExecutionAnalysis = isremotecommandexecutionanalysis
2644
+ @IsMemoryHijackingAnalysis = ismemoryhijackinganalysis
2645
+ @IsDeleteAnyFileAnalysis = isdeleteanyfileanalysis
2646
+ @IsReadAnyFileAnalysis = isreadanyfileanalysis
2647
+ @IsUploadAnyFileAnalysis = isuploadanyfileanalysis
2648
+ @IsIncludeAnyFileAnalysis = isincludeanyfileanalysis
2649
+ @IsDirectoryTraversalAnalysis = isdirectorytraversalanalysis
2650
+ @IsTemplateEngineInjectionAnalysis = istemplateengineinjectionanalysis
2651
+ @IsScriptEngineInjectionAnalysis = isscriptengineinjectionanalysis
2652
+ @IsExpressionInjectionAnalysis = isexpressioninjectionanalysis
2653
+ @IsJNDIInjectionAnalysis = isjndiinjectionanalysis
2654
+ @IsJNIInjectionAnalysis = isjniinjectionanalysis
2655
+ @IsWebshellBackdoorAnalysis = iswebshellbackdooranalysis
2656
+ @IsDeserializationAnalysis = isdeserializationanalysis
2657
+ @UrlAutoConvergenceEnable = urlautoconvergenceenable
2658
+ @UrlLongSegmentThreshold = urllongsegmentthreshold
2659
+ @UrlNumberSegmentThreshold = urlnumbersegmentthreshold
2660
+ @DisableMemoryUsed = disablememoryused
2661
+ @DisableCpuUsed = disablecpuused
2662
+ @DbStatementParametersEnabled = dbstatementparametersenabled
2663
+ @SlowSQLThresholds = slowsqlthresholds
2664
+ end
2665
+
2666
+ def deserialize(params)
2667
+ @InstanceId = params['InstanceId']
2668
+ @ServiceName = params['ServiceName']
2669
+ @UrlConvergenceSwitch = params['UrlConvergenceSwitch']
2670
+ @UrlConvergenceThreshold = params['UrlConvergenceThreshold']
2671
+ @ExceptionFilter = params['ExceptionFilter']
2672
+ @UrlConvergence = params['UrlConvergence']
2673
+ @ErrorCodeFilter = params['ErrorCodeFilter']
2674
+ @UrlExclude = params['UrlExclude']
2675
+ @IsRelatedLog = params['IsRelatedLog']
2676
+ @LogRegion = params['LogRegion']
2677
+ @LogTopicID = params['LogTopicID']
2678
+ @LogSet = params['LogSet']
2679
+ @LogSource = params['LogSource']
2680
+ @IgnoreOperationName = params['IgnoreOperationName']
2681
+ @EnableSnapshot = params['EnableSnapshot']
2682
+ @SnapshotTimeout = params['SnapshotTimeout']
2683
+ @AgentEnable = params['AgentEnable']
2684
+ @TraceSquash = params['TraceSquash']
2685
+ @EventEnable = params['EventEnable']
2686
+ unless params['InstrumentList'].nil?
2687
+ @InstrumentList = []
2688
+ params['InstrumentList'].each do |i|
2689
+ instrument_tmp = Instrument.new
2690
+ instrument_tmp.deserialize(i)
2691
+ @InstrumentList << instrument_tmp
2692
+ end
2693
+ end
2694
+ unless params['AgentOperationConfigView'].nil?
2695
+ @AgentOperationConfigView = AgentOperationConfigView.new
2696
+ @AgentOperationConfigView.deserialize(params['AgentOperationConfigView'])
2697
+ end
2698
+ @EnableLogConfig = params['EnableLogConfig']
2699
+ @EnableDashboardConfig = params['EnableDashboardConfig']
2700
+ @IsRelatedDashboard = params['IsRelatedDashboard']
2701
+ @DashboardTopicID = params['DashboardTopicID']
2702
+ @LogIndexType = params['LogIndexType']
2703
+ @LogTraceIdKey = params['LogTraceIdKey']
2704
+ @EnableSecurityConfig = params['EnableSecurityConfig']
2705
+ @IsSqlInjectionAnalysis = params['IsSqlInjectionAnalysis']
2706
+ @IsInstrumentationVulnerabilityScan = params['IsInstrumentationVulnerabilityScan']
2707
+ @IsRemoteCommandExecutionAnalysis = params['IsRemoteCommandExecutionAnalysis']
2708
+ @IsMemoryHijackingAnalysis = params['IsMemoryHijackingAnalysis']
2709
+ @IsDeleteAnyFileAnalysis = params['IsDeleteAnyFileAnalysis']
2710
+ @IsReadAnyFileAnalysis = params['IsReadAnyFileAnalysis']
2711
+ @IsUploadAnyFileAnalysis = params['IsUploadAnyFileAnalysis']
2712
+ @IsIncludeAnyFileAnalysis = params['IsIncludeAnyFileAnalysis']
2713
+ @IsDirectoryTraversalAnalysis = params['IsDirectoryTraversalAnalysis']
2714
+ @IsTemplateEngineInjectionAnalysis = params['IsTemplateEngineInjectionAnalysis']
2715
+ @IsScriptEngineInjectionAnalysis = params['IsScriptEngineInjectionAnalysis']
2716
+ @IsExpressionInjectionAnalysis = params['IsExpressionInjectionAnalysis']
2717
+ @IsJNDIInjectionAnalysis = params['IsJNDIInjectionAnalysis']
2718
+ @IsJNIInjectionAnalysis = params['IsJNIInjectionAnalysis']
2719
+ @IsWebshellBackdoorAnalysis = params['IsWebshellBackdoorAnalysis']
2720
+ @IsDeserializationAnalysis = params['IsDeserializationAnalysis']
2721
+ @UrlAutoConvergenceEnable = params['UrlAutoConvergenceEnable']
2722
+ @UrlLongSegmentThreshold = params['UrlLongSegmentThreshold']
2723
+ @UrlNumberSegmentThreshold = params['UrlNumberSegmentThreshold']
2724
+ @DisableMemoryUsed = params['DisableMemoryUsed']
2725
+ @DisableCpuUsed = params['DisableCpuUsed']
2726
+ @DbStatementParametersEnabled = params['DbStatementParametersEnabled']
2727
+ unless params['SlowSQLThresholds'].nil?
2728
+ @SlowSQLThresholds = []
2729
+ params['SlowSQLThresholds'].each do |i|
2730
+ apmtag_tmp = ApmTag.new
2731
+ apmtag_tmp.deserialize(i)
2732
+ @SlowSQLThresholds << apmtag_tmp
2733
+ end
2734
+ end
2735
+ end
2736
+ end
2737
+
2738
+ # ModifyApmApplicationConfig返回参数结构体
2739
+ class ModifyApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
2740
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2741
+ # @type RequestId: String
2742
+
2743
+ attr_accessor :RequestId
2744
+
2745
+ def initialize(requestid=nil)
2746
+ @RequestId = requestid
2747
+ end
2748
+
2749
+ def deserialize(params)
2750
+ @RequestId = params['RequestId']
2751
+ end
2752
+ end
2753
+
2754
+ # ModifyApmAssociation请求参数结构体
2755
+ class ModifyApmAssociationRequest < TencentCloud::Common::AbstractModel
2756
+ # @param ProductName: 关联的产品名,当前只支持Prometheus、CKafka
2757
+ # @type ProductName: String
2758
+ # @param Status: 关联关系的状态:// 关联关系状态:1(启用)、2(不启用)
2759
+ # @type Status: Integer
2760
+ # @param InstanceId: 业务系统ID
2761
+ # @type InstanceId: String
2762
+ # @param PeerId: 关联的产品实例ID
2763
+ # @type PeerId: String
2764
+ # @param Topic: CKafka消息主题
2765
+ # @type Topic: String
2766
+
2767
+ attr_accessor :ProductName, :Status, :InstanceId, :PeerId, :Topic
2768
+
2769
+ def initialize(productname=nil, status=nil, instanceid=nil, peerid=nil, topic=nil)
2770
+ @ProductName = productname
2771
+ @Status = status
2772
+ @InstanceId = instanceid
2773
+ @PeerId = peerid
2774
+ @Topic = topic
2775
+ end
2776
+
2777
+ def deserialize(params)
2778
+ @ProductName = params['ProductName']
2779
+ @Status = params['Status']
2780
+ @InstanceId = params['InstanceId']
2781
+ @PeerId = params['PeerId']
2782
+ @Topic = params['Topic']
2783
+ end
2784
+ end
2785
+
2786
+ # ModifyApmAssociation返回参数结构体
2787
+ class ModifyApmAssociationResponse < TencentCloud::Common::AbstractModel
2788
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2789
+ # @type RequestId: String
2790
+
2791
+ attr_accessor :RequestId
2792
+
2793
+ def initialize(requestid=nil)
2794
+ @RequestId = requestid
2795
+ end
2796
+
2797
+ def deserialize(params)
2798
+ @RequestId = params['RequestId']
2799
+ end
2800
+ end
2801
+
1730
2802
  # ModifyApmInstance请求参数结构体
1731
2803
  class ModifyApmInstanceRequest < TencentCloud::Common::AbstractModel
1732
2804
  # @param InstanceId: 业务系统 ID
@@ -1930,6 +3002,133 @@ module TencentCloud
1930
3002
  end
1931
3003
  end
1932
3004
 
3005
+ # ModifyApmPrometheusRule请求参数结构体
3006
+ class ModifyApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
3007
+ # @param Id: 规则ID
3008
+ # @type Id: Integer
3009
+ # @param InstanceId: 业务系统ID
3010
+ # @type InstanceId: String
3011
+ # @param Name: 所要修改的规则名
3012
+ # @type Name: String
3013
+ # @param Status: 规则状态:1(启用)、2(不启用)、3(删除)
3014
+ # @type Status: Integer
3015
+ # @param ServiceName: 规则生效的应用。生效于全部应用就传空(这个如果不修改也要传旧的规则)
3016
+ # @type ServiceName: String
3017
+ # @param MetricMatchType: 匹配类型:0精准匹配,1前缀匹配,2后缀匹配(这个如果不修改也要传旧的规则)
3018
+ # @type MetricMatchType: Integer
3019
+ # @param MetricNameRule: 客户定义的命中指标名规则。
3020
+ # @type MetricNameRule: String
3021
+
3022
+ attr_accessor :Id, :InstanceId, :Name, :Status, :ServiceName, :MetricMatchType, :MetricNameRule
3023
+
3024
+ def initialize(id=nil, instanceid=nil, name=nil, status=nil, servicename=nil, metricmatchtype=nil, metricnamerule=nil)
3025
+ @Id = id
3026
+ @InstanceId = instanceid
3027
+ @Name = name
3028
+ @Status = status
3029
+ @ServiceName = servicename
3030
+ @MetricMatchType = metricmatchtype
3031
+ @MetricNameRule = metricnamerule
3032
+ end
3033
+
3034
+ def deserialize(params)
3035
+ @Id = params['Id']
3036
+ @InstanceId = params['InstanceId']
3037
+ @Name = params['Name']
3038
+ @Status = params['Status']
3039
+ @ServiceName = params['ServiceName']
3040
+ @MetricMatchType = params['MetricMatchType']
3041
+ @MetricNameRule = params['MetricNameRule']
3042
+ end
3043
+ end
3044
+
3045
+ # ModifyApmPrometheusRule返回参数结构体
3046
+ class ModifyApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
3047
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3048
+ # @type RequestId: String
3049
+
3050
+ attr_accessor :RequestId
3051
+
3052
+ def initialize(requestid=nil)
3053
+ @RequestId = requestid
3054
+ end
3055
+
3056
+ def deserialize(params)
3057
+ @RequestId = params['RequestId']
3058
+ end
3059
+ end
3060
+
3061
+ # ModifyApmSampleConfig请求参数结构体
3062
+ class ModifyApmSampleConfigRequest < TencentCloud::Common::AbstractModel
3063
+ # @param InstanceId: 业务系统ID
3064
+ # @type InstanceId: String
3065
+ # @param SampleName: 采样规则名
3066
+ # @type SampleName: String
3067
+ # @param SampleRate: 采样率
3068
+ # @type SampleRate: Integer
3069
+ # @param ServiceName: 应用名,生效于所有应用则填空
3070
+ # @type ServiceName: String
3071
+ # @param OperationName: 接口名
3072
+ # @type OperationName: String
3073
+ # @param Tags: 采样tag
3074
+ # @type Tags: Array
3075
+ # @param Status: 采样开关 0关 1开 2删除
3076
+ # @type Status: Integer
3077
+ # @param Id: 配置Id
3078
+ # @type Id: Integer
3079
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
3080
+ # @type OperationType: Integer
3081
+
3082
+ attr_accessor :InstanceId, :SampleName, :SampleRate, :ServiceName, :OperationName, :Tags, :Status, :Id, :OperationType
3083
+
3084
+ def initialize(instanceid=nil, samplename=nil, samplerate=nil, servicename=nil, operationname=nil, tags=nil, status=nil, id=nil, operationtype=nil)
3085
+ @InstanceId = instanceid
3086
+ @SampleName = samplename
3087
+ @SampleRate = samplerate
3088
+ @ServiceName = servicename
3089
+ @OperationName = operationname
3090
+ @Tags = tags
3091
+ @Status = status
3092
+ @Id = id
3093
+ @OperationType = operationtype
3094
+ end
3095
+
3096
+ def deserialize(params)
3097
+ @InstanceId = params['InstanceId']
3098
+ @SampleName = params['SampleName']
3099
+ @SampleRate = params['SampleRate']
3100
+ @ServiceName = params['ServiceName']
3101
+ @OperationName = params['OperationName']
3102
+ unless params['Tags'].nil?
3103
+ @Tags = []
3104
+ params['Tags'].each do |i|
3105
+ apmkvitem_tmp = APMKVItem.new
3106
+ apmkvitem_tmp.deserialize(i)
3107
+ @Tags << apmkvitem_tmp
3108
+ end
3109
+ end
3110
+ @Status = params['Status']
3111
+ @Id = params['Id']
3112
+ @OperationType = params['OperationType']
3113
+ end
3114
+ end
3115
+
3116
+ # ModifyApmSampleConfig返回参数结构体
3117
+ class ModifyApmSampleConfigResponse < TencentCloud::Common::AbstractModel
3118
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3119
+ # @type RequestId: String
3120
+
3121
+ attr_accessor :RequestId
3122
+
3123
+ def initialize(requestid=nil)
3124
+ @RequestId = requestid
3125
+ end
3126
+
3127
+ def deserialize(params)
3128
+ @RequestId = params['RequestId']
3129
+ end
3130
+ end
3131
+
1933
3132
  # ModifyGeneralApmApplicationConfig请求参数结构体
1934
3133
  class ModifyGeneralApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
1935
3134
  # @param InstanceId: 业务系统Id