Some more ElastiCache events
This commit is contained in:
parent
d32ea3855a
commit
bd14d352eb
10
app.py
10
app.py
@ -250,6 +250,16 @@ def handler(event, context):
|
||||
body = "{} will be replaced between {} and {}".format(
|
||||
msg["ElastiCache:NodeReplacementScheduled"], msg["Start Time"], msg["End Time"])
|
||||
|
||||
# ElasticCache replacement notifications
|
||||
elif "ElastiCache:CacheNodeReplaceStarted" in msg:
|
||||
title = "ElastiCache fail over stareted"
|
||||
body = "for node {}".format(msg["ElastiCache:CacheNodeReplaceStarted"])
|
||||
|
||||
# ElasticCache replacement notifications
|
||||
elif "ElastiCache:FailoverComplete" in msg:
|
||||
title = "ElastiCache fail over complete"
|
||||
body = "for node {}".format(msg["ElastiCache:FailoverComplete"])
|
||||
|
||||
# Basic ASG events
|
||||
elif "Event" in msg and msg["Event"] in ["autoscaling:EC2_INSTANCE_TERMINATE", "autoscaling:EC2_INSTANCE_LAUNCH"]:
|
||||
title = msg["Description"]
|
||||
|
Loading…
Reference in New Issue
Block a user