#feature: add agent consumer delay monitoring
This commit is contained in:
@@ -18,7 +18,7 @@ class DingTalkService
|
||||
$this->secret = $config['secret'] ?? null;
|
||||
}
|
||||
|
||||
public function sendText(string $message, array $atMobiles = [], bool $atAll = false): void
|
||||
public function sendText(string $message, array $atMobiles = [], bool $atAll = false): bool
|
||||
{
|
||||
if (empty($this->webhook)) {
|
||||
Log::warning('DingTalk webhook is not configured, skip sending alert. Alert content logged below.', [
|
||||
@@ -27,10 +27,10 @@ class DingTalkService
|
||||
'atAll' => $atAll,
|
||||
]);
|
||||
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->sendTextToWebhook($this->webhook, $message, $atMobiles, $atAll, $this->secret);
|
||||
return $this->sendTextToWebhook($this->webhook, $message, $atMobiles, $atAll, $this->secret);
|
||||
}
|
||||
|
||||
public function sendTextToToken(string $token, string $message, array $atMobiles = [], bool $atAll = false): bool
|
||||
|
||||
Reference in New Issue
Block a user