Class EventsV1EventSeries

java.lang.Object
io.kubernetes.client.openapi.models.EventsV1EventSeries

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class EventsV1EventSeries extends Object
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.
  • Field Details

  • Constructor Details

    • EventsV1EventSeries

      public EventsV1EventSeries()
  • Method Details

    • count

      public EventsV1EventSeries count(Integer count)
    • getCount

      @Nonnull public Integer getCount()
      count is the number of occurrences in this series up to the last heartbeat time.
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • lastObservedTime

      public EventsV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime)
    • getLastObservedTime

      @Nonnull public OffsetDateTime getLastObservedTime()
      lastObservedTime is the time when last Event from the series was seen before last heartbeat.
      Returns:
      lastObservedTime
    • setLastObservedTime

      public void setLastObservedTime(OffsetDateTime lastObservedTime)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to EventsV1EventSeries
    • fromJson

      public static EventsV1EventSeries fromJson(String jsonString) throws IOException
      Create an instance of EventsV1EventSeries given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of EventsV1EventSeries
      Throws:
      IOException - if the JSON string is invalid with respect to EventsV1EventSeries
    • toJson

      public String toJson()
      Convert an instance of EventsV1EventSeries to an JSON string
      Returns:
      JSON string