#!/bin/bash

curl -X POST https://api.eu.opsgenie.com/v1/incidents/create -H "Content-Type: application/json" -H "Authorization: GenieKey 82e970c1-XXXX-XXX-XXXX-XXXXXXXX" --data-binary @- <<DATA
{
    "message": "This is shell script - An example incident message",
    "description":"Every incident needs a description",
    "responders":[
        {"name":"FoglightOperators", "type":"team"},
        {"id":"95f8ebdf-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "type":"team"}        
        ],
     "tags": ["Outage","Critical"],
    "details":{
        "Action to be taken": "L1 - Engineer",
        "Work to be assessed": "L2 - Engineer"
    },
     "priority": "P1",
     "impactedServices": [
      "38179dc9-XXXX-XXXX-XXXX-XXXXXXXXXXXX", 
      "0285467c-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    ]
}
DATA
