struct

Kubernetes::Event

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

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.

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

action

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.

Source
action=(action : String | Nil)

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.

Source
api_version

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

Source
api_version=(api_version : String | Nil)

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

Source
count

The number of times this event has occurred.

Source
count=(count : Int32 | Nil)

The number of times this event has occurred.

Source
deprecated_count

deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_count=(deprecated_count : Int32 | Nil)

deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_first_timestamp

deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_first_timestamp=(deprecated_first_timestamp : Time | Nil)

deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_last_timestamp

deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_last_timestamp=(deprecated_last_timestamp : Time | Nil)

deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_source

deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
deprecated_source=(deprecated_source : EventSource | Nil)

deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.

Source
event_time

eventTime is the time when this Event was first observed. It is required.

Source
event_time=(event_time : MicroTime | Nil)

eventTime is the time when this Event was first observed. It is required.

Source
first_timestamp

The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)

Source
first_timestamp=(first_timestamp : Time | Nil)

The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)

Source
involved_object

The object that this event is about.

Source
involved_object=(involved_object : ObjectReference | Nil)

The object that this event is about.

Source
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

Source
kind=(kind : String | Nil)

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

Source
last_timestamp

The time at which the most recent occurrence of this event was recorded.

Source
last_timestamp=(last_timestamp : Time | Nil)

The time at which the most recent occurrence of this event was recorded.

Source
message

A human-readable description of the status of this operation.

Source
message=(message : String | Nil)

A human-readable description of the status of this operation.

Source
metadata

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Source
metadata=(metadata : ObjectMeta | Nil)

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Source
note

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.

Source
note=(note : String | Nil)

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.

Source
reason

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.

Source
reason=(reason : String | Nil)

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.

Source
regarding

regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.

Source
regarding=(regarding : ObjectReference | Nil)

regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.

Source
reporting_component

Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.

Source
reporting_component=(reporting_component : String | Nil)

Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.

Source
reporting_controller

reportingController is the name of the controller that emitted this Event, e.g. kubernetes.io/kubelet. This field cannot be empty for new Events.

Source
reporting_controller=(reporting_controller : String | Nil)

reportingController is the name of the controller that emitted this Event, e.g. kubernetes.io/kubelet. This field cannot be empty for new Events.

Source
reporting_instance

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.

Source
reporting_instance=(reporting_instance : String | Nil)

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.

Source
series

series is data about the Event series this event represents or nil if it's a singleton Event.

Source
series=(series : EventSeries | Nil)

series is data about the Event series this event represents or nil if it's a singleton Event.

Source
source

The component reporting this event. Should be a short machine understandable string.

Source
source=(source : EventSource | Nil)

The component reporting this event. Should be a short machine understandable string.

Source
type

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.

Source
type=(type : String | Nil)

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.

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source