AutomationRun class
One execution of an automation.
Constructors
-
AutomationRun({required int id, required String status, String? automationId, int? currentStep, Map<
String, dynamic> triggerEvent = const {}, Map<String, dynamic> context = const {}, DateTime? startedAt, DateTime? completedAt, String? errorMessage, List<AutomationRunLog> logs = const []}) -
Creates a run.
const
-
AutomationRun.fromJson(Map<
String, dynamic> json) -
Reads a run.
factory
Properties
- automationId → String?
-
The automation that ran.
final
- completedAt → DateTime?
-
When the run finished.
final
-
context
→ Map<
String, dynamic> -
The state carried between steps.
final
- currentStep → int?
-
Which step is executing.
final
- errorMessage → String?
-
Why the run failed, if it did.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The run's id.
final
-
logs
→ List<
AutomationRunLog> -
One entry per step, on a single run's response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime?
-
When the run started.
final
- status → String
-
How the run ended, or where it is.
final
-
triggerEvent
→ Map<
String, dynamic> -
What started the run.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited