Show / Hide Table of Contents

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.

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

Corev1Event(Corev1Event)

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

Fields

KubeApiVersion

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

KubeGroup

Declaration
public const string KubeGroup = ""
Field Value
Type Description
string

KubeKind

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

KubePluralName

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

Properties

Action

What action was taken/failed regarding to the Regarding object.

Declaration
[JsonPropertyName("action")]
public string Action { get; set; }
Property Value
Type Description
string

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

Count

The number of times this event has occurred.

Declaration
[JsonPropertyName("count")]
public int? Count { get; set; }
Property Value
Type Description
int?

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

EventTime

Time when this Event was first observed.

Declaration
[JsonPropertyName("eventTime")]
public DateTime? EventTime { get; set; }
Property Value
Type Description
DateTime?

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
Type Description
DateTime?

InvolvedObject

The object that this event is about.

Declaration
[JsonPropertyName("involvedObject")]
public V1ObjectReference InvolvedObject { get; set; }
Property Value
Type Description
V1ObjectReference

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

LastTimestamp

The time at which the most recent occurrence of this event was recorded.

Declaration
[JsonPropertyName("lastTimestamp")]
public DateTime? LastTimestamp { get; set; }
Property Value
Type Description
DateTime?

Message

A human-readable description of the status of this operation.

Declaration
[JsonPropertyName("message")]
public string Message { get; set; }
Property Value
Type Description
string

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

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

Related

Optional secondary object for more complex actions.

Declaration
[JsonPropertyName("related")]
public V1ObjectReference Related { get; set; }
Property Value
Type Description
V1ObjectReference

ReportingComponent

Name of the controller that emitted this Event, e.g. kubernetes.io/kubelet.

Declaration
[JsonPropertyName("reportingComponent")]
public string ReportingComponent { get; set; }
Property Value
Type Description
string

ReportingInstance

ID of the controller instance, e.g. kubelet-xyzf.

Declaration
[JsonPropertyName("reportingInstance")]
public string ReportingInstance { get; set; }
Property Value
Type Description
string

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
Type Description
Corev1EventSeries

Source

The component reporting this event. Should be a short machine understandable string.

Declaration
[JsonPropertyName("source")]
public V1EventSource Source { get; set; }
Property Value
Type Description
V1EventSource

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

Methods

Equals(object?)

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

Equals(Corev1Event?)

Declaration
public virtual bool Equals(Corev1Event? other)
Parameters
Type Name Description
Corev1Event other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(Corev1Event?, Corev1Event?)

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

operator !=(Corev1Event?, Corev1Event?)

Declaration
public static bool operator !=(Corev1Event? left, Corev1Event? right)
Parameters
Type Name Description
Corev1Event left
Corev1Event 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>)
In this article
Back to top Generated by DocFX