forked from ChelseaKR/gtfs-scorecard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubscriptions.yaml
More file actions
43 lines (43 loc) · 2.19 KB
/
Copy pathsubscriptions.yaml
File metadata and controls
43 lines (43 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Opt-in feed-health alerts. Each subscriber gets a digest of only the agencies
# they follow and the alert kinds they chose, and only when one needs attention.
# An all-clear sends nothing.
#
# Consent is a hard gate: a subscriber is emailed only when verified is true. New
# addresses start unverified and stay silent until the address is confirmed
# (double opt-in). See docs/decisions/0004-opt-in-alerts.md.
#
# The addresses here are examples; they are unverified, so nothing is sent. The
# digest is built and sent by the daily run (scorecard notify).
#
# Fields per subscriber:
# email where the digest goes (required)
# agencies list of agency ids to follow
# all: true follow every tracked agency (e.g. a statewide program liaison)
# kinds which alerts to receive, as a list drawn from: expiry,
# lapse_risk, regression, export_change, anomaly. Omit for every
# kind. "expiry" warns before a feed expires (the expiry opt-in);
# "export_change" warns when the export's structure changed
# (a route dropped, stops moved) even though nothing was invalid,
# so the grade didn't move to flag it.
# rollups list of rollup (cohort) ids to also receive a weekly portfolio
# digest for. A liaison opts into a cohort rollup here; the digest
# summarizes week-over-week movement across that whole cohort. Same
# verified gate as alerts: unverified is never sent. Omit for none.
# verified true only after the address is confirmed; unverified is never sent.
# webhook_url an https:// incoming-webhook URL (Slack, Microsoft Teams, or a
# generic endpoint) that also gets this subscriber's digest as a
# JSON POST ({"text": "..."}). Optional and additive to email; a
# program liaison can set both, or a webhook alone.
subscribers:
- email: liaison@example.org
all: true
kinds:
- expiry
verified: false
# A statewide liaison who also wants the weekly cohort rollup (still unverified,
# so nothing is sent until the address is confirmed).
# - email: portfolio-liaison@example.org
# all: true
# rollups:
# - all
# verified: false