Class CoreV1Event
java.lang.Object
io.kubernetes.client.openapi.models.CoreV1Event
- All Implemented Interfaces:
KubernetesObject
,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class CoreV1Event
extends Object
implements KubernetesObject
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) boolean
eventTime
(OffsetDateTime eventTime) firstTimestamp
(OffsetDateTime firstTimestamp) What action was taken/failed regarding to the Regarding object.APIVersion defines the versioned schema of this representation of an object.getCount()
The number of times this event has occurred.Time when this Event was first observed.The time at which the event was first recorded.Get involvedObjectgetKind()
Kind is a string value representing the REST resource this object represents.The time at which the most recent occurrence of this event was recorded.A human-readable description of the status of this operation.Get metadataThis should be a short, machine understandable string that gives the reason for the transition into the object's current status.Get relatedName of the controller that emitted this Event, e.g.ID of the controller instance, e.g.Get seriesGet sourcegetType()
Type of this event (Normal, Warning), new types could be added in the futureint
hashCode()
involvedObject
(V1ObjectReference involvedObject) lastTimestamp
(OffsetDateTime lastTimestamp) metadata
(V1ObjectMeta metadata) related
(V1ObjectReference related) reportingComponent
(String reportingComponent) reportingInstance
(String reportingInstance) series
(CoreV1EventSeries series) void
void
setApiVersion
(String apiVersion) void
void
setEventTime
(OffsetDateTime eventTime) void
setFirstTimestamp
(OffsetDateTime firstTimestamp) void
setInvolvedObject
(V1ObjectReference involvedObject) void
void
setLastTimestamp
(OffsetDateTime lastTimestamp) void
setMessage
(String message) void
setMetadata
(V1ObjectMeta metadata) void
void
setRelated
(V1ObjectReference related) void
setReportingComponent
(String reportingComponent) void
setReportingInstance
(String reportingInstance) void
setSeries
(CoreV1EventSeries series) void
setSource
(V1EventSource source) void
source
(V1EventSource source) toString()
-
Field Details
-
SERIALIZED_NAME_ACTION
- See Also:
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_EVENT_TIME
- See Also:
-
SERIALIZED_NAME_FIRST_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_INVOLVED_OBJECT
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_LAST_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_RELATED
- See Also:
-
SERIALIZED_NAME_REPORTING_COMPONENT
- See Also:
-
SERIALIZED_NAME_REPORTING_INSTANCE
- See Also:
-
SERIALIZED_NAME_SERIES
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
-
Constructor Details
-
CoreV1Event
public CoreV1Event()
-
-
Method Details
-
action
-
getAction
What action was taken/failed regarding to the Regarding object.- Returns:
- action
-
setAction
-
apiVersion
-
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 interfaceKubernetesType
- Returns:
- apiVersion
-
setApiVersion
-
count
-
getCount
The number of times this event has occurred.- Returns:
- count
-
setCount
-
eventTime
-
getEventTime
Time when this Event was first observed.- Returns:
- eventTime
-
setEventTime
-
firstTimestamp
-
getFirstTimestamp
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)- Returns:
- firstTimestamp
-
setFirstTimestamp
-
involvedObject
-
getInvolvedObject
Get involvedObject- Returns:
- involvedObject
-
setInvolvedObject
-
kind
-
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 interfaceKubernetesType
- Returns:
- kind
-
setKind
-
lastTimestamp
-
getLastTimestamp
The time at which the most recent occurrence of this event was recorded.- Returns:
- lastTimestamp
-
setLastTimestamp
-
message
-
getMessage
A human-readable description of the status of this operation.- Returns:
- message
-
setMessage
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadata
in interfaceKubernetesObject
- Returns:
- metadata
-
setMetadata
-
reason
-
getReason
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.- Returns:
- reason
-
setReason
-
getRelated
Get related- Returns:
- related
-
setRelated
-
reportingComponent
-
getReportingComponent
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.- Returns:
- reportingComponent
-
setReportingComponent
-
reportingInstance
-
getReportingInstance
ID of the controller instance, e.g. `kubelet-xyzf`.- Returns:
- reportingInstance
-
setReportingInstance
-
series
-
getSeries
Get series- Returns:
- series
-
setSeries
-
source
-
getSource
Get source- Returns:
- source
-
setSource
-
type
-
getType
Type of this event (Normal, Warning), new types could be added in the future- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-