Class: TencentCloud::Weilingwith::V20230427::AlarmInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Weilingwith::V20230427::AlarmInfo
- Defined in:
- lib/v20230427/models.rb
Overview
告警信息
Instance Attribute Summary collapse
- #AppId ⇒ Object
- #Desc ⇒ Object
- #DeviceName ⇒ Object
- #Echo ⇒ Object
- #Extend ⇒ Object
- #ExtendOne ⇒ Object
- #ExtendTwo ⇒ Object
- #HandlePersonSet ⇒ Object
- #HandleRecordSet ⇒ Object
- #Id ⇒ Object
- #Level ⇒ Object
- #LevelName ⇒ Object
- #Position ⇒ Object
- #ReportImg ⇒ Object
- #Status ⇒ Object
- #SubType ⇒ Object
- #SubTypeName ⇒ Object
- #Time ⇒ Object
- #Type ⇒ Object
- #TypeName ⇒ Object
- #WID ⇒ Object
- #WorkspaceId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(workspaceid = nil, id = nil, status = nil, time = nil, type = nil, typename = nil, subtype = nil, subtypename = nil, level = nil, levelname = nil, appid = nil, wid = nil, devicename = nil, position = nil, reportimg = nil, desc = nil, handlepersonset = nil, handlerecordset = nil, extend = nil, extendone = nil, extendtwo = nil, echo = nil) ⇒ AlarmInfo
constructor
A new instance of AlarmInfo.
Constructor Details
#initialize(workspaceid = nil, id = nil, status = nil, time = nil, type = nil, typename = nil, subtype = nil, subtypename = nil, level = nil, levelname = nil, appid = nil, wid = nil, devicename = nil, position = nil, reportimg = nil, desc = nil, handlepersonset = nil, handlerecordset = nil, extend = nil, extendone = nil, extendtwo = nil, echo = nil) ⇒ AlarmInfo
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/v20230427/models.rb', line 330 def initialize(workspaceid=nil, id=nil, status=nil, time=nil, type=nil, typename=nil, subtype=nil, subtypename=nil, level=nil, levelname=nil, appid=nil, wid=nil, devicename=nil, position=nil, reportimg=nil, desc=nil, handlepersonset=nil, handlerecordset=nil, extend=nil, extendone=nil, extendtwo=nil, echo=nil) @WorkspaceId = workspaceid @Id = id @Status = status @Time = time @Type = type @TypeName = typename @SubType = subtype @SubTypeName = subtypename @Level = level @LevelName = levelname @AppId = appid @WID = wid @DeviceName = devicename @Position = position @ReportImg = reportimg @Desc = desc @HandlePersonSet = handlepersonset @HandleRecordSet = handlerecordset @Extend = extend @ExtendOne = extendone @ExtendTwo = extendtwo @Echo = echo end |
Instance Attribute Details
#AppId ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def AppId @AppId end |
#Desc ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Desc @Desc end |
#DeviceName ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def DeviceName @DeviceName end |
#Echo ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Echo @Echo end |
#Extend ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Extend @Extend end |
#ExtendOne ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def ExtendOne @ExtendOne end |
#ExtendTwo ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def ExtendTwo @ExtendTwo end |
#HandlePersonSet ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def HandlePersonSet @HandlePersonSet end |
#HandleRecordSet ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def HandleRecordSet @HandleRecordSet end |
#Id ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Id @Id end |
#Level ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Level @Level end |
#LevelName ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def LevelName @LevelName end |
#Position ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Position @Position end |
#ReportImg ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def ReportImg @ReportImg end |
#Status ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Status @Status end |
#SubType ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def SubType @SubType end |
#SubTypeName ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def SubTypeName @SubTypeName end |
#Time ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Time @Time end |
#Type ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def Type @Type end |
#TypeName ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def TypeName @TypeName end |
#WID ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def WID @WID end |
#WorkspaceId ⇒ Object
328 329 330 |
# File 'lib/v20230427/models.rb', line 328 def WorkspaceId @WorkspaceId end |
Instance Method Details
#deserialize(params) ⇒ Object
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 |
# File 'lib/v20230427/models.rb', line 355 def deserialize(params) @WorkspaceId = params['WorkspaceId'] @Id = params['Id'] @Status = params['Status'] @Time = params['Time'] @Type = params['Type'] @TypeName = params['TypeName'] @SubType = params['SubType'] @SubTypeName = params['SubTypeName'] @Level = params['Level'] @LevelName = params['LevelName'] @AppId = params['AppId'] @WID = params['WID'] @DeviceName = params['DeviceName'] @Position = params['Position'] unless params['ReportImg'].nil? @ReportImg = ReportImg.new @ReportImg.deserialize(params['ReportImg']) end @Desc = params['Desc'] unless params['HandlePersonSet'].nil? @HandlePersonSet = [] params['HandlePersonSet'].each do |i| handlerpersoninfo_tmp = HandlerPersonInfo.new handlerpersoninfo_tmp.deserialize(i) @HandlePersonSet << handlerpersoninfo_tmp end end unless params['HandleRecordSet'].nil? @HandleRecordSet = [] params['HandleRecordSet'].each do |i| handlerecordinfo_tmp = HandleRecordInfo.new handlerecordinfo_tmp.deserialize(i) @HandleRecordSet << handlerecordinfo_tmp end end @Extend = params['Extend'] @ExtendOne = params['ExtendOne'] @ExtendTwo = params['ExtendTwo'] @Echo = params['Echo'] end |