Package com.influxdb.client.domain
Class ThresholdCheck
java.lang.Object
com.influxdb.client.domain.CheckBase
com.influxdb.client.domain.CheckDiscriminator
com.influxdb.client.domain.Check
com.influxdb.client.domain.ThresholdCheck
ThresholdCheck
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.influxdb.client.domain.CheckBase
CheckBase.LastRunStatusEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.influxdb.client.domain.CheckBase
SERIALIZED_NAME_CREATED_AT, SERIALIZED_NAME_DESCRIPTION, SERIALIZED_NAME_ID, SERIALIZED_NAME_LABELS, SERIALIZED_NAME_LAST_RUN_ERROR, SERIALIZED_NAME_LAST_RUN_STATUS, SERIALIZED_NAME_LATEST_COMPLETED, SERIALIZED_NAME_LINKS, SERIALIZED_NAME_NAME, SERIALIZED_NAME_ORG_I_D, SERIALIZED_NAME_OWNER_I_D, SERIALIZED_NAME_QUERY, SERIALIZED_NAME_STATUS, SERIALIZED_NAME_TASK_I_D, SERIALIZED_NAME_UPDATED_AT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(ThresholdCheckTags tagsItem) addThresholdsItem(Threshold thresholdsItem) booleangetEvery()Check repetition interval.Duration to delay after the schedule, before executing check.The template used to generate and write a status message.getTags()List of tags to write to each status.Get thresholdsgetType()Get typeinthashCode()voidvoidvoidsetStatusMessageTemplate(String statusMessageTemplate) voidsetTags(List<ThresholdCheckTags> tags) voidsetThresholds(List<Threshold> thresholds) statusMessageTemplate(String statusMessageTemplate) tags(List<ThresholdCheckTags> tags) thresholds(List<Threshold> thresholds) toString()Methods inherited from class com.influxdb.client.domain.CheckBase
addLabelsItem, description, getCreatedAt, getDescription, getId, getLabels, getLastRunError, getLastRunStatus, getLatestCompleted, getLinks, getName, getOrgID, getOwnerID, getQuery, getStatus, getTaskID, getUpdatedAt, labels, links, name, orgID, query, setDescription, setLabels, setLinks, setName, setOrgID, setQuery, setStatus, setTaskID, status, taskID
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_THRESHOLDS
- See Also:
-
SERIALIZED_NAME_EVERY
- See Also:
-
SERIALIZED_NAME_OFFSET
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_STATUS_MESSAGE_TEMPLATE
- See Also:
-
-
Constructor Details
-
ThresholdCheck
public ThresholdCheck()
-
-
Method Details
-
getType
Get type- Returns:
- type
-
thresholds
-
addThresholdsItem
-
getThresholds
Get thresholds- Returns:
- thresholds
-
setThresholds
-
every
-
getEvery
Check repetition interval.- Returns:
- every
-
setEvery
-
offset
-
getOffset
Duration to delay after the schedule, before executing check.- Returns:
- offset
-
setOffset
-
tags
-
addTagsItem
-
getTags
List of tags to write to each status.- Returns:
- tags
-
setTags
-
statusMessageTemplate
-
getStatusMessageTemplate
The template used to generate and write a status message.- Returns:
- statusMessageTemplate
-
setStatusMessageTemplate
-
equals
-
hashCode
public int hashCode() -
toString
-