Class: TencentCloud::Cls::V20201016::CreateAlarmRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/v20201016/models.rb

Overview

CreateAlarm请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, alarmtargets = nil, monitortime = nil, triggercount = nil, alarmperiod = nil, alarmnoticeids = nil, condition = nil, alarmlevel = nil, multiconditions = nil, status = nil, enable = nil, messagetemplate = nil, callback = nil, analysis = nil, grouptriggerstatus = nil, grouptriggercondition = nil, tags = nil, monitorobjecttype = nil, classifications = nil) ⇒ CreateAlarmRequest

Returns a new instance of CreateAlarmRequest.



2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
# File 'lib/v20201016/models.rb', line 2499

def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, alarmlevel=nil, multiconditions=nil, status=nil, enable=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, classifications=nil)
  @Name = name
  @AlarmTargets = alarmtargets
  @MonitorTime = monitortime
  @TriggerCount = triggercount
  @AlarmPeriod = alarmperiod
  @AlarmNoticeIds = alarmnoticeids
  @Condition = condition
  @AlarmLevel = alarmlevel
  @MultiConditions = multiconditions
  @Status = status
  @Enable = enable
  @MessageTemplate = messagetemplate
  @CallBack = callback
  @Analysis = analysis
  @GroupTriggerStatus = grouptriggerstatus
  @GroupTriggerCondition = grouptriggercondition
  @Tags = tags
  @MonitorObjectType = monitorobjecttype
  @Classifications = classifications
end

Instance Attribute Details

#AlarmLevel ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def AlarmLevel
  @AlarmLevel
end

#AlarmNoticeIds ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def AlarmNoticeIds
  @AlarmNoticeIds
end

#AlarmPeriod ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def AlarmPeriod
  @AlarmPeriod
end

#AlarmTargets ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def AlarmTargets
  @AlarmTargets
end

#Analysis ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Analysis
  @Analysis
end

#CallBack ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def CallBack
  @CallBack
end

#Classifications ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Classifications
  @Classifications
end

#Condition ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Condition
  @Condition
end

#Enable ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Enable
  @Enable
end

#GroupTriggerCondition ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def GroupTriggerCondition
  @GroupTriggerCondition
end

#GroupTriggerStatus ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def GroupTriggerStatus
  @GroupTriggerStatus
end

#MessageTemplate ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def MessageTemplate
  @MessageTemplate
end

#MonitorObjectType ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def MonitorObjectType
  @MonitorObjectType
end

#MonitorTime ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def MonitorTime
  @MonitorTime
end

#MultiConditions ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def MultiConditions
  @MultiConditions
end

#Name ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Name
  @Name
end

#Status ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Status
  @Status
end

#Tags ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def Tags
  @Tags
end

#TriggerCount ⇒ Object

最大支持10个标签键值对,并且不能有重复的键值对。 不填则默认为0。 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 Classifications元素个数不能超过20个。 Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 ^[a-z]([a-z0-9_]{0,49})$。 Classifications元素的Value长度不能超过200个字符。

Parameters:

  • MonitorObjectType: —

    监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。

  • Classifications: —

    告警附加分类信息列表。



2494
2495
2496
# File 'lib/v20201016/models.rb', line 2494

def TriggerCount
  @TriggerCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
# File 'lib/v20201016/models.rb', line 2521

def deserialize(params)
  @Name = params['Name']
  unless params['AlarmTargets'].nil?
    @AlarmTargets = []
    params['AlarmTargets'].each do |i|
      alarmtarget_tmp = AlarmTarget.new
      alarmtarget_tmp.deserialize(i)
      @AlarmTargets << alarmtarget_tmp
    end
  end
  unless params['MonitorTime'].nil?
    @MonitorTime = MonitorTime.new
    @MonitorTime.deserialize(params['MonitorTime'])
  end
  @TriggerCount = params['TriggerCount']
  @AlarmPeriod = params['AlarmPeriod']
  @AlarmNoticeIds = params['AlarmNoticeIds']
  @Condition = params['Condition']
  @AlarmLevel = params['AlarmLevel']
  unless params['MultiConditions'].nil?
    @MultiConditions = []
    params['MultiConditions'].each do |i|
      multicondition_tmp = MultiCondition.new
      multicondition_tmp.deserialize(i)
      @MultiConditions << multicondition_tmp
    end
  end
  @Status = params['Status']
  @Enable = params['Enable']
  @MessageTemplate = params['MessageTemplate']
  unless params['CallBack'].nil?
    @CallBack = CallBackInfo.new
    @CallBack.deserialize(params['CallBack'])
  end
  unless params['Analysis'].nil?
    @Analysis = []
    params['Analysis'].each do |i|
      analysisdimensional_tmp = AnalysisDimensional.new
      analysisdimensional_tmp.deserialize(i)
      @Analysis << analysisdimensional_tmp
    end
  end
  @GroupTriggerStatus = params['GroupTriggerStatus']
  @GroupTriggerCondition = params['GroupTriggerCondition']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @MonitorObjectType = params['MonitorObjectType']
  unless params['Classifications'].nil?
    @Classifications = []
    params['Classifications'].each do |i|
      alarmclassification_tmp = AlarmClassification.new
      alarmclassification_tmp.deserialize(i)
      @Classifications << alarmclassification_tmp
    end
  end
end