Class EventsV1Event
java.lang.Object
io.kubernetes.client.openapi.models.EventsV1Event
- All Implemented Interfaces:
KubernetesObject
,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class EventsV1Event
extends Object
implements KubernetesObject
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.
-
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) deprecatedCount
(Integer deprecatedCount) deprecatedFirstTimestamp
(OffsetDateTime deprecatedFirstTimestamp) deprecatedLastTimestamp
(OffsetDateTime deprecatedLastTimestamp) deprecatedSource
(V1EventSource deprecatedSource) boolean
eventTime
(OffsetDateTime eventTime) action is what action was taken/failed regarding to the regarding object.APIVersion defines the versioned schema of this representation of an object.deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.Get deprecatedSourceeventTime is the time when this Event was first observed.getKind()
Kind is a string value representing the REST resource this object represents.Get metadatagetNote()
note is a human-readable description of the status of this operation.reason is why the action was taken.Get regardingGet relatedreportingController is the name of the controller that emitted this Event, e.g.reportingInstance is the ID of the controller instance, e.g.Get seriesgetType()
type is the type of this event (Normal, Warning), new types could be added in the future.int
hashCode()
metadata
(V1ObjectMeta metadata) regarding
(V1ObjectReference regarding) related
(V1ObjectReference related) reportingController
(String reportingController) reportingInstance
(String reportingInstance) series
(EventsV1EventSeries series) void
void
setApiVersion
(String apiVersion) void
setDeprecatedCount
(Integer deprecatedCount) void
setDeprecatedFirstTimestamp
(OffsetDateTime deprecatedFirstTimestamp) void
setDeprecatedLastTimestamp
(OffsetDateTime deprecatedLastTimestamp) void
setDeprecatedSource
(V1EventSource deprecatedSource) void
setEventTime
(OffsetDateTime eventTime) void
void
setMetadata
(V1ObjectMeta metadata) void
void
void
setRegarding
(V1ObjectReference regarding) void
setRelated
(V1ObjectReference related) void
setReportingController
(String reportingController) void
setReportingInstance
(String reportingInstance) void
setSeries
(EventsV1EventSeries series) void
toString()
-
Field Details
-
SERIALIZED_NAME_ACTION
- See Also:
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_DEPRECATED_COUNT
- See Also:
-
SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_DEPRECATED_SOURCE
- See Also:
-
SERIALIZED_NAME_EVENT_TIME
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_REGARDING
- See Also:
-
SERIALIZED_NAME_RELATED
- See Also:
-
SERIALIZED_NAME_REPORTING_CONTROLLER
- See Also:
-
SERIALIZED_NAME_REPORTING_INSTANCE
- See Also:
-
SERIALIZED_NAME_SERIES
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
-
Constructor Details
-
EventsV1Event
public EventsV1Event()
-
-
Method Details
-
action
-
getAction
action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.- 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
-
deprecatedCount
-
getDeprecatedCount
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
- deprecatedCount
-
setDeprecatedCount
-
deprecatedFirstTimestamp
-
getDeprecatedFirstTimestamp
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
- deprecatedFirstTimestamp
-
setDeprecatedFirstTimestamp
-
deprecatedLastTimestamp
-
getDeprecatedLastTimestamp
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
- deprecatedLastTimestamp
-
setDeprecatedLastTimestamp
-
deprecatedSource
-
getDeprecatedSource
Get deprecatedSource- Returns:
- deprecatedSource
-
setDeprecatedSource
-
eventTime
-
getEventTime
eventTime is the time when this Event was first observed. It is required.- Returns:
- eventTime
-
setEventTime
-
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
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadata
in interfaceKubernetesObject
- Returns:
- metadata
-
setMetadata
-
note
-
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.- Returns:
- note
-
setNote
-
reason
-
getReason
reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.- Returns:
- reason
-
setReason
-
regarding
-
getRegarding
Get regarding- Returns:
- regarding
-
setRegarding
-
getRelated
Get related- Returns:
- related
-
setRelated
-
reportingController
-
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.- Returns:
- reportingController
-
setReportingController
-
reportingInstance
-
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.- Returns:
- reportingInstance
-
setReportingInstance
-
series
-
getSeries
Get series- Returns:
- series
-
setSeries
-
type
-
getType
type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-