Table of Contents

Class PlatformEvent

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

A platform event such as a Kubernetes or container runtime event.

public sealed record PlatformEvent : IEquatable<PlatformEvent>
Inheritance
PlatformEvent
Implements
Inherited Members

Constructors

PlatformEvent(DateTimeOffset?, string, string, string, string, IReadOnlyDictionary<string, string>)

A platform event such as a Kubernetes or container runtime event.

public PlatformEvent(DateTimeOffset? Time, string Source, string Type, string Reason, string Message, IReadOnlyDictionary<string, string> Metadata)

Parameters

Time DateTimeOffset?

When the event occurred.

Source string

The event source, for example kubernetes or docker.

Type string

The type or severity, for example Normal or Warning.

Reason string

A short reason code.

Message string

A human-readable message.

Metadata IReadOnlyDictionary<string, string>

Extra key-value metadata.

Properties

Message

A human-readable message.

public string Message { get; init; }

Property Value

string

Metadata

Extra key-value metadata.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Reason

A short reason code.

public string Reason { get; init; }

Property Value

string

Source

The event source, for example kubernetes or docker.

public string Source { get; init; }

Property Value

string

Time

When the event occurred.

public DateTimeOffset? Time { get; init; }

Property Value

DateTimeOffset?

Type

The type or severity, for example Normal or Warning.

public string Type { get; init; }

Property Value

string