-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
90 lines (87 loc) · 2.48 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
86
87
88
89
---
cog_bundle_version: 4
name: statuspage
description: Interact with the statuspage.io API
version: 0.1.6
docker:
image: cogcmd/statuspage
tag: 0.1.5
permissions:
- statuspage:update
commands:
component:
executable: /usr/bin/cog-command
description: Enumerate and view status of defined components
documentation: |
Enumerate and view status of defined statuspage.io components
statuspage:component [list*|status] *=default
rules: [ 'allow' ]
incident:
executable: /usr/bin/cog-command
description: List, create, and update incidents
documentation: |
List, create, and update statuspage.io incidents
statuspage:incident list
statuspage:incident new [-s|--status] [-i|--impact] [-c|--component] [-n|--name] [message]
statuspage:incident update [-s|--status] [-i|--impact] [-c|--component] [-n|--name] [message]
rules:
- 'when command is statuspage:incident must have statuspage:update'
options:
all:
type: bool
required: false
short_flag: a
status:
type: string
required: false
short_flag: s
impact:
type: string
required: false
short_flag: i
component:
type: string
required: false
short_flag: c
name:
type: string
required: false
short_flag: n
rules: [ 'allow' ]
templates:
comps_list:
body: |
~each var=$results as=result~
~$result.name~
~end~
comps_status:
body: |
~each var=$results as=result~
Component: ~$result.name~ Status: ~$result.status~ Last Updated: ~$result.last_updated~
~end~
incidents_list:
body: |
~each var=$results as=result~
Incident ~$result.name~ (~$result.impact~) has been active since ~$result.active_since~. Current status is '~$result.status~'.
~$result.link~
~end~
no_incidents:
body: |
~each var=$results as=result~
"~$result.incidents~ unresolved incidents found."
~end~
incident_created:
body: |
~each var=$results as=result~
Incident ~$result.name~ was created. Click ~$result.link~ to view.
~end~
incident_updated:
body: |
~each var=$results as=result~
Incident ~$result.name~ was updated. Click ~$result.link~ to view.
~end~
incident_resolved:
body: |
~each var=$results as=result~
Incident ~$result.name~ was resolved at ~$result.resolved_at~. Click ~$result.link~ to view.
~end~