Package cz.xtf.core.waiting.failfast
Class EventFailFastCheckBuilder
- java.lang.Object
-
- cz.xtf.core.waiting.failfast.EventFailFastCheckBuilder
-
public class EventFailFastCheckBuilder extends Object
Builder for creating fail fast checks for event You can filter events by name, obj kind, obj name, time,...Builds
WatchedResourcesSupplierand provides reason when a check fails - list of filtered events and filter itself
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventFailFastCheckBuilderafter(ZonedDateTime after)Consider event after certain time.FailFastBuilderatLeastOneExists()If at least one event exist (after filtration), final function returns true.EventFailFastCheckBuilderofKinds(String... kinds)Array of demanded object kinds of events (case in-sensitive).EventFailFastCheckBuilderofMessages(String... messages)Regexes for demanded messages.EventFailFastCheckBuilderofNames(String... name)Regexes to match event involved object name.EventFailFastCheckBuilderofReasons(String... reasons)Array of demanded reasons of events (case in-sensitive).EventFailFastCheckBuilderofTypes(String... types)Array of demanded types of events (case in-sensitive).
-
-
-
Method Detail
-
ofNames
public EventFailFastCheckBuilder ofNames(String... name)
Regexes to match event involved object name.- Parameters:
name- event names (regexes)- Returns:
- this
-
ofReasons
public EventFailFastCheckBuilder ofReasons(String... reasons)
Array of demanded reasons of events (case in-sensitive). One of them must be equal.- Parameters:
reasons- event reasons- Returns:
- this
-
ofTypes
public EventFailFastCheckBuilder ofTypes(String... types)
Array of demanded types of events (case in-sensitive). One of them must be equal. For example:Warning,Normal, ...- Parameters:
types- event types- Returns:
- this
-
ofKinds
public EventFailFastCheckBuilder ofKinds(String... kinds)
Array of demanded object kinds of events (case in-sensitive). One of them must be equal. For example:persistentvolume,pod, ...- Parameters:
kinds- event kinds- Returns:
- this
-
ofMessages
public EventFailFastCheckBuilder ofMessages(String... messages)
Regexes for demanded messages. One of them must match.- Parameters:
messages- event messages- Returns:
- this
-
atLeastOneExists
public FailFastBuilder atLeastOneExists()
If at least one event exist (after filtration), final function returns true.- Returns:
- this
-
after
public EventFailFastCheckBuilder after(ZonedDateTime after)
Consider event after certain time.- Parameters:
after- event time- Returns:
- this
-
-