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
View Source
Eventsv1Event()
Declaration
View Source
Eventsv1Event(Eventsv1Event)
Declaration
protected Eventsv1Event(Eventsv1Event original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = "events.k8s.io"
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "Event"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "events"
Field Value
Properties
View Source
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
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
DeprecatedCount
deprecatedCount is the deprecated field assuring backward compatibility with
core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedCount")]
public int? DeprecatedCount { get; set; }
Property Value
View Source
DeprecatedFirstTimestamp
deprecatedFirstTimestamp is the deprecated field assuring backward compatibility
with core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedFirstTimestamp")]
public DateTime? DeprecatedFirstTimestamp { get; set; }
Property Value
View Source
DeprecatedLastTimestamp
deprecatedLastTimestamp is the deprecated field assuring backward compatibility
with core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedLastTimestamp")]
public DateTime? DeprecatedLastTimestamp { get; set; }
Property Value
View Source
DeprecatedSource
deprecatedSource is the deprecated field assuring backward compatibility with
core.v1 Event type.
Declaration
[JsonPropertyName("deprecatedSource")]
public V1EventSource DeprecatedSource { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
EventTime
eventTime is the time when this Event was first observed. It is required.
Declaration
[JsonPropertyName("eventTime")]
public DateTime? EventTime { get; set; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View 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.
Declaration
[JsonPropertyName("note")]
public string Note { get; set; }
Property Value
View 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.
Declaration
[JsonPropertyName("reason")]
public string Reason { get; set; }
Property Value
View 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.
Declaration
[JsonPropertyName("regarding")]
public V1ObjectReference Regarding { get; set; }
Property Value
View Source
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
View Source
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
View Source
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
View Source
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
View 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.
Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(Eventsv1Event?)
Declaration
public virtual bool Equals(Eventsv1Event? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(Eventsv1Event?, Eventsv1Event?)
Declaration
public static bool operator ==(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Returns
View Source
operator !=(Eventsv1Event?, Eventsv1Event?)
Declaration
public static bool operator !=(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Returns
Implements
Extension Methods