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.
1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'lib/v20210622/models.rb', line 1183 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
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def InstanceId @InstanceId end |
#OperationName ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def OperationName @OperationName end |
#OperationType ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def OperationType @OperationType end |
#SampleName ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def SampleName @SampleName end |
#SampleRate ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def SampleRate @SampleRate end |
#ServiceName ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def ServiceName @ServiceName end |
#Tags ⇒ Object
1181 1182 1183 |
# File 'lib/v20210622/models.rb', line 1181 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'lib/v20210622/models.rb', line 1193 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 |