Skip to content

Commit c0b5e2e

Browse files
committed
chore: update SLO [skip ci]
1 parent bd9e7e3 commit c0b5e2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Resources/gcp/api_v2_slo.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
#!/bin/bash
22
# Execute in cloud shell
33
ACCESS_TOKEN=$(gcloud auth print-access-token)
4+
GOOGLE_CLOUD_PROJECT='pokeapi-215911'
45
CREATE_SLO_POST_BODY=$(cat <<EOF
56
{
6-
"displayName": "99% - Good/Bad Ratio - Rolling 30 days",
7+
"displayName": "99% - Total/Bad Ratio - Rolling 30 days",
78
"goal": 0.99,
89
"rollingPeriod": "86400s",
910
"serviceLevelIndicator": {
1011
"requestBased": {
1112
"goodTotalRatio": {
12-
"goodServiceFilter": "metric.type=\"logging.googleapis.com/user/200-functions\" resource.type=\"cloud_function\"",
13-
"badServiceFilter": "metric.type=\"logging.googleapis.com/user/errored-functions\" resource.type=\"cloud_function\""
13+
"totalServiceFilter": "metric.type=\"logging.googleapis.com/user/function-executions\" resource.type=\"cloud_function\"",
14+
"badServiceFilter": "metric.type=\"logging.googleapis.com/user/function-crash\" resource.type=\"cloud_function\""
1415
}
1516
}
1617
}

0 commit comments

Comments
 (0)