description:"{$this->resource_name} has been stopped after {$this->restart_count} restarts (limit: {$this->max_restart_count}).\n\n[Open Application in Coolify]({$this->resource_url})",
color:DiscordMessage::errorColor(),
isCritical:true,
);
}
publicfunctiontoTelegram():array
{
$message="Coolify: {$this->resource_name} has been stopped after {$this->restart_count} restarts (limit: {$this->max_restart_count}).";
return[
'message'=>$message,
'buttons'=>[
[
'text'=>'Open Application in Coolify',
'url'=>$this->resource_url,
],
],
];
}
publicfunctiontoPushover():PushoverMessage
{
$message="{$this->resource_name} has been stopped after {$this->restart_count} restarts (limit: {$this->max_restart_count}).";
returnnewPushoverMessage(
title:'Restart limit reached',
level:'error',
message:$message,
buttons:[
[
'text'=>'Open Application in Coolify',
'url'=>$this->resource_url,
],
],
);
}
publicfunctiontoSlack():SlackMessage
{
$title='Restart limit reached';
$description="{$this->resource_name} has been stopped after {$this->restart_count} restarts (limit: {$this->max_restart_count})";