Skip to content

Commit 9847a50

Browse files
Merge pull request #7407 from Shopify/update-observe-script
Add bin/update-observe.js to automate post-release Observe updates
2 parents 3a4bf9c + c41ca49 commit 9847a50

3 files changed

Lines changed: 608 additions & 0 deletions

File tree

bin/observe-cli-resources.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"_comment": "Resources to keep in sync with the latest CLI version. Consumed by bin/update-observe.js, which fetches the live config for each resource and only patches the version-relevant fields (in-place: any X.Y.Z literal found in the name, raw SLI expression, or version filter is rewritten). For alerts and error projects, versionFilterColumn names the filter holding the CLI version.",
3+
"endpoint": "https://shopify-monitoring.shopifycloud.com/query",
4+
"service": "cli",
5+
"resources": [
6+
{
7+
"key": "slo-correctness-app-deploy",
8+
"kind": "slo",
9+
"id": "6cb7fa5f-6f65-417b-aca1-3986c5976068"
10+
},
11+
{
12+
"key": "slo-correctness",
13+
"kind": "slo",
14+
"id": "d0131f4a-b9de-4704-9462-9c6ae3de080a"
15+
},
16+
{
17+
"key": "slo-p50-latency",
18+
"kind": "slo",
19+
"id": "c1a167e1-9f23-4788-bb4e-7240e556d9b5"
20+
},
21+
{
22+
"key": "slo-p75-latency",
23+
"kind": "slo",
24+
"id": "1415409f-2750-4bdc-9333-7696f6cf1204"
25+
},
26+
{
27+
"key": "alert-spike-errors",
28+
"kind": "alert",
29+
"id": "2e527671-b84d-48af-9a52-2100cf295627",
30+
"versionFilterColumn": "app.version"
31+
},
32+
{
33+
"key": "error-project-cli",
34+
"kind": "errorProject",
35+
"id": "8fdca84d-03fa-4eb2-9131-bd019e87c3b2",
36+
"versionFilterColumn": "app.version"
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)