Dear all,
I am actually evaluating opsgenie and I am facing to a really fuzzy field used when creating alert or incident.
Those fields are Action and Extra properties.
Does anyone have any sample content of those field and how there are used to be used ?
Really unclear to me so fat
Thanks for clarification
regards
Hi @serge calderara ,
The "actions" field, is where you can add custom actions that will be added to the alerts, so that you can then execute those custom actions on the alert, to trigger an outbound integration, or an Opsgenie Actions Channel to do something.
This doc details custom actions, and an example of how you can trigger a custom action to send to OEC, to execute a custom script.
So for example, you can add the "ping" action to be added to alerts, so that the alert will then have the "ping" action available for execution...
You can then setup an outbound integration like an OEC integration, or a Webhook integration, or an "Opsgenie Action" Channel to trigger based off the execution of that custom action.
Extra properties are just additional key-value fields you can add to alerts. So it just provides additional fields you can add to alerts, besides the default message, description, alias, etc. that are used on Opsgenie alerts.
So you can really add anything to those extra properties, for example
HostName: XXXX
to specify a specific host that the alert is related to.
Thanks,
Samir
hello @Samir thanks for your reply.
Just for clarification and to give it a try I have define an email integration where I can send email to create an alert.
I have define a rule where only P3 severity are consider as alert in opsgenie as defined below
Then when user send email to the support address, how can I ask them to specify the Priority parameter as part of the email in order to filter proper rule?
Does it have to do with Extra properties ?
how to configure that Priority in order it is bind to alert field from received email ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would do the priority mapping within the integration, it wouldn't have anything to do with extra properties.
You would need to be on the Standard or Enterprise plans, in order to have access to the "advanced" view of integrations to do this.
If the user is sending the email with "priority: P2" in the body of the email for example, then you can setup multiple Create Alert actions that filters on the priority being sent in the "message" field of the email (i.e. the body of the email), and set the priority of the Opsgenie alert accordingly...
e.g.
1 Create Alert action filtering for if message contains "Priority: P1", and if so - creates alert with priority = P1...
2nd Create Alert action filtering for if message contains "Priority: P2", and if so - creates alert with priority = P2...
Alternatively you can use string processing or regex to parse out the value of priority being sent in the message, to set the priority.
e.g.
Instead of using filters, use regex to parse out the "2" from "priority: P2" being sent in the message of the email
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Samir thnaks for your reply.
Its wierd I am in Standard plan but could not find in email integration where is what you call Advance view. I can see only what is below :
I have use the string formatting as I could not find Advance view you mentioned.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @serge calderara You are on the "JSM Standard" plan. I was referring to the Standalone Opsgenie Standard and Enterprise plans.
If you're on a JSM plan, you will need to have the JSM premium plan for advanced integrations.
The JSM Standard plan has similar features as the standalone Opsgenie Essentials plan. These plans just provide the basic features of Opsgenie, and don't offer the more advanced features that allow more flexibility and customization within the platform.
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.