Class Event

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<EventBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.KubernetesResource, io.fabric8.kubernetes.api.model.Namespaced, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class Event
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<EventBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.Namespaced
    Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface io.fabric8.kubernetes.api.model.HasMetadata

        DNS_LABEL_END, DNS_LABEL_REGEXP, DNS_LABEL_START, FINALIZER_NAME_MATCHER, REQUIRES_NON_NULL_METADATA, REQUIRES_NON_NULL_NAME, REQUIRES_NON_NULL_NAMESPACE
    • Constructor Summary

      Constructors 
      Constructor Description
      Event()
      No args constructor for use in serialization
      Event​(String action, String apiVersion, Integer deprecatedCount, String deprecatedFirstTimestamp, String deprecatedLastTimestamp, io.fabric8.kubernetes.api.model.EventSource deprecatedSource, io.fabric8.kubernetes.api.model.MicroTime eventTime, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String note, String reason, io.fabric8.kubernetes.api.model.ObjectReference regarding, io.fabric8.kubernetes.api.model.ObjectReference related, String reportingController, String reportingInstance, EventSeries series, String type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EventBuilder edit()  
      String getAction()
      action is what action was taken/failed regarding to the regarding object.
      Map<String,​Object> getAdditionalProperties()  
      String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object.
      Integer getDeprecatedCount()
      deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
      String getDeprecatedFirstTimestamp()
      Event is a report of an event somewhere in the cluster.
      String getDeprecatedLastTimestamp()
      Event is a report of an event somewhere in the cluster.
      io.fabric8.kubernetes.api.model.EventSource getDeprecatedSource()
      Event is a report of an event somewhere in the cluster.
      io.fabric8.kubernetes.api.model.MicroTime getEventTime()
      Event is a report of an event somewhere in the cluster.
      String getKind()
      Kind is a string value representing the REST resource this object represents.
      io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
      Event is a report of an event somewhere in the cluster.
      String getNote()
      note is a human-readable description of the status of this operation.
      String getReason()
      reason is why the action was taken.
      io.fabric8.kubernetes.api.model.ObjectReference getRegarding()
      Event is a report of an event somewhere in the cluster.
      io.fabric8.kubernetes.api.model.ObjectReference getRelated()
      Event is a report of an event somewhere in the cluster.
      String getReportingController()
      reportingController is the name of the controller that emitted this Event, e.g.
      String getReportingInstance()
      reportingInstance is the ID of the controller instance, e.g.
      EventSeries getSeries()
      Event is a report of an event somewhere in the cluster.
      String getType()
      type is the type of this event (Normal, Warning), new types could be added in the future.
      void setAction​(String action)
      action is what action was taken/failed regarding to the regarding object.
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setApiVersion​(String apiVersion)
      APIVersion defines the versioned schema of this representation of an object.
      void setDeprecatedCount​(Integer deprecatedCount)
      deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
      void setDeprecatedFirstTimestamp​(String deprecatedFirstTimestamp)
      Event is a report of an event somewhere in the cluster.
      void setDeprecatedLastTimestamp​(String deprecatedLastTimestamp)
      Event is a report of an event somewhere in the cluster.
      void setDeprecatedSource​(io.fabric8.kubernetes.api.model.EventSource deprecatedSource)
      Event is a report of an event somewhere in the cluster.
      void setEventTime​(io.fabric8.kubernetes.api.model.MicroTime eventTime)
      Event is a report of an event somewhere in the cluster.
      void setKind​(String kind)
      Kind is a string value representing the REST resource this object represents.
      void setMetadata​(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
      Event is a report of an event somewhere in the cluster.
      void setNote​(String note)
      note is a human-readable description of the status of this operation.
      void setReason​(String reason)
      reason is why the action was taken.
      void setRegarding​(io.fabric8.kubernetes.api.model.ObjectReference regarding)
      Event is a report of an event somewhere in the cluster.
      void setRelated​(io.fabric8.kubernetes.api.model.ObjectReference related)
      Event is a report of an event somewhere in the cluster.
      void setReportingController​(String reportingController)
      reportingController is the name of the controller that emitted this Event, e.g.
      void setReportingInstance​(String reportingInstance)
      reportingInstance is the ID of the controller instance, e.g.
      void setSeries​(EventSeries series)
      Event is a report of an event somewhere in the cluster.
      void setType​(String type)
      type is the type of this event (Normal, Warning), new types could be added in the future.
      EventBuilder toBuilder()  
      • Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata

        addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
    • Constructor Detail

      • Event

        public Event()
        No args constructor for use in serialization
      • Event

        public Event​(String action,
                     String apiVersion,
                     Integer deprecatedCount,
                     String deprecatedFirstTimestamp,
                     String deprecatedLastTimestamp,
                     io.fabric8.kubernetes.api.model.EventSource deprecatedSource,
                     io.fabric8.kubernetes.api.model.MicroTime eventTime,
                     String kind,
                     io.fabric8.kubernetes.api.model.ObjectMeta metadata,
                     String note,
                     String reason,
                     io.fabric8.kubernetes.api.model.ObjectReference regarding,
                     io.fabric8.kubernetes.api.model.ObjectReference related,
                     String reportingController,
                     String reportingInstance,
                     EventSeries series,
                     String type)
    • Method Detail

      • getAction

        public String getAction()
        action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.
      • setAction

        public void setAction​(String action)
        action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.
      • getApiVersion

        public 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
        Specified by:
        getApiVersion in interface io.fabric8.kubernetes.api.model.HasMetadata
      • setApiVersion

        public void setApiVersion​(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
        Specified by:
        setApiVersion in interface io.fabric8.kubernetes.api.model.HasMetadata
      • getDeprecatedCount

        public Integer getDeprecatedCount()
        deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
      • setDeprecatedCount

        public void setDeprecatedCount​(Integer deprecatedCount)
        deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
      • getDeprecatedFirstTimestamp

        public String getDeprecatedFirstTimestamp()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setDeprecatedFirstTimestamp

        public void setDeprecatedFirstTimestamp​(String deprecatedFirstTimestamp)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getDeprecatedLastTimestamp

        public String getDeprecatedLastTimestamp()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setDeprecatedLastTimestamp

        public void setDeprecatedLastTimestamp​(String deprecatedLastTimestamp)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getDeprecatedSource

        public io.fabric8.kubernetes.api.model.EventSource getDeprecatedSource()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setDeprecatedSource

        public void setDeprecatedSource​(io.fabric8.kubernetes.api.model.EventSource deprecatedSource)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getEventTime

        public io.fabric8.kubernetes.api.model.MicroTime getEventTime()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setEventTime

        public void setEventTime​(io.fabric8.kubernetes.api.model.MicroTime eventTime)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getKind

        public 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
        Specified by:
        getKind in interface io.fabric8.kubernetes.api.model.HasMetadata
      • setKind

        public void setKind​(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
      • getMetadata

        public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
        Specified by:
        getMetadata in interface io.fabric8.kubernetes.api.model.HasMetadata
      • setMetadata

        public void setMetadata​(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
        Specified by:
        setMetadata in interface io.fabric8.kubernetes.api.model.HasMetadata
      • getNote

        public String getNote()
        note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
      • setNote

        public void setNote​(String note)
        note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
      • getReason

        public String getReason()
        reason is why the action was taken. It is human-readable. This field can have at most 128 characters.
      • setReason

        public void setReason​(String reason)
        reason is why the action was taken. It is human-readable. This field can have at most 128 characters.
      • getRegarding

        public io.fabric8.kubernetes.api.model.ObjectReference getRegarding()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setRegarding

        public void setRegarding​(io.fabric8.kubernetes.api.model.ObjectReference regarding)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getRelated

        public io.fabric8.kubernetes.api.model.ObjectReference getRelated()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setRelated

        public void setRelated​(io.fabric8.kubernetes.api.model.ObjectReference related)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getReportingController

        public String getReportingController()
        reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
      • setReportingController

        public void setReportingController​(String reportingController)
        reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
      • getReportingInstance

        public String getReportingInstance()
        reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
      • setReportingInstance

        public void setReportingInstance​(String reportingInstance)
        reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
      • getSeries

        public EventSeries getSeries()
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • setSeries

        public void setSeries​(EventSeries series)
        Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
      • getType

        public String getType()
        type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.
      • setType

        public void setType​(String type)
        type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.
      • edit

        public EventBuilder edit()
        Specified by:
        edit in interface io.fabric8.kubernetes.api.builder.Editable<EventBuilder>
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)