Actions are automated tasks you can set up for your API. They can be triggered by specific events or scheduled to run at set times. You can choose between custom actions using your own integrations, or managed actions provided by FireTail.
Create an action
Navigate to the APIs tab on the dashboard.
Select the API you want to create the action against.
Click Actions. Then click Create Action.
Select to create an Event Driven Action or a Scheduled Action.
Create an Event Driven Action
Fill out the Event Driven Action form:
Name: Enter a name for the action.
Description: Enter a description for the action.
Events: Select which event or events will trigger the action.
Integration Type: Chose from Custom or Managed:
Custom: Select from a previously created Lambda or Webhook integration. Alternatively, click Create to create a new one.
Context: Add Key/Value pairs for your actions environment.
Managed: Select an out-of-the-box integration provided by FireTail. Learn more about Managed Actions.
API Contract Testing (if applicable):
Use event specification:
Toggle on to use the specification generated from the triggering event for validation.
Toggle off to use a predefined API specification.
API Specification:The API specification to be used during contract testing. This will be used when Use Event Specification is toggled off, or if no event specification exists.
Click Submit.
Scheduled action
Set up an Action to trigger on a schedule. Fill out the Scheduled Action form:
Name: Enter a name for the action.
Description: Enter a description for the action.
Scheduled rate minutes: The rate in minutes at which the action should be run.
Integration Type: Chose from Custom or Managed:
Custom: Select from a previously created Lambda or Webhook integration. Alternatively, click Create to create a new one.
Use the Context field to add key/value pairs that define specific parameters or settings required for the action.
Managed: Select an out-of-the-box integration provided by FireTail. Learn more about Managed Actions.
Enter the API Endpoint that the managed action will interact with.
API Contract Testing (if applicable):
Use event specification:
Toggle on to use the specification generated from the triggering event for validation.
Toggle off to use a predefined API specification.
API Specification:The API specification to be used during contract testing. This will be used when Use Event Specification is toggled off, or if no event specification exists.
Click Submit.
Custom integration example
Below is a FireTail actions event payload. See the GitHub Repo for details on how to call back to FireTail with your own findings.