Event class

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.

Constructors

Event({String? action, String? apiVersion, int? count, String? eventTime, DateTime? firstTimestamp, required ObjectReference involvedObject, String? kind, DateTime? lastTimestamp, String? message, required ObjectMeta metadata, String? reason, ObjectReference? related, String? reportingComponent, String? reportingInstance, EventSeries? series, EventSource? source, String? type})
Default constructor.
const
Event.fromJson(Map<String, dynamic> json)
Creates a Event from JSON data.
factory

Properties

action String?
What action was taken/failed regarding to the Regarding object.
final
apiVersion String?
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.
final
count int?
The number of times this event has occurred.
final
eventTime String?
Time when this Event was first observed.
final
firstTimestamp DateTime?
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.).
final
hashCode int
The hash code for this object.
no setterinherited
involvedObject ObjectReference
The object that this event is about.
final
kind String?
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.
final
lastTimestamp DateTime?
The time at which the most recent occurrence of this event was recorded.
final
message String?
A human-readable description of the status of this operation.
final
metadata ObjectMeta
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
final
reason String?
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
final
Optional secondary object for more complex actions.
final
reportingComponent String?
Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.
final
reportingInstance String?
ID of the controller instance, e.g. kubelet-xyzf.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series EventSeries?
Data about the Event series this event represents or nil if it's a singleton Event.
final
source EventSource?
The component reporting this event. Should be a short machine understandable string.
final
type String?
Type of this event (Normal, Warning), new types could be added in the future.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a Event instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited