public interface ChecksApi
Modifier and Type | Method and Description |
---|---|
LabelResponse |
addLabel(Label label,
Check check)
Add a label to a check.
|
LabelResponse |
addLabel(String labelID,
String checkID)
Add a label to a check.
|
Check |
createCheck(Check check)
Add new check.
|
DeadmanCheck |
createDeadmanCheck(String name,
String query,
String field,
String every,
String timeSince,
String staleTime,
String messageTemplate,
CheckStatusLevel level,
String orgID)
Add new Deadman check.
|
ThresholdCheck |
createThresholdCheck(String name,
String query,
String field,
String every,
String messageTemplate,
List<Threshold> thresholds,
String orgID)
Add new Threshold check.
|
ThresholdCheck |
createThresholdCheck(String name,
String query,
String field,
String every,
String messageTemplate,
Threshold threshold,
String orgID)
Add new Threshold check.
|
void |
deleteCheck(Check check)
Delete a check.
|
void |
deleteCheck(String checkID)
Delete a check.
|
void |
deleteLabel(Label label,
Check check)
Delete label from a check.
|
void |
deleteLabel(String labelID,
String checkID)
Delete label from a check.
|
Check |
findCheckByID(String checkID)
Get a check.
|
List<Check> |
findChecks(String orgID)
Get checks.
|
Checks |
findChecks(String orgID,
FindOptions findOptions)
Get all checks.
|
List<Label> |
getLabels(Check check)
List all labels for a check.
|
List<Label> |
getLabels(String checkID)
List all labels for a check.
|
Check |
updateCheck(Check check)
Update a check.
|
Check |
updateCheck(String checkID,
CheckPatch patch)
Update a check.
|
@Nonnull ThresholdCheck createThresholdCheck(@Nonnull String name, @Nonnull String query, @Nonnull String field, @Nonnull String every, @Nonnull String messageTemplate, @Nonnull Threshold threshold, @Nonnull String orgID)
name
- the check namequery
- The text of the flux queryfield
- The field name uses for checkevery
- Check repetition intervalmessageTemplate
- template that is used to generate and write a status messagethreshold
- condition for that specific statusorgID
- the organization that owns this check@Nonnull ThresholdCheck createThresholdCheck(@Nonnull String name, @Nonnull String query, @Nonnull String field, @Nonnull String every, @Nonnull String messageTemplate, @Nonnull List<Threshold> thresholds, @Nonnull String orgID)
name
- the check namequery
- The text of the flux queryfield
- The field name uses for checkevery
- Check repetition intervalmessageTemplate
- template that is used to generate and write a status messagethresholds
- conditions for that specific statusorgID
- the organization that owns this check@Nonnull DeadmanCheck createDeadmanCheck(@Nonnull String name, @Nonnull String query, @Nonnull String field, @Nonnull String every, @Nonnull String timeSince, @Nonnull String staleTime, @Nonnull String messageTemplate, @Nonnull CheckStatusLevel level, @Nonnull String orgID)
name
- the check namequery
- The text of the flux queryfield
- The field name uses for checkevery
- Check repetition intervaltimeSince
- string duration before deadman triggersstaleTime
- string duration for time that a series is considered stale and should not trigger deadmanmessageTemplate
- template that is used to generate and write a status messagelevel
- the state to record if check matches a criteriaorgID
- the organization that owns this check@Nonnull Check createCheck(@Nonnull Check check)
check
- check to create@Nonnull Check updateCheck(@Nonnull Check check)
check
- check update to apply@Nonnull Check updateCheck(@Nonnull String checkID, @Nonnull CheckPatch patch)
checkID
- ID of checkpatch
- update to applyvoid deleteCheck(@Nonnull Check check)
check
- the check to deletevoid deleteCheck(@Nonnull String checkID)
checkID
- the ID of check to delete@Nonnull Check findCheckByID(@Nonnull String checkID)
checkID
- ID of check@Nonnull List<Check> findChecks(@Nonnull String orgID)
orgID
- only show checks belonging to specified organization@Nonnull Checks findChecks(@Nonnull String orgID, @Nonnull FindOptions findOptions)
orgID
- only show checks belonging to specified organizationfindOptions
- find options@Nonnull List<Label> getLabels(@Nonnull Check check)
check
- the check@Nonnull List<Label> getLabels(@Nonnull String checkID)
checkID
- ID of the check@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull Check check)
label
- label to addcheck
- the check@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String checkID)
labelID
- ID of label to addcheckID
- ID of the checkvoid deleteLabel(@Nonnull Label label, @Nonnull Check check)
label
- the label to deletecheck
- he checkCopyright © 2018–2019 InfluxData, Inc.. All rights reserved.