Class 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 WatchedResourcesSupplier and provides reason when a check fails - list of filtered events and filter itself

    • 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