Created
November 30, 2015 07:25
-
-
Save emedvedev/62a50ea9c5b00449ce7b to your computer and use it in GitHub Desktop.
ChatOps result context in StackStorm
This file contains 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
{ | |
"alias": { | |
"uid": "action:chatops:get", | |
"ack": { | |
"format": "Got {{ execution.parameters.thing }}" | |
}, | |
"enabled": true, | |
"name": "get", | |
"result": { | |
"enabled": false | |
}, | |
"formats": [ | |
"(get|accio|fetch)( (a|my|the))? {{ thing }}(,? (right now|immediately))?[!.]?" | |
], | |
"action_ref": "chatops.test", | |
"pack": "chatops", | |
"ref": "chatops.get", | |
"id": "5655efd94f6634729e31c4d8", | |
"description": "Gets things" | |
}, | |
"execution": { | |
"action": { | |
"description": "Post a message to stream for chatops", | |
"enabled": true, | |
"entry_point": "", | |
"id": "5655e5b34f66346f278b8d21", | |
"name": "test", | |
"pack": "chatops", | |
"parameters": { | |
"addressee": { | |
"type": "string" | |
}, | |
"content": { | |
"type": "string" | |
}, | |
"place": { | |
"type": "string" | |
}, | |
"protocol": { | |
"type": "string" | |
}, | |
"thing": { | |
"type": "string" | |
} | |
}, | |
"ref": "chatops.test", | |
"runner_type": "run-python", | |
"tags": [ | |
], | |
"uid": "action:chatops:test" | |
}, | |
"context": { | |
"action_alias_ref": { | |
"id": "5655efd94f6634729e31c4d8", | |
"name": "get" | |
}, | |
"api_user": "emedvedev", | |
"source_channel": "landofooo", | |
"user": "chatops_bot" | |
}, | |
"end_timestamp": "2015-11-25T20:23:14.937530Z", | |
"id": "565618b24f6634018a034fdf", | |
"liveaction": { | |
"action": "chatops.test", | |
"callback": { | |
}, | |
"id": "565618b24f6634018a034fde", | |
"runner_info": { | |
"hostname": "aptwe", | |
"pid": 14017 | |
} | |
}, | |
"parameters": { | |
"thing": "tennis ball" | |
}, | |
"result": { | |
"error": "Action \"test\" is missing entry_point attribute", | |
"traceback": " File \"\/usr\/lib\/python2.7\/dist-packages\/st2actions\/st2actions\/container\/base.py\", line 111, in _do_run\n (status, result, context) = runner.run(action_params)\n File \"\/usr\/lib\/python2.7\/dist-packages\/st2actions\/runners\/pythonrunner.py\", line 128, in run\n raise Exception(\"Action \"%s\" is missing entry_point attribute\" % (self.action.name))\n" | |
}, | |
"runner": { | |
"description": "A runner for launching python actions.", | |
"enabled": true, | |
"id": "5652fd89cf215c3e2ec6bea4", | |
"name": "run-python", | |
"runner_module": "st2actions.runners.pythonrunner", | |
"runner_parameters": { | |
"env": { | |
"description": "Environment variables which will be available to the script(e.g. key1=val1,key2=val2)", | |
"type": "object" | |
}, | |
"timeout": { | |
"default": 600, | |
"description": "Action timeout in seconds. Action will get killed if it doesn't finish in timeout seconds.", | |
"type": "integer" | |
} | |
} | |
}, | |
"start_timestamp": "2015-11-25T20:23:14.851816Z", | |
"status": "failed" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment