Class: TencentCloud::Iss::V20230517::SnapshotConfig

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

Overview

截图配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeinterval = nil, opertimeslot = nil) ⇒ SnapshotConfig

Returns a new instance of SnapshotConfig.



6856
6857
6858
6859
# File 'lib/v20230517/models.rb', line 6856

def initialize(timeinterval=nil, opertimeslot=nil)
  @TimeInterval = timeinterval
  @OperTimeSlot = opertimeslot
end

Instance Attribute Details

#OperTimeSlotObject

Parameters:

  • TimeInterval:

    截图频率。可选值1~20秒

  • OperTimeSlot:

    模板生效的时间段。最多包含5组时间段



6854
6855
6856
# File 'lib/v20230517/models.rb', line 6854

def OperTimeSlot
  @OperTimeSlot
end

#TimeIntervalObject

Parameters:

  • TimeInterval:

    截图频率。可选值1~20秒

  • OperTimeSlot:

    模板生效的时间段。最多包含5组时间段



6854
6855
6856
# File 'lib/v20230517/models.rb', line 6854

def TimeInterval
  @TimeInterval
end

Instance Method Details

#deserialize(params) ⇒ Object



6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
# File 'lib/v20230517/models.rb', line 6861

def deserialize(params)
  @TimeInterval = params['TimeInterval']
  unless params['OperTimeSlot'].nil?
    @OperTimeSlot = []
    params['OperTimeSlot'].each do |i|
      opertimeslot_tmp = OperTimeSlot.new
      opertimeslot_tmp.deserialize(i)
      @OperTimeSlot << opertimeslot_tmp
    end
  end
end