tencentcloud-sdk-apm 3.0.1150 → 3.0.1169

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,259 @@ 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
+
253
+ 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
254
+
255
+ 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)
256
+ @InstanceKey = instancekey
257
+ @ServiceName = servicename
258
+ @UrlConvergenceSwitch = urlconvergenceswitch
259
+ @UrlConvergenceThreshold = urlconvergencethreshold
260
+ @UrlConvergence = urlconvergence
261
+ @ExceptionFilter = exceptionfilter
262
+ @ErrorCodeFilter = errorcodefilter
263
+ @Components = components
264
+ @UrlExclude = urlexclude
265
+ @LogSource = logsource
266
+ @LogRegion = logregion
267
+ @IsRelatedLog = isrelatedlog
268
+ @LogTopicID = logtopicid
269
+ @IgnoreOperationName = ignoreoperationname
270
+ @LogSet = logset
271
+ @TraceRateLimit = traceratelimit
272
+ @EnableSnapshot = enablesnapshot
273
+ @SnapshotTimeout = snapshottimeout
274
+ @AgentEnable = agentenable
275
+ @InstrumentList = instrumentlist
276
+ @TraceSquash = tracesquash
277
+ @EventEnable = eventenable
278
+ @AgentOperationConfigView = agentoperationconfigview
279
+ @EnableLogConfig = enablelogconfig
280
+ @ServiceID = serviceid
281
+ @EnableDashboardConfig = enabledashboardconfig
282
+ @IsRelatedDashboard = isrelateddashboard
283
+ @DashboardTopicID = dashboardtopicid
284
+ @EnableSecurityConfig = enablesecurityconfig
285
+ @IsInstrumentationVulnerabilityScan = isinstrumentationvulnerabilityscan
286
+ @IsSqlInjectionAnalysis = issqlinjectionanalysis
287
+ @IsRemoteCommandExecutionAnalysis = isremotecommandexecutionanalysis
288
+ @IsMemoryHijackingAnalysis = ismemoryhijackinganalysis
289
+ @LogIndexType = logindextype
290
+ @LogTraceIdKey = logtraceidkey
291
+ @IsDeleteAnyFileAnalysis = isdeleteanyfileanalysis
292
+ @IsReadAnyFileAnalysis = isreadanyfileanalysis
293
+ @IsUploadAnyFileAnalysis = isuploadanyfileanalysis
294
+ @IsIncludeAnyFileAnalysis = isincludeanyfileanalysis
295
+ @IsDirectoryTraversalAnalysis = isdirectorytraversalanalysis
296
+ @IsTemplateEngineInjectionAnalysis = istemplateengineinjectionanalysis
297
+ @IsScriptEngineInjectionAnalysis = isscriptengineinjectionanalysis
298
+ @IsExpressionInjectionAnalysis = isexpressioninjectionanalysis
299
+ @IsJNDIInjectionAnalysis = isjndiinjectionanalysis
300
+ @IsJNIInjectionAnalysis = isjniinjectionanalysis
301
+ @IsWebshellBackdoorAnalysis = iswebshellbackdooranalysis
302
+ @IsDeserializationAnalysis = isdeserializationanalysis
303
+ @UrlAutoConvergenceEnable = urlautoconvergenceenable
304
+ @UrlLongSegmentThreshold = urllongsegmentthreshold
305
+ @UrlNumberSegmentThreshold = urlnumbersegmentthreshold
306
+ @DisableMemoryUsed = disablememoryused
307
+ @DisableCpuUsed = disablecpuused
308
+ end
309
+
310
+ def deserialize(params)
311
+ @InstanceKey = params['InstanceKey']
312
+ @ServiceName = params['ServiceName']
313
+ @UrlConvergenceSwitch = params['UrlConvergenceSwitch']
314
+ @UrlConvergenceThreshold = params['UrlConvergenceThreshold']
315
+ @UrlConvergence = params['UrlConvergence']
316
+ @ExceptionFilter = params['ExceptionFilter']
317
+ @ErrorCodeFilter = params['ErrorCodeFilter']
318
+ @Components = params['Components']
319
+ @UrlExclude = params['UrlExclude']
320
+ @LogSource = params['LogSource']
321
+ @LogRegion = params['LogRegion']
322
+ @IsRelatedLog = params['IsRelatedLog']
323
+ @LogTopicID = params['LogTopicID']
324
+ @IgnoreOperationName = params['IgnoreOperationName']
325
+ @LogSet = params['LogSet']
326
+ @TraceRateLimit = params['TraceRateLimit']
327
+ @EnableSnapshot = params['EnableSnapshot']
328
+ @SnapshotTimeout = params['SnapshotTimeout']
329
+ @AgentEnable = params['AgentEnable']
330
+ unless params['InstrumentList'].nil?
331
+ @InstrumentList = []
332
+ params['InstrumentList'].each do |i|
333
+ instrument_tmp = Instrument.new
334
+ instrument_tmp.deserialize(i)
335
+ @InstrumentList << instrument_tmp
336
+ end
337
+ end
338
+ @TraceSquash = params['TraceSquash']
339
+ @EventEnable = params['EventEnable']
340
+ unless params['AgentOperationConfigView'].nil?
341
+ @AgentOperationConfigView = AgentOperationConfigView.new
342
+ @AgentOperationConfigView.deserialize(params['AgentOperationConfigView'])
343
+ end
344
+ @EnableLogConfig = params['EnableLogConfig']
345
+ @ServiceID = params['ServiceID']
346
+ @EnableDashboardConfig = params['EnableDashboardConfig']
347
+ @IsRelatedDashboard = params['IsRelatedDashboard']
348
+ @DashboardTopicID = params['DashboardTopicID']
349
+ @EnableSecurityConfig = params['EnableSecurityConfig']
350
+ @IsInstrumentationVulnerabilityScan = params['IsInstrumentationVulnerabilityScan']
351
+ @IsSqlInjectionAnalysis = params['IsSqlInjectionAnalysis']
352
+ @IsRemoteCommandExecutionAnalysis = params['IsRemoteCommandExecutionAnalysis']
353
+ @IsMemoryHijackingAnalysis = params['IsMemoryHijackingAnalysis']
354
+ @LogIndexType = params['LogIndexType']
355
+ @LogTraceIdKey = params['LogTraceIdKey']
356
+ @IsDeleteAnyFileAnalysis = params['IsDeleteAnyFileAnalysis']
357
+ @IsReadAnyFileAnalysis = params['IsReadAnyFileAnalysis']
358
+ @IsUploadAnyFileAnalysis = params['IsUploadAnyFileAnalysis']
359
+ @IsIncludeAnyFileAnalysis = params['IsIncludeAnyFileAnalysis']
360
+ @IsDirectoryTraversalAnalysis = params['IsDirectoryTraversalAnalysis']
361
+ @IsTemplateEngineInjectionAnalysis = params['IsTemplateEngineInjectionAnalysis']
362
+ @IsScriptEngineInjectionAnalysis = params['IsScriptEngineInjectionAnalysis']
363
+ @IsExpressionInjectionAnalysis = params['IsExpressionInjectionAnalysis']
364
+ @IsJNDIInjectionAnalysis = params['IsJNDIInjectionAnalysis']
365
+ @IsJNIInjectionAnalysis = params['IsJNIInjectionAnalysis']
366
+ @IsWebshellBackdoorAnalysis = params['IsWebshellBackdoorAnalysis']
367
+ @IsDeserializationAnalysis = params['IsDeserializationAnalysis']
368
+ @UrlAutoConvergenceEnable = params['UrlAutoConvergenceEnable']
369
+ @UrlLongSegmentThreshold = params['UrlLongSegmentThreshold']
370
+ @UrlNumberSegmentThreshold = params['UrlNumberSegmentThreshold']
371
+ @DisableMemoryUsed = params['DisableMemoryUsed']
372
+ @DisableCpuUsed = params['DisableCpuUsed']
373
+ end
374
+ end
375
+
96
376
  # 应用相关的配置列表项
97
377
  class ApmApplicationConfigView < TencentCloud::Common::AbstractModel
98
378
  # @param InstanceKey: 业务系统 ID
@@ -196,6 +476,32 @@ module TencentCloud
196
476
  end
197
477
  end
198
478
 
479
+ # 展示apm业务系统与其他云产品关联关系返回体
480
+ class ApmAssociation < TencentCloud::Common::AbstractModel
481
+ # @param PeerId: 关联产品的实例ID
482
+ # 注意:此字段可能返回 null,表示取不到有效值。
483
+ # @type PeerId: String
484
+ # @param Status: 关联关系状态:1(启用)、2(不启用)、3(已失效)
485
+ # 注意:此字段可能返回 null,表示取不到有效值。
486
+ # @type Status: Integer
487
+ # @param Topic: CKafka消息主题
488
+ # @type Topic: String
489
+
490
+ attr_accessor :PeerId, :Status, :Topic
491
+
492
+ def initialize(peerid=nil, status=nil, topic=nil)
493
+ @PeerId = peerid
494
+ @Status = status
495
+ @Topic = topic
496
+ end
497
+
498
+ def deserialize(params)
499
+ @PeerId = params['PeerId']
500
+ @Status = params['Status']
501
+ @Topic = params['Topic']
502
+ end
503
+ end
504
+
199
505
  # 指标维度信息
200
506
  class ApmField < TencentCloud::Common::AbstractModel
201
507
  # @param Key: 指标名
@@ -539,47 +845,150 @@ module TencentCloud
539
845
  end
540
846
  end
541
847
 
542
- # apm应用指标信息
543
- class ApmServiceMetric < TencentCloud::Common::AbstractModel
544
- # @param Fields: filed数组
848
+ # 展示apm业务系统关联prometheus关系返回体
849
+ class ApmPrometheusRules < TencentCloud::Common::AbstractModel
850
+ # @param Id: 指标匹配规则ID
851
+ # @type Id: Integer
852
+ # @param Name: 指标匹配规则名
545
853
  # 注意:此字段可能返回 null,表示取不到有效值。
546
- # @type Fields: Array
547
- # @param Tags: tag数组
854
+ # @type Name: String
855
+ # @param ServiceName: 规则生效的应用。生效于全部应用就传空字符串
548
856
  # 注意:此字段可能返回 null,表示取不到有效值。
549
- # @type Tags: Array
550
- # @param ServiceDetail: 应用信息
857
+ # @type ServiceName: String
858
+ # @param Status: 指标匹配规则状态:1(启用)、2(不启用)
551
859
  # 注意:此字段可能返回 null,表示取不到有效值。
552
- # @type ServiceDetail: :class:`Tencentcloud::Apm.v20210622.models.ServiceDetail`
860
+ # @type Status: Integer
861
+ # @param MetricNameRule: 指标匹配规则
862
+ # 注意:此字段可能返回 null,表示取不到有效值。
863
+ # @type MetricNameRule: String
864
+ # @param MetricMatchType: 匹配类型:0精准匹配,1前缀匹配,2后缀匹配
865
+ # 注意:此字段可能返回 null,表示取不到有效值。
866
+ # @type MetricMatchType: Integer
553
867
 
554
- attr_accessor :Fields, :Tags, :ServiceDetail
868
+ attr_accessor :Id, :Name, :ServiceName, :Status, :MetricNameRule, :MetricMatchType
555
869
 
556
- def initialize(fields=nil, tags=nil, servicedetail=nil)
557
- @Fields = fields
558
- @Tags = tags
559
- @ServiceDetail = servicedetail
870
+ def initialize(id=nil, name=nil, servicename=nil, status=nil, metricnamerule=nil, metricmatchtype=nil)
871
+ @Id = id
872
+ @Name = name
873
+ @ServiceName = servicename
874
+ @Status = status
875
+ @MetricNameRule = metricnamerule
876
+ @MetricMatchType = metricmatchtype
560
877
  end
561
878
 
562
879
  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
578
- end
579
- unless params['ServiceDetail'].nil?
580
- @ServiceDetail = ServiceDetail.new
581
- @ServiceDetail.deserialize(params['ServiceDetail'])
582
- end
880
+ @Id = params['Id']
881
+ @Name = params['Name']
882
+ @ServiceName = params['ServiceName']
883
+ @Status = params['Status']
884
+ @MetricNameRule = params['MetricNameRule']
885
+ @MetricMatchType = params['MetricMatchType']
886
+ end
887
+ end
888
+
889
+ # 采样配置信息
890
+ class ApmSampleConfig < TencentCloud::Common::AbstractModel
891
+ # @param InstanceKey: 实例ID
892
+ # @type InstanceKey: String
893
+ # @param ServiceName: 服务名
894
+ # @type ServiceName: String
895
+ # @param SampleName: 采样名字
896
+ # @type SampleName: String
897
+ # @param OperationName: 接口名
898
+ # @type OperationName: String
899
+ # @param SpanNum: 采样的span数
900
+ # @type SpanNum: Integer
901
+ # @param Status: 采样配置开关 0 关 1 开
902
+ # @type Status: Integer
903
+ # @param Tags: tags数组
904
+ # 注意:此字段可能返回 null,表示取不到有效值。
905
+ # @type Tags: Array
906
+ # @param SampleRate: 采样率
907
+ # @type SampleRate: Integer
908
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
909
+ # 注意:此字段可能返回 null,表示取不到有效值。
910
+ # @type OperationType: Integer
911
+ # @param Id: 配置Id
912
+ # 注意:此字段可能返回 null,表示取不到有效值。
913
+ # @type Id: Integer
914
+
915
+ attr_accessor :InstanceKey, :ServiceName, :SampleName, :OperationName, :SpanNum, :Status, :Tags, :SampleRate, :OperationType, :Id
916
+
917
+ def initialize(instancekey=nil, servicename=nil, samplename=nil, operationname=nil, spannum=nil, status=nil, tags=nil, samplerate=nil, operationtype=nil, id=nil)
918
+ @InstanceKey = instancekey
919
+ @ServiceName = servicename
920
+ @SampleName = samplename
921
+ @OperationName = operationname
922
+ @SpanNum = spannum
923
+ @Status = status
924
+ @Tags = tags
925
+ @SampleRate = samplerate
926
+ @OperationType = operationtype
927
+ @Id = id
928
+ end
929
+
930
+ def deserialize(params)
931
+ @InstanceKey = params['InstanceKey']
932
+ @ServiceName = params['ServiceName']
933
+ @SampleName = params['SampleName']
934
+ @OperationName = params['OperationName']
935
+ @SpanNum = params['SpanNum']
936
+ @Status = params['Status']
937
+ unless params['Tags'].nil?
938
+ @Tags = []
939
+ params['Tags'].each do |i|
940
+ apmkvitem_tmp = APMKVItem.new
941
+ apmkvitem_tmp.deserialize(i)
942
+ @Tags << apmkvitem_tmp
943
+ end
944
+ end
945
+ @SampleRate = params['SampleRate']
946
+ @OperationType = params['OperationType']
947
+ @Id = params['Id']
948
+ end
949
+ end
950
+
951
+ # apm应用指标信息
952
+ class ApmServiceMetric < TencentCloud::Common::AbstractModel
953
+ # @param Fields: filed数组
954
+ # 注意:此字段可能返回 null,表示取不到有效值。
955
+ # @type Fields: Array
956
+ # @param Tags: tag数组
957
+ # 注意:此字段可能返回 null,表示取不到有效值。
958
+ # @type Tags: Array
959
+ # @param ServiceDetail: 应用信息
960
+ # 注意:此字段可能返回 null,表示取不到有效值。
961
+ # @type ServiceDetail: :class:`Tencentcloud::Apm.v20210622.models.ServiceDetail`
962
+
963
+ attr_accessor :Fields, :Tags, :ServiceDetail
964
+
965
+ def initialize(fields=nil, tags=nil, servicedetail=nil)
966
+ @Fields = fields
967
+ @Tags = tags
968
+ @ServiceDetail = servicedetail
969
+ end
970
+
971
+ def deserialize(params)
972
+ unless params['Fields'].nil?
973
+ @Fields = []
974
+ params['Fields'].each do |i|
975
+ apmfield_tmp = ApmField.new
976
+ apmfield_tmp.deserialize(i)
977
+ @Fields << apmfield_tmp
978
+ end
979
+ end
980
+ unless params['Tags'].nil?
981
+ @Tags = []
982
+ params['Tags'].each do |i|
983
+ apmtag_tmp = ApmTag.new
984
+ apmtag_tmp.deserialize(i)
985
+ @Tags << apmtag_tmp
986
+ end
987
+ end
988
+ unless params['ServiceDetail'].nil?
989
+ @ServiceDetail = ServiceDetail.new
990
+ @ServiceDetail.deserialize(params['ServiceDetail'])
991
+ end
583
992
  end
584
993
  end
585
994
 
@@ -670,6 +1079,124 @@ module TencentCloud
670
1079
  end
671
1080
  end
672
1081
 
1082
+ # CreateApmPrometheusRule请求参数结构体
1083
+ class CreateApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
1084
+ # @param Name: 指标匹配规则名
1085
+ # @type Name: String
1086
+ # @param ServiceName: 规则生效的应用。作用全部应用就传空字符串
1087
+ # @type ServiceName: String
1088
+ # @param MetricMatchType: 指标匹配类型:0精准匹配,1前缀匹配,2后缀匹配
1089
+ # @type MetricMatchType: Integer
1090
+ # @param MetricNameRule: 客户定义的命中指标名规则。
1091
+ # @type MetricNameRule: String
1092
+ # @param InstanceId: 业务系统ID
1093
+ # @type InstanceId: String
1094
+
1095
+ attr_accessor :Name, :ServiceName, :MetricMatchType, :MetricNameRule, :InstanceId
1096
+
1097
+ def initialize(name=nil, servicename=nil, metricmatchtype=nil, metricnamerule=nil, instanceid=nil)
1098
+ @Name = name
1099
+ @ServiceName = servicename
1100
+ @MetricMatchType = metricmatchtype
1101
+ @MetricNameRule = metricnamerule
1102
+ @InstanceId = instanceid
1103
+ end
1104
+
1105
+ def deserialize(params)
1106
+ @Name = params['Name']
1107
+ @ServiceName = params['ServiceName']
1108
+ @MetricMatchType = params['MetricMatchType']
1109
+ @MetricNameRule = params['MetricNameRule']
1110
+ @InstanceId = params['InstanceId']
1111
+ end
1112
+ end
1113
+
1114
+ # CreateApmPrometheusRule返回参数结构体
1115
+ class CreateApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
1116
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1117
+ # @type RequestId: String
1118
+
1119
+ attr_accessor :RequestId
1120
+
1121
+ def initialize(requestid=nil)
1122
+ @RequestId = requestid
1123
+ end
1124
+
1125
+ def deserialize(params)
1126
+ @RequestId = params['RequestId']
1127
+ end
1128
+ end
1129
+
1130
+ # CreateApmSampleConfig请求参数结构体
1131
+ class CreateApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1132
+ # @param InstanceId: 业务系统ID
1133
+ # @type InstanceId: String
1134
+ # @param SampleRate: 采样率
1135
+ # @type SampleRate: Integer
1136
+ # @param ServiceName: 应用名
1137
+ # @type ServiceName: String
1138
+ # @param SampleName: 采样规则名
1139
+ # @type SampleName: String
1140
+ # @param Tags: 采样Tags
1141
+ # @type Tags: Array
1142
+ # @param OperationName: 接口名
1143
+ # @type OperationName: String
1144
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
1145
+ # @type OperationType: Integer
1146
+
1147
+ attr_accessor :InstanceId, :SampleRate, :ServiceName, :SampleName, :Tags, :OperationName, :OperationType
1148
+
1149
+ def initialize(instanceid=nil, samplerate=nil, servicename=nil, samplename=nil, tags=nil, operationname=nil, operationtype=nil)
1150
+ @InstanceId = instanceid
1151
+ @SampleRate = samplerate
1152
+ @ServiceName = servicename
1153
+ @SampleName = samplename
1154
+ @Tags = tags
1155
+ @OperationName = operationname
1156
+ @OperationType = operationtype
1157
+ end
1158
+
1159
+ def deserialize(params)
1160
+ @InstanceId = params['InstanceId']
1161
+ @SampleRate = params['SampleRate']
1162
+ @ServiceName = params['ServiceName']
1163
+ @SampleName = params['SampleName']
1164
+ unless params['Tags'].nil?
1165
+ @Tags = []
1166
+ params['Tags'].each do |i|
1167
+ apmkvitem_tmp = APMKVItem.new
1168
+ apmkvitem_tmp.deserialize(i)
1169
+ @Tags << apmkvitem_tmp
1170
+ end
1171
+ end
1172
+ @OperationName = params['OperationName']
1173
+ @OperationType = params['OperationType']
1174
+ end
1175
+ end
1176
+
1177
+ # CreateApmSampleConfig返回参数结构体
1178
+ class CreateApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1179
+ # @param ApmSampleConfig: 采样配置参数
1180
+ # @type ApmSampleConfig: :class:`Tencentcloud::Apm.v20210622.models.ApmSampleConfig`
1181
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1182
+ # @type RequestId: String
1183
+
1184
+ attr_accessor :ApmSampleConfig, :RequestId
1185
+
1186
+ def initialize(apmsampleconfig=nil, requestid=nil)
1187
+ @ApmSampleConfig = apmsampleconfig
1188
+ @RequestId = requestid
1189
+ end
1190
+
1191
+ def deserialize(params)
1192
+ unless params['ApmSampleConfig'].nil?
1193
+ @ApmSampleConfig = ApmSampleConfig.new
1194
+ @ApmSampleConfig.deserialize(params['ApmSampleConfig'])
1195
+ end
1196
+ @RequestId = params['RequestId']
1197
+ end
1198
+ end
1199
+
673
1200
  # CreateProfileTask请求参数结构体
674
1201
  class CreateProfileTaskRequest < TencentCloud::Common::AbstractModel
675
1202
  # @param ServiceName: 应用名称
@@ -734,6 +1261,42 @@ module TencentCloud
734
1261
  end
735
1262
  end
736
1263
 
1264
+ # DeleteApmSampleConfig请求参数结构体
1265
+ class DeleteApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1266
+ # @param InstanceId: 业务系统ID
1267
+ # @type InstanceId: String
1268
+ # @param SampleName: 采样规则名
1269
+ # @type SampleName: String
1270
+
1271
+ attr_accessor :InstanceId, :SampleName
1272
+
1273
+ def initialize(instanceid=nil, samplename=nil)
1274
+ @InstanceId = instanceid
1275
+ @SampleName = samplename
1276
+ end
1277
+
1278
+ def deserialize(params)
1279
+ @InstanceId = params['InstanceId']
1280
+ @SampleName = params['SampleName']
1281
+ end
1282
+ end
1283
+
1284
+ # DeleteApmSampleConfig返回参数结构体
1285
+ class DeleteApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1286
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1287
+ # @type RequestId: String
1288
+
1289
+ attr_accessor :RequestId
1290
+
1291
+ def initialize(requestid=nil)
1292
+ @RequestId = requestid
1293
+ end
1294
+
1295
+ def deserialize(params)
1296
+ @RequestId = params['RequestId']
1297
+ end
1298
+ end
1299
+
737
1300
  # DescribeApmAgent请求参数结构体
738
1301
  class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
739
1302
  # @param InstanceId: 业务系统 ID
@@ -789,6 +1352,93 @@ module TencentCloud
789
1352
  end
790
1353
  end
791
1354
 
1355
+ # DescribeApmApplicationConfig请求参数结构体
1356
+ class DescribeApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
1357
+ # @param InstanceId: 实例ID
1358
+ # @type InstanceId: String
1359
+ # @param ServiceName: 服务名称
1360
+ # @type ServiceName: String
1361
+
1362
+ attr_accessor :InstanceId, :ServiceName
1363
+
1364
+ def initialize(instanceid=nil, servicename=nil)
1365
+ @InstanceId = instanceid
1366
+ @ServiceName = servicename
1367
+ end
1368
+
1369
+ def deserialize(params)
1370
+ @InstanceId = params['InstanceId']
1371
+ @ServiceName = params['ServiceName']
1372
+ end
1373
+ end
1374
+
1375
+ # DescribeApmApplicationConfig返回参数结构体
1376
+ class DescribeApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
1377
+ # @param ApmAppConfig: Apm应用配置
1378
+ # 注意:此字段可能返回 null,表示取不到有效值。
1379
+ # @type ApmAppConfig: :class:`Tencentcloud::Apm.v20210622.models.ApmAppConfig`
1380
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1381
+ # @type RequestId: String
1382
+
1383
+ attr_accessor :ApmAppConfig, :RequestId
1384
+
1385
+ def initialize(apmappconfig=nil, requestid=nil)
1386
+ @ApmAppConfig = apmappconfig
1387
+ @RequestId = requestid
1388
+ end
1389
+
1390
+ def deserialize(params)
1391
+ unless params['ApmAppConfig'].nil?
1392
+ @ApmAppConfig = ApmAppConfig.new
1393
+ @ApmAppConfig.deserialize(params['ApmAppConfig'])
1394
+ end
1395
+ @RequestId = params['RequestId']
1396
+ end
1397
+ end
1398
+
1399
+ # DescribeApmAssociation请求参数结构体
1400
+ class DescribeApmAssociationRequest < TencentCloud::Common::AbstractModel
1401
+ # @param ProductName: 关联的产品名,当前只支持Prometheus
1402
+ # @type ProductName: String
1403
+ # @param InstanceId: 业务系统名
1404
+ # @type InstanceId: String
1405
+
1406
+ attr_accessor :ProductName, :InstanceId
1407
+
1408
+ def initialize(productname=nil, instanceid=nil)
1409
+ @ProductName = productname
1410
+ @InstanceId = instanceid
1411
+ end
1412
+
1413
+ def deserialize(params)
1414
+ @ProductName = params['ProductName']
1415
+ @InstanceId = params['InstanceId']
1416
+ end
1417
+ end
1418
+
1419
+ # DescribeApmAssociation返回参数结构体
1420
+ class DescribeApmAssociationResponse < TencentCloud::Common::AbstractModel
1421
+ # @param ApmAssociation: 关联的产品实例ID
1422
+ # @type ApmAssociation: :class:`Tencentcloud::Apm.v20210622.models.ApmAssociation`
1423
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1424
+ # @type RequestId: String
1425
+
1426
+ attr_accessor :ApmAssociation, :RequestId
1427
+
1428
+ def initialize(apmassociation=nil, requestid=nil)
1429
+ @ApmAssociation = apmassociation
1430
+ @RequestId = requestid
1431
+ end
1432
+
1433
+ def deserialize(params)
1434
+ unless params['ApmAssociation'].nil?
1435
+ @ApmAssociation = ApmAssociation.new
1436
+ @ApmAssociation.deserialize(params['ApmAssociation'])
1437
+ end
1438
+ @RequestId = params['RequestId']
1439
+ end
1440
+ end
1441
+
792
1442
  # DescribeApmInstances请求参数结构体
793
1443
  class DescribeApmInstancesRequest < TencentCloud::Common::AbstractModel
794
1444
  # @param Tags: Tag 列表
@@ -859,31 +1509,122 @@ module TencentCloud
859
1509
  end
860
1510
  end
861
1511
 
862
- # DescribeApmServiceMetric请求参数结构体
863
- class DescribeApmServiceMetricRequest < TencentCloud::Common::AbstractModel
1512
+ # DescribeApmPrometheusRule请求参数结构体
1513
+ class DescribeApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
864
1514
  # @param InstanceId: 业务系统ID
865
1515
  # @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: 过滤条件
1516
+
1517
+ attr_accessor :InstanceId
1518
+
1519
+ def initialize(instanceid=nil)
1520
+ @InstanceId = instanceid
1521
+ end
1522
+
1523
+ def deserialize(params)
1524
+ @InstanceId = params['InstanceId']
1525
+ end
1526
+ end
1527
+
1528
+ # DescribeApmPrometheusRule返回参数结构体
1529
+ class DescribeApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
1530
+ # @param ApmPrometheusRules: 指标匹配规则
1531
+ # @type ApmPrometheusRules: Array
1532
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1533
+ # @type RequestId: String
1534
+
1535
+ attr_accessor :ApmPrometheusRules, :RequestId
1536
+
1537
+ def initialize(apmprometheusrules=nil, requestid=nil)
1538
+ @ApmPrometheusRules = apmprometheusrules
1539
+ @RequestId = requestid
1540
+ end
1541
+
1542
+ def deserialize(params)
1543
+ unless params['ApmPrometheusRules'].nil?
1544
+ @ApmPrometheusRules = []
1545
+ params['ApmPrometheusRules'].each do |i|
1546
+ apmprometheusrules_tmp = ApmPrometheusRules.new
1547
+ apmprometheusrules_tmp.deserialize(i)
1548
+ @ApmPrometheusRules << apmprometheusrules_tmp
1549
+ end
1550
+ end
1551
+ @RequestId = params['RequestId']
1552
+ end
1553
+ end
1554
+
1555
+ # DescribeApmSampleConfig请求参数结构体
1556
+ class DescribeApmSampleConfigRequest < TencentCloud::Common::AbstractModel
1557
+ # @param InstanceId: 业务系统ID
1558
+ # @type InstanceId: String
1559
+ # @param SampleName: 采样规则名
1560
+ # @type SampleName: String
1561
+
1562
+ attr_accessor :InstanceId, :SampleName
1563
+
1564
+ def initialize(instanceid=nil, samplename=nil)
1565
+ @InstanceId = instanceid
1566
+ @SampleName = samplename
1567
+ end
1568
+
1569
+ def deserialize(params)
1570
+ @InstanceId = params['InstanceId']
1571
+ @SampleName = params['SampleName']
1572
+ end
1573
+ end
1574
+
1575
+ # DescribeApmSampleConfig返回参数结构体
1576
+ class DescribeApmSampleConfigResponse < TencentCloud::Common::AbstractModel
1577
+ # @param ApmSampleConfigs: 采样配置列表
1578
+ # 注意:此字段可能返回 null,表示取不到有效值。
1579
+ # @type ApmSampleConfigs: Array
1580
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1581
+ # @type RequestId: String
1582
+
1583
+ attr_accessor :ApmSampleConfigs, :RequestId
1584
+
1585
+ def initialize(apmsampleconfigs=nil, requestid=nil)
1586
+ @ApmSampleConfigs = apmsampleconfigs
1587
+ @RequestId = requestid
1588
+ end
1589
+
1590
+ def deserialize(params)
1591
+ unless params['ApmSampleConfigs'].nil?
1592
+ @ApmSampleConfigs = []
1593
+ params['ApmSampleConfigs'].each do |i|
1594
+ apmsampleconfig_tmp = ApmSampleConfig.new
1595
+ apmsampleconfig_tmp.deserialize(i)
1596
+ @ApmSampleConfigs << apmsampleconfig_tmp
1597
+ end
1598
+ end
1599
+ @RequestId = params['RequestId']
1600
+ end
1601
+ end
1602
+
1603
+ # DescribeApmServiceMetric请求参数结构体
1604
+ class DescribeApmServiceMetricRequest < TencentCloud::Common::AbstractModel
1605
+ # @param InstanceId: 业务系统ID
1606
+ # @type InstanceId: String
1607
+ # @param ServiceName: 应用名
1608
+ # @type ServiceName: String
1609
+ # @param ServiceID: 应用ID
1610
+ # @type ServiceID: String
1611
+ # @param StartTime: 开始时间
1612
+ # @type StartTime: Integer
1613
+ # @param EndTime: 结束时间
1614
+ # @type EndTime: Integer
1615
+ # @param OrderBy: 排序
1616
+ # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
1617
+ # @param Demo: 是否demo模式
1618
+ # @type Demo: Boolean
1619
+ # @param ServiceStatus: 应用状态筛选,可枚举的值为:health、warning、error。如果选中多个状态用逗号隔开,例如:"warning,error"
1620
+ # @type ServiceStatus: String
1621
+ # @param Tags: 标签列表
1622
+ # @type Tags: Array
1623
+ # @param Page: 页码
1624
+ # @type Page: Integer
1625
+ # @param PageSize: 页大小
1626
+ # @type PageSize: Integer
1627
+ # @param Filters: 过滤条件
887
1628
  # @type Filters: Array
888
1629
 
889
1630
  attr_accessor :InstanceId, :ServiceName, :ServiceID, :StartTime, :EndTime, :OrderBy, :Demo, :ServiceStatus, :Tags, :Page, :PageSize, :Filters
@@ -1727,6 +2468,288 @@ module TencentCloud
1727
2468
  end
1728
2469
  end
1729
2470
 
2471
+ # ModifyApmApplicationConfig请求参数结构体
2472
+ class ModifyApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
2473
+ # @param InstanceId: 业务系统 ID
2474
+ # @type InstanceId: String
2475
+ # @param ServiceName: 应用名
2476
+ # @type ServiceName: String
2477
+ # @param UrlConvergenceSwitch: URL收敛开关,0 关 | 1 开
2478
+ # @type UrlConvergenceSwitch: Integer
2479
+ # @param UrlConvergenceThreshold: URL收敛阈值
2480
+ # @type UrlConvergenceThreshold: Integer
2481
+ # @param ExceptionFilter: 异常过滤正则规则,逗号分隔
2482
+ # @type ExceptionFilter: String
2483
+ # @param UrlConvergence: URL收敛正则规则,逗号分隔
2484
+ # @type UrlConvergence: String
2485
+ # @param ErrorCodeFilter: 错误码过滤,逗号分隔
2486
+ # @type ErrorCodeFilter: String
2487
+ # @param UrlExclude: URL排除正则规则,逗号分隔
2488
+ # @type UrlExclude: String
2489
+ # @param IsRelatedLog: 日志开关 0 关 1 开
2490
+ # @type IsRelatedLog: Integer
2491
+ # @param LogRegion: 日志地域
2492
+ # @type LogRegion: String
2493
+ # @param LogTopicID: 日志主题ID
2494
+ # @type LogTopicID: String
2495
+ # @param LogSet: CLS 日志集 | ES 集群ID
2496
+ # @type LogSet: String
2497
+ # @param LogSource: 日志来源 CLS | ES
2498
+ # @type LogSource: String
2499
+ # @param IgnoreOperationName: 需过滤的接口
2500
+ # @type IgnoreOperationName: String
2501
+ # @param EnableSnapshot: 是否开启线程剖析
2502
+ # @type EnableSnapshot: Boolean
2503
+ # @param SnapshotTimeout: 线程剖析超时阈值
2504
+ # @type SnapshotTimeout: Integer
2505
+ # @param AgentEnable: 是否开启agent
2506
+ # @type AgentEnable: Boolean
2507
+ # @param TraceSquash: 是否开启链路压缩
2508
+ # @type TraceSquash: Boolean
2509
+ # @param EventEnable: 是否开启应用诊断的开关
2510
+ # @type EventEnable: Boolean
2511
+ # @param InstrumentList: 组件列表
2512
+ # @type InstrumentList: Array
2513
+ # @param AgentOperationConfigView: 探针接口相关配置
2514
+ # @type AgentOperationConfigView: :class:`Tencentcloud::Apm.v20210622.models.AgentOperationConfigView`
2515
+ # @param EnableLogConfig: 是否开启应用日志配置
2516
+ # @type EnableLogConfig: Boolean
2517
+ # @param EnableDashboardConfig: 应用是否开启dashboard配置: false 关(与业务系统保持一致)/true 开(应用级配置)
2518
+ # @type EnableDashboardConfig: Boolean
2519
+ # @param IsRelatedDashboard: 是否关联dashboard: 0 关 1 开
2520
+ # @type IsRelatedDashboard: Integer
2521
+ # @param DashboardTopicID: dashboard ID
2522
+ # @type DashboardTopicID: String
2523
+ # @param LogIndexType: CLS索引类型(0=全文索引,1=键值索引)
2524
+ # @type LogIndexType: Integer
2525
+ # @param LogTraceIdKey: traceId的索引key: 当CLS索引类型为键值索引时生效
2526
+ # @type LogTraceIdKey: String
2527
+ # @param EnableSecurityConfig: 是否开启应用安全配置
2528
+ # @type EnableSecurityConfig: Boolean
2529
+ # @param IsSqlInjectionAnalysis: 是否开启SQL注入分析
2530
+ # @type IsSqlInjectionAnalysis: Integer
2531
+ # @param IsInstrumentationVulnerabilityScan: 是否开启组件漏洞检测
2532
+ # @type IsInstrumentationVulnerabilityScan: Integer
2533
+ # @param IsRemoteCommandExecutionAnalysis: 是否开启远程命令检测
2534
+ # @type IsRemoteCommandExecutionAnalysis: Integer
2535
+ # @param IsMemoryHijackingAnalysis: 是否开启内存马检测
2536
+ # @type IsMemoryHijackingAnalysis: Integer
2537
+ # @param IsDeleteAnyFileAnalysis: 是否开启删除任意文件检测(0-关闭,1-开启)
2538
+ # @type IsDeleteAnyFileAnalysis: Integer
2539
+ # @param IsReadAnyFileAnalysis: 是否开启读取任意文件检测(0-关闭,1-开启)
2540
+ # @type IsReadAnyFileAnalysis: Integer
2541
+ # @param IsUploadAnyFileAnalysis: 是否开启上传任意文件检测(0-关闭,1-开启)
2542
+ # @type IsUploadAnyFileAnalysis: Integer
2543
+ # @param IsIncludeAnyFileAnalysis: 是否开启包含任意文件检测(0-关闭,1-开启)
2544
+ # @type IsIncludeAnyFileAnalysis: Integer
2545
+ # @param IsDirectoryTraversalAnalysis: 是否开启目录遍历检测(0-关闭,1-开启)
2546
+ # @type IsDirectoryTraversalAnalysis: Integer
2547
+ # @param IsTemplateEngineInjectionAnalysis: 是否开启模板引擎注入检测(0-关闭,1-开启)
2548
+ # @type IsTemplateEngineInjectionAnalysis: Integer
2549
+ # @param IsScriptEngineInjectionAnalysis: 是否开启脚本引擎注入检测(0-关闭,1-开启)
2550
+ # @type IsScriptEngineInjectionAnalysis: Integer
2551
+ # @param IsExpressionInjectionAnalysis: 是否开启表达式注入检测(0-关闭,1-开启)
2552
+ # @type IsExpressionInjectionAnalysis: Integer
2553
+ # @param IsJNDIInjectionAnalysis: 是否开启JNDI注入检测(0-关闭,1-开启)
2554
+ # @type IsJNDIInjectionAnalysis: Integer
2555
+ # @param IsJNIInjectionAnalysis: 是否开启JNI注入检测(0-关闭,1-开启)
2556
+ # @type IsJNIInjectionAnalysis: Integer
2557
+ # @param IsWebshellBackdoorAnalysis: 是否开启Webshell后门检测(0-关闭,1-开启)
2558
+ # @type IsWebshellBackdoorAnalysis: Integer
2559
+ # @param IsDeserializationAnalysis: 是否开启反序列化检测(0-关闭,1-开启)
2560
+ # @type IsDeserializationAnalysis: Integer
2561
+ # @param UrlAutoConvergenceEnable: 接口自动收敛开关,0 关 | 1 开
2562
+ # @type UrlAutoConvergenceEnable: Boolean
2563
+ # @param UrlLongSegmentThreshold: URL长分段收敛阈值
2564
+ # @type UrlLongSegmentThreshold: Integer
2565
+ # @param UrlNumberSegmentThreshold: URL数字分段收敛阈值
2566
+ # @type UrlNumberSegmentThreshold: Integer
2567
+ # @param DisableMemoryUsed: 探针熔断内存阈值
2568
+ # @type DisableMemoryUsed: Integer
2569
+ # @param DisableCpuUsed: 探针熔断CPU阈值
2570
+ # @type DisableCpuUsed: Integer
2571
+
2572
+ 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
2573
+
2574
+ 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)
2575
+ @InstanceId = instanceid
2576
+ @ServiceName = servicename
2577
+ @UrlConvergenceSwitch = urlconvergenceswitch
2578
+ @UrlConvergenceThreshold = urlconvergencethreshold
2579
+ @ExceptionFilter = exceptionfilter
2580
+ @UrlConvergence = urlconvergence
2581
+ @ErrorCodeFilter = errorcodefilter
2582
+ @UrlExclude = urlexclude
2583
+ @IsRelatedLog = isrelatedlog
2584
+ @LogRegion = logregion
2585
+ @LogTopicID = logtopicid
2586
+ @LogSet = logset
2587
+ @LogSource = logsource
2588
+ @IgnoreOperationName = ignoreoperationname
2589
+ @EnableSnapshot = enablesnapshot
2590
+ @SnapshotTimeout = snapshottimeout
2591
+ @AgentEnable = agentenable
2592
+ @TraceSquash = tracesquash
2593
+ @EventEnable = eventenable
2594
+ @InstrumentList = instrumentlist
2595
+ @AgentOperationConfigView = agentoperationconfigview
2596
+ @EnableLogConfig = enablelogconfig
2597
+ @EnableDashboardConfig = enabledashboardconfig
2598
+ @IsRelatedDashboard = isrelateddashboard
2599
+ @DashboardTopicID = dashboardtopicid
2600
+ @LogIndexType = logindextype
2601
+ @LogTraceIdKey = logtraceidkey
2602
+ @EnableSecurityConfig = enablesecurityconfig
2603
+ @IsSqlInjectionAnalysis = issqlinjectionanalysis
2604
+ @IsInstrumentationVulnerabilityScan = isinstrumentationvulnerabilityscan
2605
+ @IsRemoteCommandExecutionAnalysis = isremotecommandexecutionanalysis
2606
+ @IsMemoryHijackingAnalysis = ismemoryhijackinganalysis
2607
+ @IsDeleteAnyFileAnalysis = isdeleteanyfileanalysis
2608
+ @IsReadAnyFileAnalysis = isreadanyfileanalysis
2609
+ @IsUploadAnyFileAnalysis = isuploadanyfileanalysis
2610
+ @IsIncludeAnyFileAnalysis = isincludeanyfileanalysis
2611
+ @IsDirectoryTraversalAnalysis = isdirectorytraversalanalysis
2612
+ @IsTemplateEngineInjectionAnalysis = istemplateengineinjectionanalysis
2613
+ @IsScriptEngineInjectionAnalysis = isscriptengineinjectionanalysis
2614
+ @IsExpressionInjectionAnalysis = isexpressioninjectionanalysis
2615
+ @IsJNDIInjectionAnalysis = isjndiinjectionanalysis
2616
+ @IsJNIInjectionAnalysis = isjniinjectionanalysis
2617
+ @IsWebshellBackdoorAnalysis = iswebshellbackdooranalysis
2618
+ @IsDeserializationAnalysis = isdeserializationanalysis
2619
+ @UrlAutoConvergenceEnable = urlautoconvergenceenable
2620
+ @UrlLongSegmentThreshold = urllongsegmentthreshold
2621
+ @UrlNumberSegmentThreshold = urlnumbersegmentthreshold
2622
+ @DisableMemoryUsed = disablememoryused
2623
+ @DisableCpuUsed = disablecpuused
2624
+ end
2625
+
2626
+ def deserialize(params)
2627
+ @InstanceId = params['InstanceId']
2628
+ @ServiceName = params['ServiceName']
2629
+ @UrlConvergenceSwitch = params['UrlConvergenceSwitch']
2630
+ @UrlConvergenceThreshold = params['UrlConvergenceThreshold']
2631
+ @ExceptionFilter = params['ExceptionFilter']
2632
+ @UrlConvergence = params['UrlConvergence']
2633
+ @ErrorCodeFilter = params['ErrorCodeFilter']
2634
+ @UrlExclude = params['UrlExclude']
2635
+ @IsRelatedLog = params['IsRelatedLog']
2636
+ @LogRegion = params['LogRegion']
2637
+ @LogTopicID = params['LogTopicID']
2638
+ @LogSet = params['LogSet']
2639
+ @LogSource = params['LogSource']
2640
+ @IgnoreOperationName = params['IgnoreOperationName']
2641
+ @EnableSnapshot = params['EnableSnapshot']
2642
+ @SnapshotTimeout = params['SnapshotTimeout']
2643
+ @AgentEnable = params['AgentEnable']
2644
+ @TraceSquash = params['TraceSquash']
2645
+ @EventEnable = params['EventEnable']
2646
+ unless params['InstrumentList'].nil?
2647
+ @InstrumentList = []
2648
+ params['InstrumentList'].each do |i|
2649
+ instrument_tmp = Instrument.new
2650
+ instrument_tmp.deserialize(i)
2651
+ @InstrumentList << instrument_tmp
2652
+ end
2653
+ end
2654
+ unless params['AgentOperationConfigView'].nil?
2655
+ @AgentOperationConfigView = AgentOperationConfigView.new
2656
+ @AgentOperationConfigView.deserialize(params['AgentOperationConfigView'])
2657
+ end
2658
+ @EnableLogConfig = params['EnableLogConfig']
2659
+ @EnableDashboardConfig = params['EnableDashboardConfig']
2660
+ @IsRelatedDashboard = params['IsRelatedDashboard']
2661
+ @DashboardTopicID = params['DashboardTopicID']
2662
+ @LogIndexType = params['LogIndexType']
2663
+ @LogTraceIdKey = params['LogTraceIdKey']
2664
+ @EnableSecurityConfig = params['EnableSecurityConfig']
2665
+ @IsSqlInjectionAnalysis = params['IsSqlInjectionAnalysis']
2666
+ @IsInstrumentationVulnerabilityScan = params['IsInstrumentationVulnerabilityScan']
2667
+ @IsRemoteCommandExecutionAnalysis = params['IsRemoteCommandExecutionAnalysis']
2668
+ @IsMemoryHijackingAnalysis = params['IsMemoryHijackingAnalysis']
2669
+ @IsDeleteAnyFileAnalysis = params['IsDeleteAnyFileAnalysis']
2670
+ @IsReadAnyFileAnalysis = params['IsReadAnyFileAnalysis']
2671
+ @IsUploadAnyFileAnalysis = params['IsUploadAnyFileAnalysis']
2672
+ @IsIncludeAnyFileAnalysis = params['IsIncludeAnyFileAnalysis']
2673
+ @IsDirectoryTraversalAnalysis = params['IsDirectoryTraversalAnalysis']
2674
+ @IsTemplateEngineInjectionAnalysis = params['IsTemplateEngineInjectionAnalysis']
2675
+ @IsScriptEngineInjectionAnalysis = params['IsScriptEngineInjectionAnalysis']
2676
+ @IsExpressionInjectionAnalysis = params['IsExpressionInjectionAnalysis']
2677
+ @IsJNDIInjectionAnalysis = params['IsJNDIInjectionAnalysis']
2678
+ @IsJNIInjectionAnalysis = params['IsJNIInjectionAnalysis']
2679
+ @IsWebshellBackdoorAnalysis = params['IsWebshellBackdoorAnalysis']
2680
+ @IsDeserializationAnalysis = params['IsDeserializationAnalysis']
2681
+ @UrlAutoConvergenceEnable = params['UrlAutoConvergenceEnable']
2682
+ @UrlLongSegmentThreshold = params['UrlLongSegmentThreshold']
2683
+ @UrlNumberSegmentThreshold = params['UrlNumberSegmentThreshold']
2684
+ @DisableMemoryUsed = params['DisableMemoryUsed']
2685
+ @DisableCpuUsed = params['DisableCpuUsed']
2686
+ end
2687
+ end
2688
+
2689
+ # ModifyApmApplicationConfig返回参数结构体
2690
+ class ModifyApmApplicationConfigResponse < TencentCloud::Common::AbstractModel
2691
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2692
+ # @type RequestId: String
2693
+
2694
+ attr_accessor :RequestId
2695
+
2696
+ def initialize(requestid=nil)
2697
+ @RequestId = requestid
2698
+ end
2699
+
2700
+ def deserialize(params)
2701
+ @RequestId = params['RequestId']
2702
+ end
2703
+ end
2704
+
2705
+ # ModifyApmAssociation请求参数结构体
2706
+ class ModifyApmAssociationRequest < TencentCloud::Common::AbstractModel
2707
+ # @param ProductName: 关联的产品名,当前只支持Prometheus
2708
+ # @type ProductName: String
2709
+ # @param Status: 关联关系的状态:// 关联关系状态:1(启用)、2(不启用)、4(已删除)
2710
+ # @type Status: Integer
2711
+ # @param InstanceId: 业务系统ID
2712
+ # @type InstanceId: String
2713
+ # @param PeerId: 关联的产品实例ID
2714
+ # @type PeerId: String
2715
+ # @param Topic: CKafka消息主题
2716
+ # @type Topic: String
2717
+
2718
+ attr_accessor :ProductName, :Status, :InstanceId, :PeerId, :Topic
2719
+
2720
+ def initialize(productname=nil, status=nil, instanceid=nil, peerid=nil, topic=nil)
2721
+ @ProductName = productname
2722
+ @Status = status
2723
+ @InstanceId = instanceid
2724
+ @PeerId = peerid
2725
+ @Topic = topic
2726
+ end
2727
+
2728
+ def deserialize(params)
2729
+ @ProductName = params['ProductName']
2730
+ @Status = params['Status']
2731
+ @InstanceId = params['InstanceId']
2732
+ @PeerId = params['PeerId']
2733
+ @Topic = params['Topic']
2734
+ end
2735
+ end
2736
+
2737
+ # ModifyApmAssociation返回参数结构体
2738
+ class ModifyApmAssociationResponse < TencentCloud::Common::AbstractModel
2739
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2740
+ # @type RequestId: String
2741
+
2742
+ attr_accessor :RequestId
2743
+
2744
+ def initialize(requestid=nil)
2745
+ @RequestId = requestid
2746
+ end
2747
+
2748
+ def deserialize(params)
2749
+ @RequestId = params['RequestId']
2750
+ end
2751
+ end
2752
+
1730
2753
  # ModifyApmInstance请求参数结构体
1731
2754
  class ModifyApmInstanceRequest < TencentCloud::Common::AbstractModel
1732
2755
  # @param InstanceId: 业务系统 ID
@@ -1930,6 +2953,133 @@ module TencentCloud
1930
2953
  end
1931
2954
  end
1932
2955
 
2956
+ # ModifyApmPrometheusRule请求参数结构体
2957
+ class ModifyApmPrometheusRuleRequest < TencentCloud::Common::AbstractModel
2958
+ # @param Id: 规则ID
2959
+ # @type Id: Integer
2960
+ # @param InstanceId: 业务系统ID
2961
+ # @type InstanceId: String
2962
+ # @param Name: 所要修改的规则名
2963
+ # @type Name: String
2964
+ # @param Status: 规则状态:1(启用)、2(不启用)、3(删除)
2965
+ # @type Status: Integer
2966
+ # @param ServiceName: 规则生效的应用。生效于全部应用就传空(这个如果不修改也要传旧的规则)
2967
+ # @type ServiceName: String
2968
+ # @param MetricMatchType: 匹配类型:0精准匹配,1前缀匹配,2后缀匹配(这个如果不修改也要传旧的规则)
2969
+ # @type MetricMatchType: Integer
2970
+ # @param MetricNameRule: 客户定义的命中指标名规则。
2971
+ # @type MetricNameRule: String
2972
+
2973
+ attr_accessor :Id, :InstanceId, :Name, :Status, :ServiceName, :MetricMatchType, :MetricNameRule
2974
+
2975
+ def initialize(id=nil, instanceid=nil, name=nil, status=nil, servicename=nil, metricmatchtype=nil, metricnamerule=nil)
2976
+ @Id = id
2977
+ @InstanceId = instanceid
2978
+ @Name = name
2979
+ @Status = status
2980
+ @ServiceName = servicename
2981
+ @MetricMatchType = metricmatchtype
2982
+ @MetricNameRule = metricnamerule
2983
+ end
2984
+
2985
+ def deserialize(params)
2986
+ @Id = params['Id']
2987
+ @InstanceId = params['InstanceId']
2988
+ @Name = params['Name']
2989
+ @Status = params['Status']
2990
+ @ServiceName = params['ServiceName']
2991
+ @MetricMatchType = params['MetricMatchType']
2992
+ @MetricNameRule = params['MetricNameRule']
2993
+ end
2994
+ end
2995
+
2996
+ # ModifyApmPrometheusRule返回参数结构体
2997
+ class ModifyApmPrometheusRuleResponse < TencentCloud::Common::AbstractModel
2998
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2999
+ # @type RequestId: String
3000
+
3001
+ attr_accessor :RequestId
3002
+
3003
+ def initialize(requestid=nil)
3004
+ @RequestId = requestid
3005
+ end
3006
+
3007
+ def deserialize(params)
3008
+ @RequestId = params['RequestId']
3009
+ end
3010
+ end
3011
+
3012
+ # ModifyApmSampleConfig请求参数结构体
3013
+ class ModifyApmSampleConfigRequest < TencentCloud::Common::AbstractModel
3014
+ # @param InstanceId: 业务系统ID
3015
+ # @type InstanceId: String
3016
+ # @param SampleName: 采样规则名
3017
+ # @type SampleName: String
3018
+ # @param SampleRate: 采样率
3019
+ # @type SampleRate: Integer
3020
+ # @param ServiceName: 应用名,生效于所有应用则填空
3021
+ # @type ServiceName: String
3022
+ # @param OperationName: 接口名
3023
+ # @type OperationName: String
3024
+ # @param Tags: 采样tag
3025
+ # @type Tags: Array
3026
+ # @param Status: 采样开关 0关 1开 2删除
3027
+ # @type Status: Integer
3028
+ # @param Id: 配置Id
3029
+ # @type Id: Integer
3030
+ # @param OperationType: 0=精确匹配(默认);1=前缀匹配;2=后缀匹配
3031
+ # @type OperationType: Integer
3032
+
3033
+ attr_accessor :InstanceId, :SampleName, :SampleRate, :ServiceName, :OperationName, :Tags, :Status, :Id, :OperationType
3034
+
3035
+ def initialize(instanceid=nil, samplename=nil, samplerate=nil, servicename=nil, operationname=nil, tags=nil, status=nil, id=nil, operationtype=nil)
3036
+ @InstanceId = instanceid
3037
+ @SampleName = samplename
3038
+ @SampleRate = samplerate
3039
+ @ServiceName = servicename
3040
+ @OperationName = operationname
3041
+ @Tags = tags
3042
+ @Status = status
3043
+ @Id = id
3044
+ @OperationType = operationtype
3045
+ end
3046
+
3047
+ def deserialize(params)
3048
+ @InstanceId = params['InstanceId']
3049
+ @SampleName = params['SampleName']
3050
+ @SampleRate = params['SampleRate']
3051
+ @ServiceName = params['ServiceName']
3052
+ @OperationName = params['OperationName']
3053
+ unless params['Tags'].nil?
3054
+ @Tags = []
3055
+ params['Tags'].each do |i|
3056
+ apmkvitem_tmp = APMKVItem.new
3057
+ apmkvitem_tmp.deserialize(i)
3058
+ @Tags << apmkvitem_tmp
3059
+ end
3060
+ end
3061
+ @Status = params['Status']
3062
+ @Id = params['Id']
3063
+ @OperationType = params['OperationType']
3064
+ end
3065
+ end
3066
+
3067
+ # ModifyApmSampleConfig返回参数结构体
3068
+ class ModifyApmSampleConfigResponse < TencentCloud::Common::AbstractModel
3069
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3070
+ # @type RequestId: String
3071
+
3072
+ attr_accessor :RequestId
3073
+
3074
+ def initialize(requestid=nil)
3075
+ @RequestId = requestid
3076
+ end
3077
+
3078
+ def deserialize(params)
3079
+ @RequestId = params['RequestId']
3080
+ end
3081
+ end
3082
+
1933
3083
  # ModifyGeneralApmApplicationConfig请求参数结构体
1934
3084
  class ModifyGeneralApmApplicationConfigRequest < TencentCloud::Common::AbstractModel
1935
3085
  # @param InstanceId: 业务系统Id