class ScheduleWatcher extends Watcher

Constants

protected LAST_RECORDED_TASK_CONTEXT_KEY

Properties

protected Application $app

The application instance.

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
array
hideParameters(array $data, array $hidden)

Hide the given parameters.

from  Watcher
string
hideQueryParameters(string $uri)

Hide query credentials without changing unrelated URL bytes.

from  Watcher
void
recordCommand(ScheduledTaskFailed|ScheduledTaskFinished $event)

Record a scheduled command that was executed.

void
recordFinishedCommand(ScheduledTaskFinished $event)

Record a successfully finished scheduled command.

void
recordFailedCommand(ScheduledTaskFailed $event)

Record a failed scheduled command.

makeEntry(Event $task, array $outcome)

Create an entry for the given scheduled command.

int
taskIdentity(Event $task)

Get the identity for the given scheduled task.

Details

in Watcher at line 18
__construct(array $options = [])

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 30
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 31
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

in Watcher at line 41
protected array hideParameters(array $data, array $hidden)

Hide the given parameters.

Parameters

array $data
array $hidden

Return Value

array

in Watcher at line 55
protected string hideQueryParameters(string $uri)

Hide query credentials without changing unrelated URL bytes.

Parameters

string $uri

Return Value

string

at line 44
void recordCommand(ScheduledTaskFailed|ScheduledTaskFinished $event)

Record a scheduled command that was executed.

Parameters

ScheduledTaskFailed|ScheduledTaskFinished $event

Return Value

void

at line 62
protected void recordFinishedCommand(ScheduledTaskFinished $event)

Record a successfully finished scheduled command.

Parameters

ScheduledTaskFinished $event

Return Value

void

at line 93
protected void recordFailedCommand(ScheduledTaskFailed $event)

Record a failed scheduled command.

Parameters

ScheduledTaskFailed $event

Return Value

void

at line 122
protected IncomingEntry makeEntry(Event $task, array $outcome)

Create an entry for the given scheduled command.

Parameters

Event $task
array $outcome

Return Value

IncomingEntry

at line 139
protected int taskIdentity(Event $task)

Get the identity for the given scheduled task.

Parameters

Event $task

Return Value

int