Class Event

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class Event
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<EventBuilder>, HasMetadata, Namespaced
    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.
    See Also:
    Serialized Form
    • Method Detail

      • getAction

        public String getAction()
        What action was taken/failed regarding to the Regarding object.
      • setAction

        public void setAction​(String action)
        What action was taken/failed regarding to the Regarding object.
      • 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 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 HasMetadata
      • getCount

        public Integer getCount()
        The number of times this event has occurred.
      • setCount

        public void setCount​(Integer count)
        The number of times this event has occurred.
      • getEventTime

        public MicroTime getEventTime()
        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.
      • setEventTime

        public void setEventTime​(MicroTime eventTime)
        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.
      • getFirstTimestamp

        public String getFirstTimestamp()
        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.
      • setFirstTimestamp

        public void setFirstTimestamp​(String firstTimestamp)
        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.
      • getInvolvedObject

        public ObjectReference getInvolvedObject()
        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.
      • setInvolvedObject

        public void setInvolvedObject​(ObjectReference involvedObject)
        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.
      • 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 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
      • getLastTimestamp

        public String getLastTimestamp()
        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.
      • setLastTimestamp

        public void setLastTimestamp​(String lastTimestamp)
        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.
      • getMessage

        public String getMessage()
        A human-readable description of the status of this operation.
      • setMessage

        public void setMessage​(String message)
        A human-readable description of the status of this operation.
      • getMetadata

        public ObjectMeta getMetadata()
        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.
        Specified by:
        getMetadata in interface HasMetadata
      • setMetadata

        public void setMetadata​(ObjectMeta metadata)
        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.
        Specified by:
        setMetadata in interface HasMetadata
      • getReason

        public String getReason()
        This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
      • setReason

        public void setReason​(String reason)
        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()
        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.
      • setRelated

        public void setRelated​(ObjectReference related)
        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.
      • getReportingComponent

        public String getReportingComponent()
        Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
      • setReportingComponent

        public void setReportingComponent​(String reportingComponent)
        Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
      • getReportingInstance

        public String getReportingInstance()
        ID of the controller instance, e.g. `kubelet-xyzf`.
      • setReportingInstance

        public void setReportingInstance​(String reportingInstance)
        ID of the controller instance, e.g. `kubelet-xyzf`.
      • getSeries

        public EventSeries getSeries()
        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.
      • setSeries

        public void setSeries​(EventSeries series)
        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.
      • getSource

        public EventSource getSource()
        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.
      • setSource

        public void setSource​(EventSource source)
        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.
      • getType

        public String getType()
        Type of this event (Normal, Warning), new types could be added in the future
      • setType

        public void setType​(String type)
        Type of this event (Normal, Warning), new types could be added in the future
      • 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)