Table of Contents

Class AdminAuditData

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

One recorded operator action.

public sealed class AdminAuditData
Inheritance
AdminAuditData
Inherited Members

Remarks

The write shape and the read shape are the same type on purpose. An audit row is written once and read back verbatim; a separate "create" model would only be an opportunity for the two to drift, and a field that reads back differently from how it was written is exactly the defect this table must not have.

Properties

Action

Stable dotted identifier, such as character.rename.

public string Action { get; set; }

Property Value

string

ActorAccessLevel

The actor's access level at the time, not now.

public byte ActorAccessLevel { get; set; }

Property Value

byte

ActorName

The account that acted.

public string ActorName { get; set; }

Property Value

string

ActorSessionID

The panel session it came from, or null for an in-game action.

public long? ActorSessionID { get; set; }

Property Value

long?

Details

Compact JSON describing what changed, or null.

public string Details { get; set; }

Property Value

string

ID

Surrogate key. Zero on a row that has not been written yet.

public long ID { get; set; }

Property Value

long

IpAddress

Where the request came from.

public string IpAddress { get; set; }

Property Value

string

OccurredUtc

When it happened, UTC. Set by the service if left at default.

public DateTime OccurredUtc { get; set; }

Property Value

DateTime

Outcome

Why it was not, when it was not.

public string Outcome { get; set; }

Property Value

string

Reason

The reason the operator gave.

public string Reason { get; set; }

Property Value

string

Source

Where the action was taken from: the panel, or in-game chat.

public string Source { get; set; }

Property Value

string

Succeeded

Whether the action was carried out.

public bool Succeeded { get; set; }

Property Value

bool

TargetID

The target's identifier as text.

public string TargetID { get; set; }

Property Value

string

TargetName

The target's name as it read at the time.

public string TargetName { get; set; }

Property Value

string

TargetType

What kind of thing was acted on.

public string TargetType { get; set; }

Property Value

string