My organization currently uses ElastAlert to send Slack and OpsGenie messages/alerts from Kibana logs. We are in the process of transitioning from OpsGenie to JSM for alerting on-call personnel. We want to alert our on-call team when various exceptions occur within our application. Ideally we would want to be able to directly trigger an alert to the Team using whatever Integrations are configured (for example, Slack Integration, Email Integration, calling/texting the team, etc.) but my understanding is that we need to create an Issue and from there utilize Automation to trigger the alerts.
I have a prototype working where I utilize Jira API to create an Issue and populate it with details (issue type, priority, project, etc.) that are specific to these application exceptions.
I am trying to approach getting alerts to the team from 2 different directions: Automations on the Team and Automations on the Project.
When looking at automations on the team (for example, at this redacted URL: https://#####.atlassian.net/jira/ops/teams/##############/automations) when I create a rule the first condition for "Add a trigger" is always related to "Alerts". For example, "Alert created", "Alert status changed", etc. It appears that this Automation is related entirely to actions after an Alert has been created but not for creating an Alert itself.
This leads me to look at the Automation of individual projects (for example, at this redacted URL: https://#####.atlassian.net/jira/software/c/projects/#####/settings/automate).
When I create a Rule I am starting with a trigger of "Issue Created" followed by a few "If: Issue fields" conditions. With my "If" conditions in place a "Then" action is added to do "something". At this point I'm not clear on how I trigger an Alert to the Team that will utilize the Team Integrations.
Is there an API endpoint that can be utilized to directly alert the team without creating an issue?
If we must create an Issue and use Automations is the workflow I described above correct? In short, create an Automation for "Issue Created" with "something" triggered that results in an Alert being created and triggering the "Issue Created" automation from my API call?
What is the "something" action that needs to be used in "Then: add an action" to accomplish this?
If you want to create an alert then I think you want to add an API integration in JSM. That will allow you to make a API call to the webhook of the integration to generate an Alert. We are doing that today and it works well.
Alternatively you can use the Integration Events API "Create alert" documented at the link below to directly create an Alert.
From what I can see there isn't an API to notify the On-Call but I could just be missing it in the API documentation.
Thanks @Rick Westbrock . I was able to do what I needed with the /jsm/ops/integration/v2/alerts endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.