job-hunter: weekly above-target Slack alert CronJob
Add job-hunter-alert CronJob (Sundays 05:00 UTC, an hour after the refresh): `python -m job_hunter alert --threshold 500000 --location london --slack` posts to Slack the companies whose London p50 total comp >= £500k, flagging any that newly crossed since last week's snapshot. SLACK_WEBHOOK_URL wired via the job-hunter-secrets ExternalSecret from Vault secret/job-hunter slack_webhook_url (seeded from the shared workspace webhook; repointable to a dedicated channel). Runbook gains an "above-target Slack alert" section. [ci skip] — applied locally (stack-scoped). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
5dc5cd53c0
commit
74313149dd
3 changed files with 112 additions and 0 deletions
|
|
@ -89,6 +89,13 @@ resource "kubernetes_manifest" "external_secret" {
|
|||
secretKey = "DIGEST_FROM_ADDRESS"
|
||||
remoteRef = { key = "job-hunter", property = "digest_from_address" }
|
||||
},
|
||||
{
|
||||
# Weekly above-target comp alert (job-hunter-alert CronJob). Seeded
|
||||
# from the shared workspace webhook; repoint to a dedicated channel
|
||||
# by updating secret/job-hunter slack_webhook_url.
|
||||
secretKey = "SLACK_WEBHOOK_URL"
|
||||
remoteRef = { key = "job-hunter", property = "slack_webhook_url" }
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue