Class: TencentCloud::Apm::V20210622::Line
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apm::V20210622::Line
- Defined in:
- lib/v20210622/models.rb
Overview
指标曲线数据
Instance Attribute Summary collapse
- #DataSerial ⇒ Object
- #MetricName ⇒ Object
- #MetricNameCN ⇒ Object
- #MetricUnit ⇒ Object
- #Tags ⇒ Object
- #TimeSerial ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(metricname = nil, metricnamecn = nil, timeserial = nil, dataserial = nil, tags = nil, metricunit = nil) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(metricname = nil, metricnamecn = nil, timeserial = nil, dataserial = nil, tags = nil, metricunit = nil) ⇒ Line
Returns a new instance of Line.
3043 3044 3045 3046 3047 3048 3049 3050 |
# File 'lib/v20210622/models.rb', line 3043 def initialize(metricname=nil, metricnamecn=nil, timeserial=nil, dataserial=nil, =nil, metricunit=nil) @MetricName = metricname @MetricNameCN = metricnamecn @TimeSerial = timeserial @DataSerial = dataserial @Tags = @MetricUnit = metricunit end |
Instance Attribute Details
#DataSerial ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def DataSerial @DataSerial end |
#MetricName ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def MetricName @MetricName end |
#MetricNameCN ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def MetricNameCN @MetricNameCN end |
#MetricUnit ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def MetricUnit @MetricUnit end |
#Tags ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def Tags @Tags end |
#TimeSerial ⇒ Object
3041 3042 3043 |
# File 'lib/v20210622/models.rb', line 3041 def TimeSerial @TimeSerial end |
Instance Method Details
#deserialize(params) ⇒ Object
3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 |
# File 'lib/v20210622/models.rb', line 3052 def deserialize(params) @MetricName = params['MetricName'] @MetricNameCN = params['MetricNameCN'] @TimeSerial = params['TimeSerial'] @DataSerial = params['DataSerial'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| apmtag_tmp = ApmTag.new apmtag_tmp.deserialize(i) @Tags << apmtag_tmp end end @MetricUnit = params['MetricUnit'] end |