-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
85 lines (74 loc) · 2.11 KB
/
config.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
---
cog_bundle_version: 4
name: victorops
description: Commands for interacting with VictorOps
version: 0.5.2
homepage: https://github.com/davejlong/cog-victorops
author: Dave Long <[email protected]>
docker:
image: cagedata/victorops-cog
tag: 0.5.2
config:
env:
- var: VICTOROPS_API_ID
description: API ID for VictorOps
- var: VICTOROPS_API_KEY
description: API Key for VictorOps
commands:
ack:
executable: "/home/bundle/cog-command"
description: Ack an open incident
arguments: "[incident]"
rules:
- allow
examples: |
victorops:ack 2170 "Looking into the issue"
notes: |
Acks an open incident.
Assumes that the username of the Cog user is the same as their
VictorOps username.
Requires API keys to be set:
VICTOROPS_API_ID
VICTOROPS_API_KEY
resolve:
executable: "/home/bundle/cog-command"
description: Resolve an open incident
arguments: "[incident]"
rules:
- allow
examples: |
victorops:resolve 2170 "All set"
notes: |
Resolved an open incident.
Assumes that the username of the Cog user is the same as their
VictorOps username.
Requires API keys to be set:
VICTOROPS_API_ID
VICTOROPS_API_KEY
incidents:
executable: "/home/bundle/cog-command"
description: Get a list of open incidents
rules:
- allow
examples: |
Get all open incidents (triggered and acknowledged):
victorops:incidents
Get only unacked incidents:
victorops:incidents --phase unacked
Get acked and resolved incidents:
victorops:incidents --phase acked,resolved
options:
phase:
type: string
required: false
short_flag: p
description: |
Comma-delimited list of phases to query for. Valid options are `resolved`, `acked`, `unacked`. Defaults to `acked`, `unacked`
templates:
incidents:
body: |
| ID | Phase | Message |
| ------- | ------- | ------- |
~each var=$results~
| ~$item.id~ | ~$item.phase~ | ~$item.message~ |
~end~