public class AlertsCriteria extends Object
| Constructor and Description |
|---|
AlertsCriteria() |
AlertsCriteria(Long startTime,
Long endTime,
String alertIds,
String triggerIds,
String statuses,
String severities,
String tags,
Long startResolvedTime,
Long endResolvedTime,
Long startAckTime,
Long endAckTime,
Boolean thin) |
public Long getStartTime()
public void setStartTime(Long startTime)
startTime - fetched Alerts must have cTime greater than or equal to startTimepublic Long getEndTime()
public void setEndTime(Long endTime)
endTime - fetched Alerts must have cTime less than or equal to endTimepublic Long getStartResolvedTime()
public void setStartResolvedTime(Long startResolvedTime)
startResolvedTime - fetched Alerts must have at least one resolvedTime in the lifecycle greater than or
equal to startResolvedTime.
Alerts lifecycle might involve several transitions between ACKNOWLEDGE and RESOLVE
states.public Long getEndResolvedTime()
public void setEndResolvedTime(Long endResolvedTime)
endResolvedTime - fetched Alerts must have at least one resolvedTime in the lifecycle less than or equal to
endResolvedTime.
Alerts lifecycle might involve several transitions between ACKNOWLEDGE and RESOLVE states.public Long getStartAckTime()
public void setStartAckTime(Long startAckTime)
startAckTime - fetched Alerts must have at least one ackTime in the lifecycle greater than or equal to
startAckTime.
Alerts lifecycle might involve several transitions between ACKNOWLEDGE and RESOLVE states.public Long getEndAckTime()
public void setEndAckTime(Long endAckTime)
endAckTime - fetched Alerts must have at least one ackTime in the lifecycle less than or equal to
endAckTime.
Alerts lifecycle might involve several transitions between ACKNOWLEDGE and RESOLVE states.public String getAlertId()
public void setAlertId(String alertId)
public Collection<String> getAlertIds()
public void setAlertIds(Collection<String> alertIds)
public Alert.Status getStatus()
public void setStatus(Alert.Status status)
public Collection<Alert.Status> getStatusSet()
public void setStatusSet(Collection<Alert.Status> statusSet)
public String getTriggerId()
public void setTriggerId(String triggerId)
triggerId - fetched Alerts must be for the specified trigger. Ignored if triggerIds is not empty.public Collection<String> getTriggerIds()
public void setTriggerIds(Collection<String> triggerIds)
triggerIds - fetched alerts must be for one of the specified triggers.public void setTags(Map<String,String> tags)
tags - return alerts with *any* of these tags, it does not have to have all of the tags). Specify '*' for
the value if you only want to match the name portion of the tag.public Severity getSeverity()
public void setSeverity(Severity severity)
public Collection<Severity> getSeverities()
public void setSeverities(Collection<Severity> severities)
public boolean isThin()
public void setThin(boolean thin)
public boolean hasAlertIdCriteria()
public boolean hasSeverityCriteria()
public boolean hasStatusCriteria()
public boolean hasTagCriteria()
public boolean hasCTimeCriteria()
public boolean hasTriggerIdCriteria()
public boolean hasResolvedTimeCriteria()
public boolean hasAckTimeCriteria()
public boolean hasCriteria()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.