forked from alerta/sensu-alerta-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-event.json
123 lines (123 loc) · 2.78 KB
/
example-event.json
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"timestamp": 1460172826,
"entity": {
"entity_class": "agent",
"system": {
"hostname": "webserver01",
"os": "linux",
"platform": "centos",
"platform_family": "rhel",
"platform_version": "7.4.1708",
"network": {
"interfaces": [
{
"name": "lo",
"addresses": [
"127.0.0.1/8",
"::1/128"
]
},
{
"name": "enp0s3",
"mac": "08:00:27:11:ad:d2",
"addresses": [
"10.0.2.15/24",
"fe80::26a5:54ec:cf0d:9704/64"
]
},
{
"name": "enp0s8",
"mac": "08:00:27:bc:be:60",
"addresses": [
"172.28.128.3/24",
"fe80::a00:27ff:febc:be60/64"
]
}
]
},
"arch": "amd64"
},
"subscriptions": [
"testing",
"entity:webserver01"
],
"last_seen": 1542667635,
"deregister": false,
"deregistration": {},
"user": "agent",
"redact": [
"password",
"passwd",
"pass",
"api_key",
"api_token",
"access_key",
"secret_key",
"private_key",
"secret"
],
"metadata": {
"name": "webserver01",
"namespace": "default",
"labels": {
"test_attribute": "label-value-entity1"
},
"annotations": {
"sensu.io/plugins/segp/config/path1": "value-entity1",
"sensu.io/plugins/segp/config/path2": "2468",
"sensu.io/plugins/segp/config/path3": "true"
}
}
},
"check": {
"check_hooks": null,
"duration": 0.010849143,
"executed": 1544493319,
"high_flap_threshold": 0,
"history": [
{
"status": 1,
"executed": 1544493319
}
],
"command": "http_check.sh http://localhost:80",
"handlers": [
"alerta"
],
"interval": 20,
"low_flap_threshold": 0,
"publish": true,
"runtime_assets": [],
"subscriptions": [
"testing"
],
"proxy_entity_name": "",
"stdin": false,
"ttl": 0,
"timeout": 0,
"issued": 1544493319,
"output": "example output",
"state": "failing",
"status": 1,
"total_state_change": 0,
"last_ok": 0,
"occurrences": 1,
"occurrences_watermark": 1,
"output_metric_format": "",
"output_metric_handlers": [],
"env_vars": null,
"metadata": {
"name": "check-nginx",
"namespace": "default",
"labels": {
"sensu.io/managed_by": "sensuctl",
"test_attribute": "label-value-check1"
},
"annotations": {
"sensu.io/plugins/segp/config/path1": "value-check1",
"sensu.io/plugins/segp/config/path2": "1357",
"sensu.io/plugins/segp/config/path3": "false"
}
}
}
}