public class EventsCriteria extends Object
| Constructor and Description |
|---|
EventsCriteria() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String name,
String value) |
Collection<String> |
getCategories() |
String |
getCategory() |
Long |
getEndTime() |
String |
getEventId() |
Collection<String> |
getEventIds() |
Long |
getStartTime() |
Map<String,String> |
getTags() |
String |
getTriggerId() |
Collection<String> |
getTriggerIds() |
boolean |
hasCategoryCriteria() |
boolean |
hasCriteria() |
boolean |
hasCTimeCriteria() |
boolean |
hasEventIdCriteria() |
boolean |
hasTagCriteria() |
boolean |
hasTriggerIdCriteria() |
boolean |
isThin() |
void |
setCategories(Collection<String> categories) |
void |
setCategory(String category) |
void |
setEndTime(Long endTime) |
void |
setEventId(String eventId) |
void |
setEventIds(Collection<String> eventIds) |
void |
setStartTime(Long startTime) |
void |
setTags(Map<String,String> tags) |
void |
setThin(boolean thin) |
void |
setTriggerId(String triggerId) |
void |
setTriggerIds(Collection<String> triggerIds) |
String |
toString() |
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 String getEventId()
public void setEventId(String eventId)
public Collection<String> getEventIds()
public void setEventIds(Collection<String> eventIds)
public String getCategory()
public void setCategory(String category)
public Collection<String> getCategories()
public void setCategories(Collection<String> categories)
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 boolean isThin()
public void setThin(boolean thin)
public boolean hasEventIdCriteria()
public boolean hasCategoryCriteria()
public boolean hasTagCriteria()
public boolean hasCTimeCriteria()
public boolean hasTriggerIdCriteria()
public boolean hasCriteria()
Copyright © 2015 Red Hat, Inc.. All rights reserved.