Created
October 2, 2018 15:43
-
-
Save chloegrace94/9fca9565674d73c4b80d43f75338e0c0 to your computer and use it in GitHub Desktop.
Interactive Slack message formatting used by reminder Lambda for running instance reminder service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"text": message, | |
"channel": slack_owner, | |
"attachments": [ | |
{ | |
"fallback": "Sorry, an error has occured", | |
"callback_id": "instance_reminder", | |
"attachment_type": "default", | |
"actions": [ | |
{ | |
"name": instance_info, | |
"text": "Stop", | |
"style": "danger", | |
"type": "button", | |
"value": "stop", | |
"confirm": { | |
"title": "Are you sure?", | |
"text": ":electric_plug: This will stop your instance", | |
"ok_text": "Shutdown", | |
"dismiss_text": "Cancel" | |
} | |
}, | |
{ | |
"name": instance_info, | |
"text": "Keep up", | |
"type": "button", | |
"value": "keep_up" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment