-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
54 lines (52 loc) · 1.7 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
---
cog_bundle_version: 4
name: pingdom
description: Interact with Pingdom API
author: Operable <[email protected]>
homepage: https://github.com/cogcmd/pingdom
version: 0.0.17
docker:
image: cogcmd/pingdom
tag: 0.0.17
permissions:
- pingdom:check
commands:
check:
executable: /home/bundle/cog-command
description: Retrieve information about one or more checks
arguments: "[subcommand]"
subcommands:
list: retrieve list of all checks
"show <id>": get detailed information for a specific check
"results <id> [--count=count]": retrieve 'count' raw check results for a specific check. Defaults to 1.
long_description: |
Returns one or more Pingdom "check" resources (see
https://www.pingdom.com/resources/api#ResourceChecks) or
"result" resources (see
https://www.pingdom.com/resources/api#ResourceResults) as JSON
maps.
notes: |
Must be configured with the following environment variables (see
http://docs.operable.io/docs/dynamic-command-configuration for
further details):
PINGDOM_USER_EMAIL
PINGDOM_USER_PASSWORD
PINGDOM_APPLICATION_KEY
The email and password values are the Pingdom account
credentials that will be used to authenticate with the
service. The application key is as described at
https://www.pingdom.com/resources/api.
options:
count:
description: Number of raw check results to return
type: int
required: false
short_flag: c
rules:
- 'when command is pingdom:check must have pingdom:check'
templates:
check:
body: |
~each var=$results~
~$item.name~ (~$item.hostname~) is currently ~$item.status~
~end~