PlatformJobEventService
in package
FinalYes
Persists operator-safe progress events for asynchronous platform jobs.
Table of Contents
Constants
- LEVELS : mixed = ['debug', 'info', 'warning', 'error', 'success']
Properties
- $connection : Connection
Methods
- __construct() : mixed
- Constructor.
- record() : void
- Append a sanitized event to a platform job timeline.
Constants
LEVELS
private
mixed
LEVELS
= ['debug', 'info', 'warning', 'error', 'success']
Properties
$connection read-only
private
Connection
$connection
Methods
__construct()
Constructor.
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
record()
Append a sanitized event to a platform job timeline.
public
record(string $jobId, string $level, string $code, string $message) : void
Parameters
- $jobId : string
- $level : string
- $code : string
- $message : string