Class EventSeries

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class EventSeries
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
    • Constructor Detail

      • EventSeries

        public EventSeries​(@NonNull
                           @NonNull java.lang.Number count,
                           @NonNull
                           @NonNull java.time.OffsetDateTime lastObservedTime)
      • EventSeries

        public EventSeries()
    • Method Detail

      • getCount

        @NonNull
        public @NonNull java.lang.Number getCount()
        count is the number of occurrences in this series up to the last heartbeat time.
      • getLastObservedTime

        @NonNull
        public @NonNull java.time.OffsetDateTime getLastObservedTime()
      • setCount

        public void setCount​(@NonNull
                             @NonNull java.lang.Number count)
        count is the number of occurrences in this series up to the last heartbeat time.
      • setLastObservedTime

        public void setLastObservedTime​(@NonNull
                                        @NonNull java.time.OffsetDateTime lastObservedTime)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object