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
TimeDateTimeOffset?When the event occurred.
SourcestringThe event source, for example
kubernetesordocker.TypestringThe type or severity, for example
NormalorWarning.ReasonstringA short reason code.
MessagestringA human-readable message.
MetadataIReadOnlyDictionary<string, string>Extra key-value metadata.
Properties
Message
A human-readable message.
public string Message { get; init; }
Property Value
Metadata
Extra key-value metadata.
public IReadOnlyDictionary<string, string> Metadata { get; init; }
Property Value
Reason
A short reason code.
public string Reason { get; init; }
Property Value
Source
The event source, for example kubernetes or docker.
public string Source { get; init; }
Property Value
Time
When the event occurred.
public DateTimeOffset? Time { get; init; }
Property Value
Type
The type or severity, for example Normal or Warning.
public string Type { get; init; }