diff --git a/up.json.in b/up.json.in index b1ce660..20542d6 100644 --- a/up.json.in +++ b/up.json.in @@ -1,66 +1,66 @@ { - "name": "processinvitations", - "profile": "uneet-dev", - "stages": { - "production": { - "domain": "invite.dev.unee-t.com", - "zone": "dev.unee-t.com" - } + "name": "processinvitations", + "profile": "uneet-dev", + "stages": { + "production": { + "domain": "invite.dev.unee-t.com", + "zone": "dev.unee-t.com" + } + }, + "regions": [ + "ap-southeast-1" + ], + "error_pages": { + "disable": true + }, + "lambda": { + "policy": [ + { + "Effect": "Allow", + "Resource": "*", + "Action": [ + "ssm:GetParameter" + ] + } + ] + }, + "actions": [ + { + "name": "email.backend", + "type": "email", + "emails": [ + "kai.hendry+invite@unee-t.com" + ] + } + ], + "alerts": [ + { + "metric": "http.count", + "statistic": "sum", + "threshold": 100, + "action": "email.backend" }, - "regions": [ - "ap-southeast-1" - ], - "error_pages": { - "disable": true + { + "metric": "http.5xx", + "statistic": "sum", + "threshold": 1, + "period": "1m", + "action": "email.backend" }, - "lambda": { - "policy": [ - { - "Effect": "Allow", - "Resource": "*", - "Action": [ - "ssm:GetParameter" - ] - } - ] + { + "metric": "http.4xx", + "statistic": "sum", + "threshold": 50, + "period": "5m", + "action": "email.backend" }, - "actions": [ - { - "name": "email.backend", - "type": "email", - "emails": [ - "kai.hendry+invite@unee-t.com" - ] - } - ], - "alerts": [ - { - "metric": "http.count", - "statistic": "sum", - "threshold": 100, - "action": "email.backend" - }, - { - "metric": "http.5xx", - "statistic": "sum", - "threshold": 1, - "period": "1m", - "action": "email.backend" - }, - { - "metric": "http.4xx", - "statistic": "sum", - "threshold": 50, - "period": "5m", - "action": "email.backend" - }, - { - "namespace": "AWS/ApiGateway", - "metric": "Count", - "statistic": "sum", - "threshold": 500, - "action": "email.backend", - "description": "Note how you can use AWS namespaces and metrics directly if necessary." - } - ] + { + "metric": "http.latency", + "statistic": "avg", + "threshold": 4000, + "period": "5m", + "action": "email.backend", + "description": "Large traffic spike" + } + ] }