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
View Source
Corev1Event()
Declaration
View Source
Corev1Event(Corev1Event)
Declaration
protected Corev1Event(Corev1Event original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = ""
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
What action was taken/failed regarding to the Regarding object.
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
Count
The number of times this event has occurred.
Declaration
[JsonPropertyName("count")]
public int? Count { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
EventTime
Time when this Event was first observed.
Declaration
[JsonPropertyName("eventTime")]
public DateTime? EventTime { get; set; }
Property Value
View Source
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
View Source
InvolvedObject
The object that this event is about.
Declaration
[JsonPropertyName("involvedObject")]
public V1ObjectReference InvolvedObject { get; set; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
LastTimestamp
The time at which the most recent occurrence of this event was recorded.
Declaration
[JsonPropertyName("lastTimestamp")]
public DateTime? LastTimestamp { get; set; }
Property Value
View Source
Message
A human-readable description of the status of this operation.
Declaration
[JsonPropertyName("message")]
public string Message { get; set; }
Property Value
View Source
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
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
View Source
Optional secondary object for more complex actions.
Declaration
[JsonPropertyName("related")]
public V1ObjectReference Related { get; set; }
Property Value
View Source
ReportingComponent
Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.
Declaration
[JsonPropertyName("reportingComponent")]
public string ReportingComponent { get; set; }
Property Value
View Source
ReportingInstance
ID of the controller instance, e.g. kubelet-xyzf.
Declaration
[JsonPropertyName("reportingInstance")]
public string ReportingInstance { get; set; }
Property Value
View Source
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
View Source
Source
The component reporting this event. Should be a short machine understandable
string.
Declaration
[JsonPropertyName("source")]
public V1EventSource Source { get; set; }
Property Value
View Source
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
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(Corev1Event?)
Declaration
public virtual bool Equals(Corev1Event? 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 ==(Corev1Event?, Corev1Event?)
Declaration
public static bool operator ==(Corev1Event? left, Corev1Event? right)
Parameters
Returns
View Source
operator !=(Corev1Event?, Corev1Event?)
Declaration
public static bool operator !=(Corev1Event? left, Corev1Event? right)
Parameters
Returns
Implements
Extension Methods