Class 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)  
    • 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

      • 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.
      • 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`.
      • 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.
      • 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 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