Class Corev1Event
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.
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "", Kind = "Event", ApiVersion = "v1", PluralName = "events")]
public record Corev1Event : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<Corev1Event>
Constructors
Corev1Event()
Declaration
Corev1Event(Corev1Event)
Declaration
protected Corev1Event(Corev1Event original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
KubeKind
Declaration
public const string KubeKind = "Event"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "events"
Field Value
Properties
Action
What action was taken/failed regarding to the Regarding object.
Declaration
[JsonPropertyName("action")]
public string Action { get; set; }
Property Value
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
Count
The number of times this event has occurred.
Declaration
[JsonPropertyName("count")]
public int? Count { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
EventTime
Time when this Event was first observed.
Declaration
[JsonPropertyName("eventTime")]
public DateTime? EventTime { get; set; }
Property Value
FirstTimestamp
The time at which the event was first recorded. (Time of server receipt is in
TypeMeta.)
Declaration
[JsonPropertyName("firstTimestamp")]
public DateTime? FirstTimestamp { get; set; }
Property Value
InvolvedObject
The object that this event is about.
Declaration
[JsonPropertyName("involvedObject")]
public V1ObjectReference InvolvedObject { get; set; }
Property Value
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
LastTimestamp
The time at which the most recent occurrence of this event was recorded.
Declaration
[JsonPropertyName("lastTimestamp")]
public DateTime? LastTimestamp { get; set; }
Property Value
Message
A human-readable description of the status of this operation.
Declaration
[JsonPropertyName("message")]
public string Message { get; set; }
Property Value
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
Reason
This should be a short, machine understandable string that gives the reason for
the transition into the object's current status.
Declaration
[JsonPropertyName("reason")]
public string Reason { get; set; }
Property Value
Optional secondary object for more complex actions.
Declaration
[JsonPropertyName("related")]
public V1ObjectReference Related { get; set; }
Property Value
ReportingComponent
Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.
Declaration
[JsonPropertyName("reportingComponent")]
public string ReportingComponent { get; set; }
Property Value
ReportingInstance
ID of the controller instance, e.g. kubelet-xyzf.
Declaration
[JsonPropertyName("reportingInstance")]
public string ReportingInstance { get; set; }
Property Value
Series
Data about the Event series this event represents or nil if it's a singleton
Event.
Declaration
[JsonPropertyName("series")]
public Corev1EventSeries Series { get; set; }
Property Value
Source
The component reporting this event. Should be a short machine understandable
string.
Declaration
[JsonPropertyName("source")]
public V1EventSource Source { get; set; }
Property Value
Type
Type of this event (Normal, Warning), new types could be added in the future
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(Corev1Event?)
Declaration
public virtual bool Equals(Corev1Event? 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 ==(Corev1Event?, Corev1Event?)
Declaration
public static bool operator ==(Corev1Event? left, Corev1Event? right)
Parameters
Returns
operator !=(Corev1Event?, Corev1Event?)
Declaration
public static bool operator !=(Corev1Event? left, Corev1Event? right)
Parameters
Returns
Implements
Extension Methods