Package io.fabric8.kubernetes.api.model
Class Event
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.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
-
-
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 serializationEvent(String action, String apiVersion, Integer count, MicroTime eventTime, String firstTimestamp, ObjectReference involvedObject, String kind, String lastTimestamp, String message, ObjectMeta metadata, String reason, ObjectReference related, String reportingComponent, String reportingInstance, EventSeries series, EventSource source, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventBuilder
edit()
String
getAction()
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
getCount()
The number of times this event has occurred.MicroTime
getEventTime()
Event is a report of an event somewhere in the cluster.String
getFirstTimestamp()
Event is a report of an event somewhere in the cluster.ObjectReference
getInvolvedObject()
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.String
getLastTimestamp()
Event is a report of an event somewhere in the cluster.String
getMessage()
A human-readable description of the status of this operation.ObjectMeta
getMetadata()
Event is a report of an event somewhere in the cluster.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()
Event is a report of an event somewhere in the cluster.String
getReportingComponent()
Name of the controller that emitted this Event, e.g.String
getReportingInstance()
ID of the controller instance, e.g.EventSeries
getSeries()
Event is a report of an event somewhere in the cluster.EventSource
getSource()
Event is a report of an event somewhere in the cluster.String
getType()
Type of this event (Normal, Warning), new types could be added in the futurevoid
setAction(String action)
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
setCount(Integer count)
The number of times this event has occurred.void
setEventTime(MicroTime eventTime)
Event is a report of an event somewhere in the cluster.void
setFirstTimestamp(String firstTimestamp)
Event is a report of an event somewhere in the cluster.void
setInvolvedObject(ObjectReference involvedObject)
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
setLastTimestamp(String lastTimestamp)
Event is a report of an event somewhere in the cluster.void
setMessage(String message)
A human-readable description of the status of this operation.void
setMetadata(ObjectMeta metadata)
Event is a report of an event somewhere in the cluster.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.void
setRelated(ObjectReference related)
Event is a report of an event somewhere in the cluster.void
setReportingComponent(String reportingComponent)
Name of the controller that emitted this Event, e.g.void
setReportingInstance(String reportingInstance)
ID of the controller instance, e.g.void
setSeries(EventSeries series)
Event is a report of an event somewhere in the cluster.void
setSource(EventSource source)
Event is a report of an event somewhere in the cluster.void
setType(String type)
Type of this event (Normal, Warning), new types could be added in the futureEventBuilder
toBuilder()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 count, MicroTime eventTime, String firstTimestamp, ObjectReference involvedObject, String kind, String lastTimestamp, String message, ObjectMeta metadata, String reason, ObjectReference related, String reportingComponent, String reportingInstance, EventSeries series, EventSource source, String type)
-
-
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 interfaceHasMetadata
-
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 interfaceHasMetadata
-
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 interfaceHasMetadata
-
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 interfaceHasMetadata
-
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 interfaceHasMetadata
-
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 interfaceio.fabric8.kubernetes.api.builder.Editable<EventBuilder>
-
toBuilder
public EventBuilder toBuilder()
-
-