struct
Kubernetes::Event
- Kubernetes::Event
- Struct
- Value
- Object
Overview
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.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crgenerated/models/io_k8s_api_events_v1.cr
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#action : String | Nil
action is what action was taken/failed regarding to the regarding object.
-
#action=(action : String | Nil)
action is what action was taken/failed regarding to the regarding object.
-
#api_version : String | Nil
APIVersion defines the versioned schema of this representation of an object.
-
#api_version=(api_version : String | Nil)
APIVersion defines the versioned schema of this representation of an object.
-
#count : Int32 | Nil
The number of times this event has occurred.
-
#count=(count : Int32 | Nil)
The number of times this event has occurred.
-
#deprecated_count : Int32 | Nil
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_count=(deprecated_count : Int32 | Nil)
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_first_timestamp : Time | Nil
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_first_timestamp=(deprecated_first_timestamp : Time | Nil)
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_last_timestamp : Time | Nil
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_last_timestamp=(deprecated_last_timestamp : Time | Nil)
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_source : EventSource | Nil
deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#deprecated_source=(deprecated_source : EventSource | Nil)
deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
-
#event_time : MicroTime | Nil
eventTime is the time when this Event was first observed.
-
#event_time=(event_time : MicroTime | Nil)
eventTime is the time when this Event was first observed.
-
#first_timestamp : Time | Nil
The time at which the event was first recorded.
-
#first_timestamp=(first_timestamp : Time | Nil)
The time at which the event was first recorded.
-
#involved_object : ObjectReference | Nil
The object that this event is about.
-
#involved_object=(involved_object : ObjectReference | Nil)
The object that this event is about.
-
#kind : String | Nil
Kind is a string value representing the REST resource this object represents.
-
#kind=(kind : String | Nil)
Kind is a string value representing the REST resource this object represents.
-
#last_timestamp : Time | Nil
The time at which the most recent occurrence of this event was recorded.
-
#last_timestamp=(last_timestamp : Time | Nil)
The time at which the most recent occurrence of this event was recorded.
-
#message : String | Nil
A human-readable description of the status of this operation.
-
#message=(message : String | Nil)
A human-readable description of the status of this operation.
-
#metadata : ObjectMeta | Nil
Standard object's metadata.
-
#metadata=(metadata : ObjectMeta | Nil)
Standard object's metadata.
-
#note : String | Nil
note is a human-readable description of the status of this operation.
-
#note=(note : String | Nil)
note is a human-readable description of the status of this operation.
-
#reason : String | Nil
reason is why the action was taken.
-
#reason=(reason : String | Nil)
reason is why the action was taken.
-
#regarding : ObjectReference | Nil
regarding contains the object this Event is about.
-
#regarding=(regarding : ObjectReference | Nil)
regarding contains the object this Event is about.
-
#related : ObjectReference | Nil
related is the optional secondary object for more complex actions.
-
#related=(related : ObjectReference | Nil)
related is the optional secondary object for more complex actions.
-
#reporting_component : String | Nil
Name of the controller that emitted this Event, e.g.
-
#reporting_component=(reporting_component : String | Nil)
Name of the controller that emitted this Event, e.g.
-
#reporting_controller : String | Nil
reportingController is the name of the controller that emitted this Event, e.g.
-
#reporting_controller=(reporting_controller : String | Nil)
reportingController is the name of the controller that emitted this Event, e.g.
-
#reporting_instance : String | Nil
reportingInstance is the ID of the controller instance, e.g.
-
#reporting_instance=(reporting_instance : String | Nil)
reportingInstance is the ID of the controller instance, e.g.
-
#series : EventSeries | Nil
series is data about the Event series this event represents or nil if it's a singleton Event.
-
#series=(series : EventSeries | Nil)
series is data about the Event series this event represents or nil if it's a singleton Event.
-
#source : EventSource | Nil
The component reporting this event.
-
#source=(source : EventSource | Nil)
The component reporting this event.
-
#type : String | Nil
type is the type of this event (Normal, Warning), new types could be added in the future.
-
#type=(type : String | Nil)
type is the type of this event (Normal, Warning), new types could be added in the future.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
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.
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.
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
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
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
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.
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.
deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
eventTime is the time when this Event was first observed. It is required.
eventTime is the time when this Event was first observed. It is required.
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
The object that this event is about.
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
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
The time at which the most recent occurrence of this event was recorded.
The time at which the most recent occurrence of this event was recorded.
A human-readable description of the status of this operation.
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
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.
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.
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.
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.
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.
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.
Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.
Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.
reportingController is the name of the controller that emitted this Event, e.g. kubernetes.io/kubelet. This field cannot be empty for new Events.
reportingController is the name of the controller that emitted this Event, e.g. kubernetes.io/kubelet. This field cannot be empty for new Events.
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.
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.
series is data about the Event series this event represents or nil if it's a singleton Event.
series is data about the Event series this event represents or nil if it's a singleton Event.
The component reporting this event. Should be a short machine understandable string.
The component reporting this event. Should be a short machine understandable string.
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.
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.