Class WatchEvent<T>
A kubernetes watch event.
Namespace: Neon.Kube.K8s
Assembly: Neon.Kube.dll
Syntax
public class WatchEvent<T>
Type Parameters
Name | Description |
---|---|
T | Specifies the Kubernetes entity type being watched. |
Constructors
WatchEvent()
Constructor.
Declaration
public WatchEvent()
WatchEvent(WatchEventType, T, int, bool)
Constructor.
Declaration
public WatchEvent(WatchEventType type, T value, int attempt = 0, bool force = false)
Parameters
Type | Name | Description |
---|---|---|
WatchEventType | type | Identifies the event being watched. |
T | value | Identifies the type being watched. |
int | attempt | Optionally specifies the watch attempt (defaults to 0). |
bool | force | Optionally forece a resource reconcile. |
Properties
Attempt
The number of attempts for reconciling the resource.
Declaration
public int Attempt { get; set; }
Property Value
Type | Description |
---|---|
int |
CreatedAt
The time the event was created.
Declaration
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Force
Force a reconciliation for the resource.
Declaration
public bool Force { get; set; }
Property Value
Type | Description |
---|---|
bool |
Type
The WatchEventType
Declaration
public WatchEventType Type { get; set; }
Property Value
Type | Description |
---|---|
WatchEventType |
Value
The watch event value.
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |