Class HistoryExecution
- Namespace
- OverKizApi.Models
- Assembly
- OverKizApi.dll
A completed execution record as stored in the gateway history log.
public sealed class HistoryExecution
- Inheritance
-
HistoryExecution
- Inherited Members
Properties
Commands
Per-command outcome records for this execution.
[JsonPropertyName("commands")]
public IReadOnlyList<HistoryExecutionCommand> Commands { get; init; }
Property Value
Duration
Total duration of the execution in milliseconds.
[JsonPropertyName("duration")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long Duration { get; init; }
Property Value
EffectiveStartTime
Unix epoch millisecond timestamp when the gateway actually started executing, or null if it was queued.
[JsonPropertyName("effectiveStartTime")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? EffectiveStartTime { get; init; }
Property Value
- long?
EndTime
Unix epoch millisecond timestamp when the execution completed, or null if still active.
[JsonPropertyName("endTime")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? EndTime { get; init; }
Property Value
- long?
EventTime
Unix epoch millisecond timestamp of when the execution was registered.
[JsonPropertyName("eventTime")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long EventTime { get; init; }
Property Value
ExecutionSubType
Further classification of the execution origin (internal, external, or scenario).
[JsonPropertyName("executionSubType")]
public ExecutionSubType ExecutionSubType { get; init; }
Property Value
ExecutionType
How the execution was triggered (immediate, delayed, sunrise, or sunset).
[JsonPropertyName("executionType")]
public ExecutionType ExecutionType { get; init; }
Property Value
FailureType
Overall failure type string for the execution (see FailureType).
[JsonPropertyName("failureType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? FailureType { get; init; }
Property Value
Id
Unique execution ID.
[JsonPropertyName("id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Id { get; init; }
Property Value
Label
Optional user-visible label (e.g. the scenario name that triggered the execution).
[JsonPropertyName("label")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Label { get; init; }
Property Value
Owner
Owner key identifying who triggered the execution.
[JsonPropertyName("owner")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Owner { get; init; }
Property Value
Source
Source that submitted the execution (e.g. "APP", "SCENARIO").
[JsonPropertyName("source")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Source { get; init; }
Property Value
State
Terminal state of the execution.
[JsonPropertyName("state")]
public ExecutionState State { get; init; }
Property Value
Type
Execution type string (see ExecutionType).
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Type { get; init; }