public class AlarmTarget extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AlarmTarget() | 
| AlarmTarget(AlarmTarget 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 | 
|---|---|
| Long | getEndTimeOffset()Get 查询范围终止时间相对于告警执行时间的偏移,单位为分钟,取值为非正,须大于StartTimeOffset,最大值为0,最小值为-1440。 | 
| String | getLogsetId()Get 日志集ID。通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志集ID | 
| Long | getNumber()Get 告警对象序号;从1开始递增。 | 
| String | getQuery()Get 查询语句。 | 
| Long | getStartTimeOffset()Get 查询范围起始时间相对于告警执行时间的偏移,单位为分钟,取值为非正,最大值为0,最小值为-1440。 | 
| Long | getSyntaxRule()Get 检索语法规则,默认值为0。
0:Lucene语法,1:CQL语法。
详细说明参见检索条件语法规则 | 
| String | getTopicId()Get 日志主题ID。-通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题ID | 
| void | setEndTimeOffset(Long EndTimeOffset)Set 查询范围终止时间相对于告警执行时间的偏移,单位为分钟,取值为非正,须大于StartTimeOffset,最大值为0,最小值为-1440。 | 
| void | setLogsetId(String LogsetId)Set 日志集ID。通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志集ID | 
| void | setNumber(Long Number)Set 告警对象序号;从1开始递增。 | 
| void | setQuery(String Query)Set 查询语句。 | 
| void | setStartTimeOffset(Long StartTimeOffset)Set 查询范围起始时间相对于告警执行时间的偏移,单位为分钟,取值为非正,最大值为0,最小值为-1440。 | 
| void | setSyntaxRule(Long SyntaxRule)Set 检索语法规则,默认值为0。
0:Lucene语法,1:CQL语法。
详细说明参见检索条件语法规则 | 
| void | setTopicId(String TopicId)Set 日志主题ID。-通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题ID | 
| 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, toJsonStringpublic AlarmTarget()
public AlarmTarget(AlarmTarget source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 日志主题ID。-通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题IDpublic String getQuery()
public void setQuery(String Query)
Query - 查询语句。public Long getNumber()
public void setNumber(Long Number)
Number - 告警对象序号;从1开始递增。public Long getStartTimeOffset()
public void setStartTimeOffset(Long StartTimeOffset)
StartTimeOffset - 查询范围起始时间相对于告警执行时间的偏移,单位为分钟,取值为非正,最大值为0,最小值为-1440。public Long getEndTimeOffset()
public void setEndTimeOffset(Long EndTimeOffset)
EndTimeOffset - 查询范围终止时间相对于告警执行时间的偏移,单位为分钟,取值为非正,须大于StartTimeOffset,最大值为0,最小值为-1440。public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId - 日志集ID。通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志集IDpublic Long getSyntaxRule()
public void setSyntaxRule(Long SyntaxRule)
SyntaxRule - 检索语法规则,默认值为0。
0:Lucene语法,1:CQL语法。
详细说明参见检索条件语法规则Copyright © 2025. All rights reserved.