#feature: add agent consumer delay monitoring

This commit is contained in:
2026-09-01 15:53:29 +08:00
parent c45d68e201
commit adf728adfc
7 changed files with 352 additions and 3 deletions
+3 -3
View File
@@ -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