RefreshEvent
extends TelemetryEvent
in package
FinalYes
Emitted around a §9 single-flight refresh (CONTRACT.md §19).
Table of Contents
Constants
- OUTCOME_FAILURE : mixed = 'failure'
- Outcome: the call failed, at any layer.
- OUTCOME_SUCCESS : mixed = 'success'
- Outcome: the call returned a usable response.
- REFRESH_FOLLOWER : mixed = 'follower'
- Refresh role: this caller waited on another's refresh.
- REFRESH_LEADER : mixed = 'leader'
- Refresh role: this caller performed the refresh.
Properties
- $durationMs : float
- $role : string
Methods
- __construct() : mixed
Constants
OUTCOME_FAILURE
Outcome: the call failed, at any layer.
public
mixed
OUTCOME_FAILURE
= 'failure'
OUTCOME_SUCCESS
Outcome: the call returned a usable response.
public
mixed
OUTCOME_SUCCESS
= 'success'
REFRESH_FOLLOWER
Refresh role: this caller waited on another's refresh.
public
mixed
REFRESH_FOLLOWER
= 'follower'
REFRESH_LEADER
Refresh role: this caller performed the refresh.
public
mixed
REFRESH_LEADER
= 'leader'
Properties
$durationMs read-only
public
float
$durationMs
$role read-only
public
string
$role
Methods
__construct()
public
__construct(string $role, float $durationMs) : mixed
Parameters
- $role : string
-
One of TelemetryEvent's
REFRESH_*constants. - $durationMs : float
-
How long the refresh, or the wait for one, took.