Hi All,
Below is the code for the watcher i created in kibana. watcher name - slack_test
{
"trigger": {
"schedule": {
"interval": "10m"
}
},
"input": {
"http": {
"request": {
"scheme": "http",
"host": "localhost",
"port": 9200,
"method": "get",
"path": "/_cluster/health",
"params": {},
"headers": {}
}
}
},
"condition": {
"always": {}
},
"actions": {
"logging": {
"logging": {
"level": "info",
"text": "{{ctx}}"
}
},
"actions" : {
"create-jira-issue" : {
"throttle_period" : "10m",
"jira" : {
"account" : "monitoring",
"fields" : {
"project" : {
"key": "CPM"
},
"issuetype" : {
"name": "Incident"
},
"summary" : "CPM - EntityCode - DB - EntityName - EXP",
"description" : "CPM - EntityCode - DB - EntityName - EXP",
"labels" : ["CPM_Test"],
"priority" : {
"name" : "High"
}
}
}
}
},
"notify-slack": {
"slack": {
"account": "team1",
"message": {
"from": "Customer Performance Alert",
"to": [
"#cpm"
],
"text": "*CRITICAL!!* Submit Report average duration high for *1* customers! ",
"attachments": [
{
"color": "danger",
"title": "Average duration was above the critical threshold for 1 customers",
"text": "The following entities showed Submit Report average durations above the critical threshold for the last 60 minutes:\n_Wells Fargo (p0004196squa) 11733 ms_\n_Critical threshold: 10000 ms._"
}
]
}
}
}
}
}
When i save this try to simulate it i am getting the below error message -
Watcher: [parse_exception] could not parse action [slack_test/actions]. unknown action type [create-jira-issue]
Please help on this.