Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Slack Webhook notification for Turbonomic Action Scripts
# Use cURL to post to the Slack API
curl -X POST --data-urlencode 'payload={"channel": "#turbonomic", "username": "discohook", "text": "Move action created for "$VMT_TARGET_NAME" from "$VMT_CURRENT_NAME" to "$VMT_NEW_NAME" with action name = "$VMT_ACTION_NAME"", "icon_emoji": ":bear:"}'
# Log locally in the same folder as the action script (optional)
echo "$VMT_TARGET_NAME is moving" >> mylog.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment