Class: TencentCloud::Monitor::V20180724::GetMonitorDataResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::GetMonitorDataResponse
- Defined in:
- lib/v20180724/models.rb
Overview
GetMonitorData返回参数结构体
Instance Attribute Summary collapse
- #DataPoints ⇒ Object
- #EndTime ⇒ Object
- #MetricName ⇒ Object
- #Msg ⇒ Object
- #Period ⇒ Object
- #RequestId ⇒ Object
- #StartTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(period = nil, metricname = nil, datapoints = nil, starttime = nil, endtime = nil, msg = nil, requestid = nil) ⇒ GetMonitorDataResponse
constructor
A new instance of GetMonitorDataResponse.
Constructor Details
#initialize(period = nil, metricname = nil, datapoints = nil, starttime = nil, endtime = nil, msg = nil, requestid = nil) ⇒ GetMonitorDataResponse
Returns a new instance of GetMonitorDataResponse.
10227 10228 10229 10230 10231 10232 10233 10234 10235 |
# File 'lib/v20180724/models.rb', line 10227 def initialize(period=nil, metricname=nil, datapoints=nil, starttime=nil, endtime=nil, msg=nil, requestid=nil) @Period = period @MetricName = metricname @DataPoints = datapoints @StartTime = starttime @EndTime = endtime @Msg = msg @RequestId = requestid end |
Instance Attribute Details
#DataPoints ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def DataPoints @DataPoints end |
#EndTime ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def EndTime @EndTime end |
#MetricName ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def MetricName @MetricName end |
#Msg ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def Msg @Msg end |
#Period ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def Period @Period end |
#RequestId ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def RequestId @RequestId end |
#StartTime ⇒ Object
10225 10226 10227 |
# File 'lib/v20180724/models.rb', line 10225 def StartTime @StartTime end |
Instance Method Details
#deserialize(params) ⇒ Object
10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 |
# File 'lib/v20180724/models.rb', line 10237 def deserialize(params) @Period = params['Period'] @MetricName = params['MetricName'] unless params['DataPoints'].nil? @DataPoints = [] params['DataPoints'].each do |i| datapoint_tmp = DataPoint.new datapoint_tmp.deserialize(i) @DataPoints << datapoint_tmp end end @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Msg = params['Msg'] @RequestId = params['RequestId'] end |