Package com.influxdb.client.domain
Class DeadmanCheck
java.lang.Object
com.influxdb.client.domain.CheckBase
com.influxdb.client.domain.CheckDiscriminator
com.influxdb.client.domain.Check
com.influxdb.client.domain.DeadmanCheck
DeadmanCheck
-
Nested Class Summary
Nested classes/interfaces inherited from class com.influxdb.client.domain.CheckBase
CheckBase.LastRunStatusEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem
(ThresholdCheckTags tagsItem) boolean
getEvery()
Check repetition interval.getLevel()
Get levelDuration to delay after the schedule, before executing check.If only zero values reported since time, trigger an alertString duration for time that a series is considered stale and should not trigger deadman.The template used to generate and write a status message.getTags()
List of tags to write to each status.String duration before deadman triggers.getType()
Get typeint
hashCode()
level
(CheckStatusLevel level) reportZero
(Boolean reportZero) void
void
setLevel
(CheckStatusLevel level) void
void
setReportZero
(Boolean reportZero) void
setStaleTime
(String staleTime) void
setStatusMessageTemplate
(String statusMessageTemplate) void
setTags
(List<ThresholdCheckTags> tags) void
setTimeSince
(String timeSince) statusMessageTemplate
(String statusMessageTemplate) tags
(List<ThresholdCheckTags> tags) 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_TIME_SINCE
- See Also:
-
SERIALIZED_NAME_STALE_TIME
- See Also:
-
SERIALIZED_NAME_REPORT_ZERO
- See Also:
-
SERIALIZED_NAME_LEVEL
- 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
-
DeadmanCheck
public DeadmanCheck()
-
-
Method Details
-
getType
Get type- Returns:
- type
-
timeSince
-
getTimeSince
String duration before deadman triggers.- Returns:
- timeSince
-
setTimeSince
-
staleTime
-
getStaleTime
String duration for time that a series is considered stale and should not trigger deadman.- Returns:
- staleTime
-
setStaleTime
-
reportZero
-
getReportZero
If only zero values reported since time, trigger an alert- Returns:
- reportZero
-
setReportZero
-
level
-
getLevel
Get level- Returns:
- level
-
setLevel
-
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
-