Show / Hide Table of Contents

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
object
Eventsv1Event
Implements
IKubernetesObject<V1ObjectMeta>
IKubernetesObject
IMetadata<V1ObjectMeta>
IEquatable<Eventsv1Event>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
public Eventsv1Event()
View Source

Eventsv1Event(Eventsv1Event)

Declaration
protected Eventsv1Event(Eventsv1Event original)
Parameters
Type Name Description
Eventsv1Event original

Fields

View Source

KubeApiVersion

Declaration
public const string KubeApiVersion = "v1"
Field Value
Type Description
string
View Source

KubeGroup

Declaration
public const string KubeGroup = "events.k8s.io"
Field Value
Type Description
string
View Source

KubeKind

Declaration
public const string KubeKind = "Event"
Field Value
Type Description
string
View Source

KubePluralName

Declaration
public const string KubePluralName = "events"
Field Value
Type Description
string

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
Type Description
string
View Source

ApiVersion

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

Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
Type Description
string
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
Type Description
int?
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
Type Description
DateTime?
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
Type Description
DateTime?
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
Type Description
V1EventSource
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
DateTime?
View Source

Kind

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

Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Type Description
string
View Source

Metadata

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
Type Description
V1ObjectMeta
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
Type Description
string
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
Type Description
string
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
Type Description
V1ObjectReference
View Source

Related

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
Type Description
V1ObjectReference
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
Type Description
string
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
Type Description
string
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
Type Description
Eventsv1EventSeries
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
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(Eventsv1Event?)

Declaration
public virtual bool Equals(Eventsv1Event? other)
Parameters
Type Name Description
Eventsv1Event other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(Eventsv1Event?, Eventsv1Event?)

Declaration
public static bool operator ==(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Type Name Description
Eventsv1Event left
Eventsv1Event right
Returns
Type Description
bool
View Source

operator !=(Eventsv1Event?, Eventsv1Event?)

Declaration
public static bool operator !=(Eventsv1Event? left, Eventsv1Event? right)
Parameters
Type Name Description
Eventsv1Event left
Eventsv1Event right
Returns
Type Description
bool

Implements

IKubernetesObject<TMetadata>
IKubernetesObject
IMetadata<T>
IEquatable<T>

Extension Methods

ModelExtensions.ApiGroup(IKubernetesObject)
ModelExtensions.ApiGroupAndVersion(IKubernetesObject)
ModelExtensions.ApiGroupVersion(IKubernetesObject)
ModelExtensions.GetApiGroupAndVersion(IKubernetesObject, out string, out string)
Extensions.GetKubernetesTypeMetadata<T>(T)
Extensions.Initialize<T>(T)
ModelExtensions.AddFinalizer(IMetadata<V1ObjectMeta>, string)
ModelExtensions.AddOwnerReference(IMetadata<V1ObjectMeta>, V1OwnerReference)
ModelExtensions.Annotations(IMetadata<V1ObjectMeta>)
ModelExtensions.CreationTimestamp(IMetadata<V1ObjectMeta>)
ModelExtensions.DeletionTimestamp(IMetadata<V1ObjectMeta>)
ModelExtensions.EnsureMetadata(IMetadata<V1ObjectMeta>)
ModelExtensions.Finalizers(IMetadata<V1ObjectMeta>)
ModelExtensions.FindOwnerReference(IMetadata<V1ObjectMeta>, Predicate<V1OwnerReference>)
ModelExtensions.FindOwnerReference(IMetadata<V1ObjectMeta>, IKubernetesObject<V1ObjectMeta>)
ModelExtensions.Generation(IMetadata<V1ObjectMeta>)
ModelExtensions.GetAnnotation(IMetadata<V1ObjectMeta>, string)
ModelExtensions.GetController(IMetadata<V1ObjectMeta>)
ModelExtensions.GetLabel(IMetadata<V1ObjectMeta>, string)
ModelExtensions.GetOwnerReference(IMetadata<V1ObjectMeta>, Predicate<V1OwnerReference>)
ModelExtensions.GetOwnerReference(IMetadata<V1ObjectMeta>, IKubernetesObject<V1ObjectMeta>)
ModelExtensions.HasFinalizer(IMetadata<V1ObjectMeta>, string)
ModelExtensions.IsOwnedBy(IMetadata<V1ObjectMeta>, IKubernetesObject<V1ObjectMeta>)
ModelExtensions.Labels(IMetadata<V1ObjectMeta>)
ModelExtensions.Name(IMetadata<V1ObjectMeta>)
ModelExtensions.Namespace(IMetadata<V1ObjectMeta>)
ModelExtensions.OwnerReferences(IMetadata<V1ObjectMeta>)
ModelExtensions.RemoveFinalizer(IMetadata<V1ObjectMeta>, string)
ModelExtensions.RemoveOwnerReference(IMetadata<V1ObjectMeta>, IKubernetesObject<V1ObjectMeta>)
ModelExtensions.RemoveOwnerReferences(IMetadata<V1ObjectMeta>, Predicate<V1OwnerReference>)
ModelExtensions.RemoveOwnerReferences(IMetadata<V1ObjectMeta>, IKubernetesObject<V1ObjectMeta>)
ModelExtensions.ResourceVersion(IMetadata<V1ObjectMeta>)
ModelExtensions.SetAnnotation(IMetadata<V1ObjectMeta>, string, string)
ModelExtensions.SetLabel(IMetadata<V1ObjectMeta>, string, string)
ModelExtensions.Uid(IMetadata<V1ObjectMeta>)
  • View Source
In this article
Back to top Generated by DocFX