Class: TencentCloud::Apm::V20210622::CreateApmSampleConfigRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apm::V20210622::CreateApmSampleConfigRequest
- Defined in:
- lib/v20210622/models.rb
Overview
CreateApmSampleConfig请求参数结构体
Instance Attribute Summary collapse
- #InstanceId ⇒ Object
- #OperationName ⇒ Object
- #OperationType ⇒ Object
- #SampleName ⇒ Object
- #SampleRate ⇒ Object
- #ServiceName ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, samplerate = nil, servicename = nil, samplename = nil, tags = nil, operationname = nil, operationtype = nil) ⇒ CreateApmSampleConfigRequest
constructor
A new instance of CreateApmSampleConfigRequest.
Constructor Details
#initialize(instanceid = nil, samplerate = nil, servicename = nil, samplename = nil, tags = nil, operationname = nil, operationtype = nil) ⇒ CreateApmSampleConfigRequest
Returns a new instance of CreateApmSampleConfigRequest.
1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/v20210622/models.rb', line 1333 def initialize(instanceid=nil, samplerate=nil, servicename=nil, samplename=nil, =nil, operationname=nil, operationtype=nil) @InstanceId = instanceid @SampleRate = samplerate @ServiceName = servicename @SampleName = samplename @Tags = @OperationName = operationname @OperationType = operationtype end |
Instance Attribute Details
#InstanceId ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def InstanceId @InstanceId end |
#OperationName ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def OperationName @OperationName end |
#OperationType ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def OperationType @OperationType end |
#SampleName ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def SampleName @SampleName end |
#SampleRate ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def SampleRate @SampleRate end |
#ServiceName ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def ServiceName @ServiceName end |
#Tags ⇒ Object
1331 1332 1333 |
# File 'lib/v20210622/models.rb', line 1331 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 |
# File 'lib/v20210622/models.rb', line 1343 def deserialize(params) @InstanceId = params['InstanceId'] @SampleRate = params['SampleRate'] @ServiceName = params['ServiceName'] @SampleName = params['SampleName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| apmkvitem_tmp = APMKVItem.new apmkvitem_tmp.deserialize(i) @Tags << apmkvitem_tmp end end @OperationName = params['OperationName'] @OperationType = params['OperationType'] end |