Table of Contents

Class DaemonAppEventData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

One observed change in a supervised application.

public sealed class DaemonAppEventData
Inheritance
DaemonAppEventData
Inherited Members

Remarks

Read-only history. Every field is an enum member, an integer or a name the daemon already reported on its own row; nothing here is free text, and nothing here was written by a daemon. See DaemonAppEventEntity for why that matters.

Properties

AppName

The supervised application, by name.

public string AppName { get; set; }

Property Value

string

HostName

The host that reported it.

public string HostName { get; set; }

Property Value

string

ID

Surrogate key. Also the tie-break inside one timestamp.

public long ID { get; set; }

Property Value

long

ObservedUtc

When the heartbeat carrying this observation was recorded.

public DateTime ObservedUtc { get; set; }

Property Value

DateTime

PreviousProcessID

The process id before, when there was one.

public int? PreviousProcessID { get; set; }

Property Value

int?

PreviousRestartAttempts

The restart count before, or null on a first sighting.

public int? PreviousRestartAttempts { get; set; }

Property Value

int?

PreviousStatus

What was stored before, or null on a first sighting.

public DaemonAppStatus? PreviousStatus { get; set; }

Property Value

DaemonAppStatus?

ProcessID

The process id now, when it is running.

public int? ProcessID { get; set; }

Property Value

int?

RestartAttempts

Restarts in the current failure cycle, as reported.

public int RestartAttempts { get; set; }

Property Value

int

Status

What was observed.

public DaemonAppStatus Status { get; set; }

Property Value

DaemonAppStatus

Methods

Describe()

One line saying what this transition was, composed here and never stored.

public string Describe()

Returns

string

Remarks

Built entirely from the two status values and the integers beside them. That is the point: an operator reads a sentence, and no part of that sentence came from a supervisor on another machine. The vocabulary is closed — a daemon can cause a transition between known statuses and nothing else — so a fully compromised daemon cannot put a string of its choosing in front of somebody with an administrative session.

Composed rather than persisted so that improving the wording does not require rewriting history, which an append-only table must never do.