Class: TencentCloud::Cls::V20201016::MonitorTime

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

Overview

告警策略中监控任务的执行时间点

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, time = nil, cronexpression = nil) ⇒ MonitorTime

Returns a new instance of MonitorTime.



15551
15552
15553
15554
15555
# File 'lib/v20201016/models.rb', line 15551

def initialize(type=nil, time=nil, cronexpression=nil)
  @Type = type
  @Time = time
  @CronExpression = cronexpression
end

Instance Attribute Details

#CronExpression ⇒ Object

  • Period:固定频率
  • Fixed:固定时间
  • Cron:Cron表达式 当type为Period,Fixed时,time字段生效。 当type为Cron时,CronExpression字段生效。

Parameters:

  • Time: —

    执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。

  • CronExpression: —

    执行的周期cron表达式。示例:"*/1 * * * *" 从左到右每个field的含义 Minutes field(分钟), Hours field(小时),Day of month field(日期),Month field(月份),Day of week field(星期), 不支持秒级别。



15549
15550
15551
# File 'lib/v20201016/models.rb', line 15549

def CronExpression
  @CronExpression
end

#Time ⇒ Object

  • Period:固定频率
  • Fixed:固定时间
  • Cron:Cron表达式 当type为Period,Fixed时,time字段生效。 当type为Cron时,CronExpression字段生效。

Parameters:

  • Time: —

    执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。

  • CronExpression: —

    执行的周期cron表达式。示例:"*/1 * * * *" 从左到右每个field的含义 Minutes field(分钟), Hours field(小时),Day of month field(日期),Month field(月份),Day of week field(星期), 不支持秒级别。



15549
15550
15551
# File 'lib/v20201016/models.rb', line 15549

def Time
  @Time
end

#Type ⇒ Object

  • Period:固定频率
  • Fixed:固定时间
  • Cron:Cron表达式 当type为Period,Fixed时,time字段生效。 当type为Cron时,CronExpression字段生效。

Parameters:

  • Time: —

    执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。

  • CronExpression: —

    执行的周期cron表达式。示例:"*/1 * * * *" 从左到右每个field的含义 Minutes field(分钟), Hours field(小时),Day of month field(日期),Month field(月份),Day of week field(星期), 不支持秒级别。



15549
15550
15551
# File 'lib/v20201016/models.rb', line 15549

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15557
15558
15559
15560
15561
# File 'lib/v20201016/models.rb', line 15557

def deserialize(params)
  @Type = params['Type']
  @Time = params['Time']
  @CronExpression = params['CronExpression']
end