Skip to main content

createRunEvent

@stack-test/core


@stack-test/core / createRunEvent

Function: createRunEvent()

createRunEvent(runId, eventId, type, timestamp, fields?): DashboardRunEvent

Parameters​

runId​

string

eventId​

string

type​

"run_started" | "run_config_loaded" | "deployment_started" | "deployment_event" | "assertion_started" | "assertion_passed" | "assertion_failed" | "cleanup_started" | "cleanup_event" | "cleanup_completed" | "run_failed" | "run_completed" | "warning" | "log"

timestamp​

string

fields?​

Omit<Partial<DashboardRunEvent>, "schemaVersion" | "runId" | "eventId" | "type" | "timestamp"> = {}

Returns​

DashboardRunEvent