Class: TencentCloud::Wedata::V20250806::NotificationFatigue

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

Overview

告警疲劳告警配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notifycount = nil, notifyinterval = nil, quietintervals = nil) ⇒ NotificationFatigue

Returns a new instance of NotificationFatigue.



9075
9076
9077
9078
9079
# File 'lib/v20250806/models.rb', line 9075

def initialize(notifycount=nil, notifyinterval=nil, quietintervals=nil)
  @NotifyCount = notifycount
  @NotifyInterval = notifyinterval
  @QuietIntervals = quietintervals
end

Instance Attribute Details

#NotifyCountObject

[1, 2], StartTime: “00:00:00”, EndTime: “09:00:00”

每周一、周二的00:00到09:00免打扰注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NotifyCount:

    告警次数

  • NotifyInterval:

    告警间隔,分钟

  • QuietIntervals:

    免打扰时间,例如示例值



9073
9074
9075
# File 'lib/v20250806/models.rb', line 9073

def NotifyCount
  @NotifyCount
end

#NotifyIntervalObject

[1, 2], StartTime: “00:00:00”, EndTime: “09:00:00”

每周一、周二的00:00到09:00免打扰注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NotifyCount:

    告警次数

  • NotifyInterval:

    告警间隔,分钟

  • QuietIntervals:

    免打扰时间,例如示例值



9073
9074
9075
# File 'lib/v20250806/models.rb', line 9073

def NotifyInterval
  @NotifyInterval
end

#QuietIntervalsObject

[1, 2], StartTime: “00:00:00”, EndTime: “09:00:00”

每周一、周二的00:00到09:00免打扰注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NotifyCount:

    告警次数

  • NotifyInterval:

    告警间隔,分钟

  • QuietIntervals:

    免打扰时间,例如示例值



9073
9074
9075
# File 'lib/v20250806/models.rb', line 9073

def QuietIntervals
  @QuietIntervals
end

Instance Method Details

#deserialize(params) ⇒ Object



9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
# File 'lib/v20250806/models.rb', line 9081

def deserialize(params)
  @NotifyCount = params['NotifyCount']
  @NotifyInterval = params['NotifyInterval']
  unless params['QuietIntervals'].nil?
    @QuietIntervals = []
    params['QuietIntervals'].each do |i|
      alarmquietinterval_tmp = AlarmQuietInterval.new
      alarmquietinterval_tmp.deserialize(i)
      @QuietIntervals << alarmquietinterval_tmp
    end
  end
end