Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...




Code Block
curl --request POST \
  --url http://my-instance:2990/jira/rest/catcher/1.0/alerts/zabbix \
  --header 'x-api-key: <your api key>' \
  --header 'content-type: application/json' \
  --data '{
	"id": "777-888",
	"rule": "Lack of free swap space", 
	"params" : {
		"Host": "10.100.0.5"
	}
}'


Image RemovedImage Added


Code Block
curl --request PUT \
  --url http://my-instance:2990/jira/rest/catcher/1.0/alerts/zabbix/777-888 \
  --header 'content-type: application/json' \
  --header 'x-api-key: <your api key>' \
  --data '{
	"id": "777-888",
	"rule": "Lack of free swap space", 
	"status": "Done",
	"params" : {
		"Host": "10.100.0.5"
	}
}'


Image RemovedImage Added

Creating incident from a specific reporter

...

Code Block
curl --request POST \
  --url http://my-instance:2990/jira/rest/catcher/1.0/alerts/zabbix/ \
  --header 'content-type: application/json' \
  --header 'x-api-key: <your api key>' \
  --data '{
	"id": "123-888",
	"rule": "Lack of free swap space", 
	"reporter": "Grant",
	"status": "Done",
	"params" : {
		"Host": "10.100.0.5"
	}
}'

Result

...

Creating problem from current alert

...