Class Eventsv1Event
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.
Inheritance
Eventsv1Event
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "events.k8s.io", Kind = "Event", ApiVersion = "v1", PluralName = "events")]
public record Eventsv1Event : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<Eventsv1Event>
Constructors
Eventsv1Event()
Declaration
Eventsv1Event(Eventsv1Event)
Declaration
protected Eventsv1Event(Eventsv1Event original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = "events.k8s.io"
Field Value
KubeKind
Declaration
public const string KubeKind = "Event"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "events"
Field Value
Properties
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.
Declaration
[JsonPropertyName("action")]
public string Action { get; set; }
Property Value
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
DeprecatedCount
deprecatedCount is the deprecated field assuring backward compatibility with
core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedCount")]
public int? DeprecatedCount { get; set; }
Property Value
DeprecatedFirstTimestamp
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility
with core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedFirstTimestamp")]
public DateTime? DeprecatedFirstTimestamp { get; set; }
Property Value
DeprecatedLastTimestamp
deprecatedLastTimestamp is the deprecated field assuring backward compatibility
with core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedLastTimestamp")]
public DateTime? DeprecatedLastTimestamp { get; set; }
Property Value
DeprecatedSource
deprecatedSource is the deprecated field assuring backward compatibility with
core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedSource")]
public V1EventSource DeprecatedSource { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
EventTime
eventTime is the time when this Event was first observed. It is required.
Declaration
[JsonPropertyName("eventTime")]
public DateTime? EventTime { get; set; }
Property Value
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("note")]
public string Note { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("reason")]
public string Reason { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("regarding")]
public V1ObjectReference Regarding { get; set; }
Property Value
related is the optional secondary object for more complex actions. E.g. when
regarding object triggers a creation or deletion of related object.
Declaration
[JsonPropertyName("related")]
public V1ObjectReference Related { get; set; }
Property Value
ReportingController
reportingController is the name of the controller that emitted this Event, e.g.
kubernetes.io/kubelet. This field cannot be empty for new Events.
Declaration
[JsonPropertyName("reportingController")]
public string ReportingController { get; set; }
Property Value
ReportingInstance
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.
Declaration
[JsonPropertyName("reportingInstance")]
public string ReportingInstance { get; set; }
Property Value
Series
series is data about the Event series this event represents or nil if it's a
singleton Event.
Declaration
[JsonPropertyName("series")]
public Eventsv1EventSeries Series { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(Eventsv1Event?)
Declaration
public virtual bool Equals(Eventsv1Event? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(Eventsv1Event?, Eventsv1Event?)
Declaration
public static bool operator ==(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Returns
operator !=(Eventsv1Event?, Eventsv1Event?)
Declaration
public static bool operator !=(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Returns
Implements
Extension Methods