Class CoreV1Event
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.CoreV1Event
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class CoreV1Event
extends Object
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 TypeMethodDescriptionSet action in a chainable fashion.apiVersion
(String apiVersion) Set apiVersion in a chainable fashion.Set count in a chainable fashion.boolean
eventTime
(ZonedDateTime eventTime) Set eventTime in a chainable fashion.firstTimestamp
(ZonedDateTime firstTimestamp) Set firstTimestamp in a chainable fashion.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.getKind()
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.This should be a short, machine understandable string that gives the reason for the transition into the object's current status.Name of the controller that emitted this Event, e.g.ID of the controller instance, e.g.getType()
Type of this event (Normal, Warning), new types could be added in the futureint
hashCode()
involvedObject
(V1ObjectReference involvedObject) Set involvedObject in a chainable fashion.Set kind in a chainable fashion.lastTimestamp
(ZonedDateTime lastTimestamp) Set lastTimestamp in a chainable fashion.Set message in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.Set reason in a chainable fashion.related
(V1ObjectReference related) Set related in a chainable fashion.reportingComponent
(String reportingComponent) Set reportingComponent in a chainable fashion.reportingInstance
(String reportingInstance) Set reportingInstance in a chainable fashion.series
(CoreV1EventSeries series) Set series in a chainable fashion.void
Set the action property valuevoid
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
Set the count property valuevoid
setEventTime
(ZonedDateTime eventTime) Set the eventTime property valuevoid
setFirstTimestamp
(ZonedDateTime firstTimestamp) Set the firstTimestamp property valuevoid
setInvolvedObject
(V1ObjectReference involvedObject) Set the involvedObject property valuevoid
Set the kind property valuevoid
setLastTimestamp
(ZonedDateTime lastTimestamp) Set the lastTimestamp property valuevoid
setMessage
(String message) Set the message property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
Set the reason property valuevoid
setRelated
(V1ObjectReference related) Set the related property valuevoid
setReportingComponent
(String reportingComponent) Set the reportingComponent property valuevoid
setReportingInstance
(String reportingInstance) Set the reportingInstance property valuevoid
setSeries
(CoreV1EventSeries series) Set the series property valuevoid
setSource
(V1EventSource source) Set the source property valuevoid
Set the type property valuesource
(V1EventSource source) Set source in a chainable fashion.toString()
Set type in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ACTION
- See Also:
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_COUNT
- See Also:
-
JSON_PROPERTY_EVENT_TIME
- See Also:
-
JSON_PROPERTY_FIRST_TIMESTAMP
- See Also:
-
JSON_PROPERTY_INVOLVED_OBJECT
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_LAST_TIMESTAMP
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_REASON
- See Also:
-
JSON_PROPERTY_RELATED
- See Also:
-
JSON_PROPERTY_REPORTING_COMPONENT
- See Also:
-
JSON_PROPERTY_REPORTING_INSTANCE
- See Also:
-
JSON_PROPERTY_SERIES
- See Also:
-
JSON_PROPERTY_SOURCE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CoreV1Event
-
-
Method Details
-
getAction
What action was taken/failed regarding to the Regarding object.- Returns:
- the action property value
-
setAction
Set the action property value -
action
Set action in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
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- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value -
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getCount
The number of times this event has occurred.- Returns:
- the count property value
-
setCount
Set the count property value -
count
Set count in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getEventTime
Time when this Event was first observed.- Returns:
- the eventTime property value
-
setEventTime
Set the eventTime property value -
eventTime
Set eventTime in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getFirstTimestamp
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)- Returns:
- the firstTimestamp property value
-
setFirstTimestamp
Set the firstTimestamp property value -
firstTimestamp
Set firstTimestamp in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getInvolvedObject
- Returns:
- the involvedObject property value
-
setInvolvedObject
Set the involvedObject property value -
involvedObject
Set involvedObject in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
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- Returns:
- the kind property value
-
setKind
Set the kind property value -
kind
Set kind in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getLastTimestamp
The time at which the most recent occurrence of this event was recorded.- Returns:
- the lastTimestamp property value
-
setLastTimestamp
Set the lastTimestamp property value -
lastTimestamp
Set lastTimestamp in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getMessage
A human-readable description of the status of this operation.- Returns:
- the message property value
-
setMessage
Set the message property value -
message
Set message in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getMetadata
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value -
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getReason
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.- Returns:
- the reason property value
-
setReason
Set the reason property value -
reason
Set reason in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getRelated
- Returns:
- the related property value
-
setRelated
Set the related property value -
getReportingComponent
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.- Returns:
- the reportingComponent property value
-
setReportingComponent
Set the reportingComponent property value -
reportingComponent
Set reportingComponent in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getReportingInstance
ID of the controller instance, e.g. `kubelet-xyzf`.- Returns:
- the reportingInstance property value
-
setReportingInstance
Set the reportingInstance property value -
reportingInstance
Set reportingInstance in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getSeries
- Returns:
- the series property value
-
setSeries
Set the series property value -
series
Set series in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getSource
- Returns:
- the source property value
-
setSource
Set the source property value -
source
Set source in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
getType
Type of this event (Normal, Warning), new types could be added in the future- Returns:
- the type property value
-
setType
Set the type property value -
type
Set type in a chainable fashion.- Returns:
- The same instance of CoreV1Event for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-