src/Notifications/Metrics/RouteRequested.php 2 locations
|
@@ 77-79 (lines=3) @@
|
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
$alertColor = '#00B945'; |
| 77 |
|
if(is_numeric($notifiable->filter) && $this->requestInfo['execution_time'] > intval($notifiable->filter)) { |
| 78 |
|
$alertColor = '#BC001A'; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
return (new MailMessage) |
| 82 |
|
->subject(env('LARAMETRICS_ROUTE_SUBJECT', '[Larametrics Alert] A route has been requested')) |
|
@@ 105-107 (lines=3) @@
|
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
$status = 'success'; |
| 105 |
|
if(is_numeric($notifiable->filter) && $this->requestInfo['execution_time'] > intval($notifiable->filter)) { |
| 106 |
|
$status = 'error'; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
$requestInfo = $this->requestInfo; |
| 110 |
|
|