Class: TencentCloud::Weilingwith::V20230427::AlarmInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230427/models.rb

Overview

告警信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#AppIdObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def AppId
  @AppId
end

#DescObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Desc
  @Desc
end

#DeviceNameObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def DeviceName
  @DeviceName
end

#EchoObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Echo
  @Echo
end

#ExtendObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Extend
  @Extend
end

#ExtendOneObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def ExtendOne
  @ExtendOne
end

#ExtendTwoObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def ExtendTwo
  @ExtendTwo
end

#HandlePersonSetObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def HandlePersonSet
  @HandlePersonSet
end

#HandleRecordSetObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def HandleRecordSet
  @HandleRecordSet
end

#IdObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Id
  @Id
end

#LevelObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Level
  @Level
end

#LevelNameObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def LevelName
  @LevelName
end

#PositionObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Position
  @Position
end

#ReportImgObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def ReportImg
  @ReportImg
end

#StatusObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Status
  @Status
end

#SubTypeObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def SubType
  @SubType
end

#SubTypeNameObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def SubTypeName
  @SubTypeName
end

#TimeObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Time
  @Time
end

#TypeObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def Type
  @Type
end

#TypeNameObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def TypeName
  @TypeName
end

#WIDObject



328
329
330
# File 'lib/v20230427/models.rb', line 328

def WID
  @WID
end

#WorkspaceIdObject



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