Skip to content

Commit aaefaea

Browse files
chore: back up playground cli sentry dashboard
1 parent 9e30031 commit aaefaea

4 files changed

Lines changed: 1051 additions & 0 deletions

File tree

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
docs-internal/
2+
sentry/

sentry/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Sentry Dashboards
2+
3+
Dashboard JSON backups live in `sentry/dashboards/`.
4+
5+
Run `./sentry/backup-dashboards.sh` before editing dashboards through the Sentry API. A dashboard
6+
`PUT` replaces the full widget list, so the checked-in JSON is the source of truth for future
7+
modifications.
8+
9+
Current dashboards:
10+
11+
- `2143100` — Playground CLI Health

sentry/backup-dashboards.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
TOKEN=$(security find-generic-password -s sentry-api-token -w)
5+
BASE="https://de.sentry.io/api/0/organizations/paritytech"
6+
7+
mkdir -p sentry/dashboards
8+
9+
for id in 2143100; do
10+
curl -sf \
11+
-H "Authorization: Bearer ${TOKEN}" \
12+
"${BASE}/dashboards/${id}/" \
13+
| python3 -m json.tool > "sentry/dashboards/${id}.json"
14+
done

0 commit comments

Comments
 (0)