-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
96 lines (78 loc) · 2.98 KB
/
action.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: 'OpsGenie Create Alert'
description: 'Create an alert in OpsGenie'
author: "CDQ AG"
branding:
icon: 'user-check'
color: 'blue'
# Based on https://docs.opsgenie.com/docs/alert-api#create-alert
inputs:
apiUrl:
description: 'OpsGenie API URL'
default: https://api.opsgenie.com/v2
required: true
apiKey:
description: 'OpsGenie API Key'
required: true
message:
description: 'Message of the alert. (Limit: 130 characters)'
required: true
alias:
description: 'Client-defined identifier of the alert, that is also the key element of Alert De-Duplication. (Limit: 512 characters)'
required: false
description:
description: 'Description field of the alert that is generally used to provide a detailed information about the alert. (Limit: 15000 characters)'
required: false
responders:
description: 'An array of teams, users, escalations and schedules that the alert will be routed to. If responders field is not provided, the alert will be routed to the default responders of the alert policy. (Limit: 50 teams, users, escalations or schedules)'
required: false
visibleTo:
description: 'An array of teams, users, escalations and schedules that the alert will be visible to without sending any notification. (Limit: 50 teams or users in total)'
required: false
actions:
description: 'An array of custom actions that will be available for the alert. (Limit: 10 x 50 characters)'
required: false
tags:
description: 'An array of tags of the alert. (Limit: 20 x 50 characters)'
required: false
details:
description: 'Map of key-value pairs to use as custom properties of the alert. (Limit: 8000 characters in total)'
required: false
entity:
description: 'Entity field of the alert, that is generally used to specify which domain the alert is related to. (Limit: 512 characters)'
required: false
source:
description: 'Source field of the alert, that is used to carry where the alert is created. (Limit: 100 characters)'
required: false
priority:
description: 'Priority level of the alert. Default value is P3. (Possible values: P1, P2, P3, P4, P5)'
required: false
user:
description: 'Display name of the request owner. (Limit: 100 characters)'
required: false
note:
description: 'Additional note that will be added while creating the alert. (Limit: 25000 characters)'
required: false
verbose:
description: 'Enable curl verbose output'
default: "false"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.apiUrl }}
- ${{ inputs.apiKey }}
- ${{ inputs.message }}
- ${{ inputs.alias }}
- ${{ inputs.description }}
- ${{ inputs.responders }}
- ${{ inputs.visibleTo }}
- ${{ inputs.actions }}
- ${{ inputs.tags }}
- ${{ inputs.details }}
- ${{ inputs.entity }}
- ${{ inputs.source }}
- ${{ inputs.priority }}
- ${{ inputs.user }}
- ${{ inputs.note }}
- ${{ inputs.verbose }}