public class MonitorTime extends AbstractModel
header, skipSign
Constructor and Description |
---|
MonitorTime() |
MonitorTime(MonitorTime source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCronExpression()
Get 执行的周期cron表达式。示例:`"* /1 * * * *"` 从左到右每个field的含义 Minutes field, Hours field,Day of month field,Month field,Day of week field, 不支持秒级别。
当type为`Cron`时,CronExpression字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getTime()
Get 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
当type为`Period`,`Fixed`时,time字段生效。
|
String |
getType()
Get 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
- Period:固定频率
- Fixed:固定时间
- Cron:Cron表达式
|
void |
setCronExpression(String CronExpression)
Set 执行的周期cron表达式。示例:`"* /1 * * * *"` 从左到右每个field的含义 Minutes field, Hours field,Day of month field,Month field,Day of week field, 不支持秒级别。
当type为`Cron`时,CronExpression字段生效。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setTime(Long Time)
Set 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
当type为`Period`,`Fixed`时,time字段生效。
|
void |
setType(String Type)
Set 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
- Period:固定频率
- Fixed:固定时间
- Cron:Cron表达式
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public MonitorTime()
public MonitorTime(MonitorTime source)
public String getType()
public void setType(String Type)
Type
- 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
- Period:固定频率
- Fixed:固定时间
- Cron:Cron表达式public Long getTime()
public void setTime(Long Time)
Time
- 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
当type为`Period`,`Fixed`时,time字段生效。public String getCronExpression()
public void setCronExpression(String CronExpression)
CronExpression
- 执行的周期cron表达式。示例:`"* /1 * * * *"` 从左到右每个field的含义 Minutes field, Hours field,Day of month field,Month field,Day of week field, 不支持秒级别。
当type为`Cron`时,CronExpression字段生效。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.