Class Event
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Event
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Event extends java.lang.Object implements com.marcnuri.yakc.model.Model
Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.Builder
-
Constructor Summary
Constructors Constructor Description Event()
Event(java.lang.String action, java.lang.String apiVersion, java.lang.Number count, java.time.OffsetDateTime eventTime, java.time.OffsetDateTime firstTimestamp, @NonNull ObjectReference involvedObject, java.lang.String kind, java.time.OffsetDateTime lastTimestamp, java.lang.String message, @NonNull ObjectMeta metadata, java.lang.String reason, ObjectReference related, java.lang.String reportingComponent, java.lang.String reportingInstance, EventSeries series, EventSource source, java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Event.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAction()
What action was taken/failed regarding to the Regarding object.java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.java.lang.Number
getCount()
The number of times this event has occurred.java.time.OffsetDateTime
getEventTime()
java.time.OffsetDateTime
getFirstTimestamp()
@NonNull ObjectReference
getInvolvedObject()
java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.java.time.OffsetDateTime
getLastTimestamp()
java.lang.String
getMessage()
A human-readable description of the status of this operation.@NonNull ObjectMeta
getMetadata()
java.lang.String
getReason()
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.ObjectReference
getRelated()
java.lang.String
getReportingComponent()
Name of the controller that emitted this Event, e.g.java.lang.String
getReportingInstance()
ID of the controller instance, e.g.EventSeries
getSeries()
EventSource
getSource()
java.lang.String
getType()
Type of this event (Normal, Warning), new types could be added in the futureint
hashCode()
void
setAction(java.lang.String action)
What action was taken/failed regarding to the Regarding object.void
setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.void
setCount(java.lang.Number count)
The number of times this event has occurred.void
setEventTime(java.time.OffsetDateTime eventTime)
void
setFirstTimestamp(java.time.OffsetDateTime firstTimestamp)
void
setInvolvedObject(@NonNull ObjectReference involvedObject)
void
setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.void
setLastTimestamp(java.time.OffsetDateTime lastTimestamp)
void
setMessage(java.lang.String message)
A human-readable description of the status of this operation.void
setMetadata(@NonNull ObjectMeta metadata)
void
setReason(java.lang.String reason)
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.void
setRelated(ObjectReference related)
void
setReportingComponent(java.lang.String reportingComponent)
Name of the controller that emitted this Event, e.g.void
setReportingInstance(java.lang.String reportingInstance)
ID of the controller instance, e.g.void
setSeries(EventSeries series)
void
setSource(EventSource source)
void
setType(java.lang.String type)
Type of this event (Normal, Warning), new types could be added in the futureEvent.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Event
public Event(java.lang.String action, java.lang.String apiVersion, java.lang.Number count, java.time.OffsetDateTime eventTime, java.time.OffsetDateTime firstTimestamp, @NonNull @NonNull ObjectReference involvedObject, java.lang.String kind, java.time.OffsetDateTime lastTimestamp, java.lang.String message, @NonNull @NonNull ObjectMeta metadata, java.lang.String reason, ObjectReference related, java.lang.String reportingComponent, java.lang.String reportingInstance, EventSeries series, EventSource source, java.lang.String type)
-
Event
public Event()
-
-
Method Detail
-
builder
public static Event.Builder builder()
-
toBuilder
public Event.Builder toBuilder()
-
getAction
public java.lang.String getAction()
What action was taken/failed regarding to the Regarding object.
-
getApiVersion
public java.lang.String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
getCount
public java.lang.Number getCount()
The number of times this event has occurred.
-
getEventTime
public java.time.OffsetDateTime getEventTime()
-
getFirstTimestamp
public java.time.OffsetDateTime getFirstTimestamp()
-
getInvolvedObject
@NonNull public @NonNull ObjectReference getInvolvedObject()
-
getKind
public java.lang.String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getLastTimestamp
public java.time.OffsetDateTime getLastTimestamp()
-
getMessage
public java.lang.String getMessage()
A human-readable description of the status of this operation.
-
getMetadata
@NonNull public @NonNull ObjectMeta getMetadata()
-
getReason
public java.lang.String getReason()
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
-
getRelated
public ObjectReference getRelated()
-
getReportingComponent
public java.lang.String getReportingComponent()
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
-
getReportingInstance
public java.lang.String getReportingInstance()
ID of the controller instance, e.g. `kubelet-xyzf`.
-
getSeries
public EventSeries getSeries()
-
getSource
public EventSource getSource()
-
getType
public java.lang.String getType()
Type of this event (Normal, Warning), new types could be added in the future
-
setAction
public void setAction(java.lang.String action)
What action was taken/failed regarding to the Regarding object.
-
setApiVersion
public void setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
setCount
public void setCount(java.lang.Number count)
The number of times this event has occurred.
-
setEventTime
public void setEventTime(java.time.OffsetDateTime eventTime)
-
setFirstTimestamp
public void setFirstTimestamp(java.time.OffsetDateTime firstTimestamp)
-
setInvolvedObject
public void setInvolvedObject(@NonNull @NonNull ObjectReference involvedObject)
-
setKind
public void setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setLastTimestamp
public void setLastTimestamp(java.time.OffsetDateTime lastTimestamp)
-
setMessage
public void setMessage(java.lang.String message)
A human-readable description of the status of this operation.
-
setMetadata
public void setMetadata(@NonNull @NonNull ObjectMeta metadata)
-
setReason
public void setReason(java.lang.String reason)
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
-
setRelated
public void setRelated(ObjectReference related)
-
setReportingComponent
public void setReportingComponent(java.lang.String reportingComponent)
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
-
setReportingInstance
public void setReportingInstance(java.lang.String reportingInstance)
ID of the controller instance, e.g. `kubelet-xyzf`.
-
setSeries
public void setSeries(EventSeries series)
-
setSource
public void setSource(EventSource source)
-
setType
public void setType(java.lang.String type)
Type of this event (Normal, Warning), new types could be added in the future
-
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
-
-