src/Notifications/Notifications/UptimeCheckFailed.php 1 location
|
@@ 39-51 (lines=13) @@
|
36 |
|
return $mailMessage; |
37 |
|
} |
38 |
|
|
39 |
|
public function toSlack($notifiable) |
40 |
|
{ |
41 |
|
return (new SlackMessage) |
42 |
|
->error() |
43 |
|
->attachment(function (SlackAttachment $attachment) { |
44 |
|
$attachment |
45 |
|
->title($this->getMessageText()) |
46 |
|
->content($this->getMonitor()->uptime_check_failure_reason) |
47 |
|
->fallback($this->getMessageText()) |
48 |
|
->footer($this->getLocationDescription()) |
49 |
|
->timestamp(Carbon::now()); |
50 |
|
}); |
51 |
|
} |
52 |
|
|
53 |
|
public function getMonitorProperties($extraProperties = []): array |
54 |
|
{ |
src/Notifications/Notifications/UptimeCheckRecovered.php 1 location
|
@@ 39-50 (lines=12) @@
|
36 |
|
return $mailMessage; |
37 |
|
} |
38 |
|
|
39 |
|
public function toSlack($notifiable) |
40 |
|
{ |
41 |
|
return (new SlackMessage) |
42 |
|
->success() |
43 |
|
->attachment(function (SlackAttachment $attachment) { |
44 |
|
$attachment |
45 |
|
->title($this->getMessageText()) |
46 |
|
->fallback($this->getMessageText()) |
47 |
|
->footer($this->getLocationDescription()) |
48 |
|
->timestamp(Carbon::now()); |
49 |
|
}); |
50 |
|
} |
51 |
|
|
52 |
|
public function getMonitorProperties($extraProperties = []): array |
53 |
|
{ |
src/Notifications/Notifications/UptimeCheckSucceeded.php 1 location
|
@@ 38-48 (lines=11) @@
|
35 |
|
return $mailMessage; |
36 |
|
} |
37 |
|
|
38 |
|
public function toSlack($notifiable) |
39 |
|
{ |
40 |
|
return (new SlackMessage) |
41 |
|
->attachment(function (SlackAttachment $attachment) { |
42 |
|
$attachment |
43 |
|
->title($this->getMessageText()) |
44 |
|
->fallback($this->getMessageText()) |
45 |
|
->footer($this->getLocationDescription()) |
46 |
|
->timestamp(Carbon::now()); |
47 |
|
}); |
48 |
|
} |
49 |
|
|
50 |
|
public function isStillRelevant(): bool |
51 |
|
{ |