Class EventSeries
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.events.v1.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventSeries.Builder
-
Constructor Summary
Constructors Constructor Description EventSeries()
EventSeries(@NonNull java.lang.Number count, @NonNull java.time.OffsetDateTime lastObservedTime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventSeries.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.Number
getCount()
count is the number of occurrences in this series up to the last heartbeat time.@NonNull java.time.OffsetDateTime
getLastObservedTime()
int
hashCode()
void
setCount(@NonNull java.lang.Number count)
count is the number of occurrences in this series up to the last heartbeat time.void
setLastObservedTime(@NonNull java.time.OffsetDateTime lastObservedTime)
EventSeries.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static EventSeries.Builder builder()
-
toBuilder
public EventSeries.Builder toBuilder()
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-