Table of Contents

Class ProcessSessionSnapshot

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

Snapshot of a managed process session.

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

Constructors

ProcessSessionSnapshot(string, string, string, string?, bool, string, ProcessSessionStatus, int?, int?, string?, DateTimeOffset, DateTimeOffset?, int, int)

Snapshot of a managed process session.

public ProcessSessionSnapshot(string SessionId, string ScopeKey, string Command, string? WorkingDirectory, bool Pty, string Host, ProcessSessionStatus Status, int? ProcessId, int? ExitCode, string? FailureReason, DateTimeOffset StartedAtUtc, DateTimeOffset? EndedAtUtc, int StdoutChars, int StderrChars)

Parameters

SessionId string
ScopeKey string
Command string
WorkingDirectory string
Pty bool
Host string
Status ProcessSessionStatus
ProcessId int?
ExitCode int?
FailureReason string
StartedAtUtc DateTimeOffset
EndedAtUtc DateTimeOffset?
StdoutChars int
StderrChars int

Properties

Command

public string Command { get; init; }

Property Value

string

EndedAtUtc

public DateTimeOffset? EndedAtUtc { get; init; }

Property Value

DateTimeOffset?

ExitCode

public int? ExitCode { get; init; }

Property Value

int?

FailureReason

public string? FailureReason { get; init; }

Property Value

string

Host

public string Host { get; init; }

Property Value

string

ProcessId

public int? ProcessId { get; init; }

Property Value

int?

Pty

public bool Pty { get; init; }

Property Value

bool

ScopeKey

public string ScopeKey { get; init; }

Property Value

string

SessionId

public string SessionId { get; init; }

Property Value

string

StartedAtUtc

public DateTimeOffset StartedAtUtc { get; init; }

Property Value

DateTimeOffset

Status

public ProcessSessionStatus Status { get; init; }

Property Value

ProcessSessionStatus

StderrChars

public int StderrChars { get; init; }

Property Value

int

StdoutChars

public int StdoutChars { get; init; }

Property Value

int

WorkingDirectory

public string? WorkingDirectory { get; init; }

Property Value

string