-
Notifications
You must be signed in to change notification settings - Fork 16
/
datadog-to-jira.yaml
43 lines (40 loc) · 1.15 KB
/
datadog-to-jira.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: v1
summary: Respond to a Datadog alert via Jira
description: Automatically respond to a Datadog alert by creating an issue in Jira.
homepage: https://github.com/puppetlabs/relay-workflows/tree/master/datadog-to-jira
tags:
- incident response
parameters:
eventBody:
description: Datadog event body
eventTitle:
description: Datadog event title
eventType:
description: Datadog event type
jiraProjectKey:
description: the JIRA project key to use when creating tickets
default: OPS
triggers:
- name: datadog
source:
type: webhook
image: relaysh/datadog-trigger-event-fired
binding:
parameters:
eventBody: !Data body
eventTitle: !Data title
eventType: !Data event_type
steps:
- name: jira-issue-create
image: relaysh/jira-step-issue-create
when: !Fn.equals [!Parameter eventType, query_alert_monitor]
spec:
connection: !Connection { type: jira, name: my-jira-connection}
issue:
fields:
description: !Fn.convertMarkdown [jira, !Parameter eventBody]
project:
key: !Parameter jiraProjectKey
summary: !Parameter eventTitle
type:
name: Task