public class EventListFilter extends Object
| Constructor and Description |
|---|
EventListFilter(EventList events) |
| Modifier and Type | Method and Description |
|---|---|
EventListFilter |
after(ZonedDateTime date)
Filter events that are last seen strictly after the date.
|
boolean |
atLeastOneRegexMessages(String... messagesRegex)
Return true if there is at least one event that match one of the given messages (reg.
|
EventList |
collect()
Return filtered
EventList |
long |
count() |
Stream<io.fabric8.kubernetes.api.model.Event> |
getStream() |
EventListFilter |
inOneOfTimeWindows(ZonedDateTime... dates)
Filter events that are last seen in any if given time windows.
|
EventListFilter |
ofEventTypes(String... types)
Filter events of types defined in the array (case insensitive).
|
EventListFilter |
ofMessages(String... messagesRegex)
Filter events with messages (reg.
|
EventListFilter |
ofObjKinds(String... kinds)
Filter events with involved object kind defined in the array (case insensitive).
|
EventListFilter |
ofObjNames(String... regexNames)
Filter events with involved object name defined in the array of reg.
|
EventListFilter |
ofReasons(String... reasons)
Filter events with involved object kind defined in the array (case insensitive).
|
public EventListFilter(EventList events)
public EventListFilter ofEventTypes(String... types)
Warning, Normal, ...public EventListFilter ofObjKinds(String... kinds)
Warning, Normal, ...public boolean atLeastOneRegexMessages(String... messagesRegex)
public EventListFilter ofMessages(String... messagesRegex)
public EventListFilter ofObjNames(String... regexNames)
public EventListFilter inOneOfTimeWindows(ZonedDateTime... dates)
from date and before or at the same time as until date.
ZonedDateTime is used because a OpenShift cluster is distributed and time is provided in
DateTimeFormatter.ISO_DATE_TIME
format that consider time zones. Therefore wee need to compare it against ZonedDateTime.now() (for example)ZonedDateTimepublic EventListFilter after(ZonedDateTime date)
public Stream<io.fabric8.kubernetes.api.model.Event> getStream()
public EventListFilter ofReasons(String... reasons)
public long count()
Copyright © 2023. All rights reserved.