-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: convert heartbeat event handlers to console commands
- Loading branch information
1 parent
563f338
commit 2832e23
Showing
5 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
$logger = $_COMMAND['LOGGER']; | ||
|
||
$logger->info('Flushing metrics'); | ||
|
||
$flushed = Gatekeeper\Metrics\Metrics::flushMetricSamples(); | ||
|
||
$logger->info("{$flushed} metrics flushed"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
$logger = $_COMMAND['LOGGER']; | ||
|
||
$logger->info('Pinging endpoints...'); | ||
|
||
$pinged = Gatekeeper\Endpoints\Pinger::pingOverdueEndpoints($logger); | ||
|
||
$logger->info("{$pinged} endpoints pinged"); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters