@sonde/packs 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +6 -4
- package/.turbo/turbo-test.log +1343 -53
- package/CHANGELOG.md +18 -0
- package/dist/docker/manifest (# Edit conflict 2026-02-19 LIl7ilN #).js +54 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/a10.d.ts +3 -0
- package/dist/integrations/a10.d.ts.map +1 -0
- package/dist/integrations/a10.js +218 -0
- package/dist/integrations/a10.js.map +1 -0
- package/dist/integrations/checkpoint.d.ts +3 -0
- package/dist/integrations/checkpoint.d.ts.map +1 -0
- package/dist/integrations/checkpoint.js +249 -0
- package/dist/integrations/checkpoint.js.map +1 -0
- package/dist/integrations/datadog.d.ts +3 -0
- package/dist/integrations/datadog.d.ts.map +1 -0
- package/dist/integrations/datadog.js +195 -0
- package/dist/integrations/datadog.js.map +1 -0
- package/dist/integrations/jira.d.ts +3 -0
- package/dist/integrations/jira.d.ts.map +1 -0
- package/dist/integrations/jira.js +199 -0
- package/dist/integrations/jira.js.map +1 -0
- package/dist/integrations/loki.d.ts +3 -0
- package/dist/integrations/loki.d.ts.map +1 -0
- package/dist/integrations/loki.js +178 -0
- package/dist/integrations/loki.js.map +1 -0
- package/dist/integrations/meraki.d.ts +3 -0
- package/dist/integrations/meraki.d.ts.map +1 -0
- package/dist/integrations/meraki.js +238 -0
- package/dist/integrations/meraki.js.map +1 -0
- package/dist/integrations/pagerduty.d.ts +3 -0
- package/dist/integrations/pagerduty.d.ts.map +1 -0
- package/dist/integrations/pagerduty.js +229 -0
- package/dist/integrations/pagerduty.js.map +1 -0
- package/dist/integrations/thousandeyes.d.ts +3 -0
- package/dist/integrations/thousandeyes.d.ts.map +1 -0
- package/dist/integrations/thousandeyes.js +263 -0
- package/dist/integrations/thousandeyes.js.map +1 -0
- package/dist/integrations/vcenter.d.ts +3 -0
- package/dist/integrations/vcenter.d.ts.map +1 -0
- package/dist/integrations/vcenter.js +190 -0
- package/dist/integrations/vcenter.js.map +1 -0
- package/dist/proxmox/probes/ceph-status.test.d.ts (# Edit conflict 2026-02-19 N25hAvJ #).map +1 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +8 -0
- package/dist/system/index.js.map +1 -1
- package/dist/system/manifest.d.ts.map +1 -1
- package/dist/system/manifest.js +82 -3
- package/dist/system/manifest.js.map +1 -1
- package/dist/system/probes/logs-dmesg.d.ts +13 -0
- package/dist/system/probes/logs-dmesg.d.ts.map +1 -0
- package/dist/system/probes/logs-dmesg.js +22 -0
- package/dist/system/probes/logs-dmesg.js.map +1 -0
- package/dist/system/probes/logs-dmesg.test.d.ts +2 -0
- package/dist/system/probes/logs-dmesg.test.d.ts.map +1 -0
- package/dist/system/probes/logs-dmesg.test.js +55 -0
- package/dist/system/probes/logs-dmesg.test.js.map +1 -0
- package/dist/system/probes/logs-journal.d.ts +21 -0
- package/dist/system/probes/logs-journal.d.ts.map +1 -0
- package/dist/system/probes/logs-journal.js +70 -0
- package/dist/system/probes/logs-journal.js.map +1 -0
- package/dist/system/probes/logs-journal.test.d.ts +2 -0
- package/dist/system/probes/logs-journal.test.d.ts.map +1 -0
- package/dist/system/probes/logs-journal.test.js +113 -0
- package/dist/system/probes/logs-journal.test.js.map +1 -0
- package/dist/system/probes/logs-tail.d.ts +14 -0
- package/dist/system/probes/logs-tail.d.ts.map +1 -0
- package/dist/system/probes/logs-tail.js +40 -0
- package/dist/system/probes/logs-tail.js.map +1 -0
- package/dist/system/probes/logs-tail.test.d.ts +2 -0
- package/dist/system/probes/logs-tail.test.d.ts.map +1 -0
- package/dist/system/probes/logs-tail.test.js +82 -0
- package/dist/system/probes/logs-tail.test.js.map +1 -0
- package/dist/system/probes/traceroute.d.ts +17 -0
- package/dist/system/probes/traceroute.d.ts.map +1 -0
- package/dist/system/probes/traceroute.js +72 -0
- package/dist/system/probes/traceroute.js.map +1 -0
- package/dist/system/probes/traceroute.test.d.ts +2 -0
- package/dist/system/probes/traceroute.test.d.ts.map +1 -0
- package/dist/system/probes/traceroute.test.js +98 -0
- package/dist/system/probes/traceroute.test.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/integrations/a10.ts +370 -0
- package/src/integrations/checkpoint.ts +381 -0
- package/src/integrations/datadog.ts +281 -0
- package/src/integrations/jira.ts +272 -0
- package/src/integrations/loki.ts +228 -0
- package/src/integrations/meraki.ts +344 -0
- package/src/integrations/pagerduty.ts +319 -0
- package/src/integrations/thousandeyes.ts +353 -0
- package/src/integrations/vcenter.ts +261 -0
- package/src/system/index.ts +8 -0
- package/src/system/manifest.ts +93 -3
- package/src/system/probes/logs-dmesg.test.ts +83 -0
- package/src/system/probes/logs-dmesg.ts +38 -0
- package/src/system/probes/logs-journal.test.ts +142 -0
- package/src/system/probes/logs-journal.ts +103 -0
- package/src/system/probes/logs-tail.test.ts +140 -0
- package/src/system/probes/logs-tail.ts +70 -0
- package/src/system/probes/traceroute.test.ts +149 -0
- package/src/system/probes/traceroute.ts +99 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// --- Auth helpers ---
|
|
2
|
+
function buildAuthHeaders(credentials) {
|
|
3
|
+
const apiKey = credentials.credentials.apiKey ?? '';
|
|
4
|
+
return { Authorization: `Bearer ${apiKey}` };
|
|
5
|
+
}
|
|
6
|
+
// --- REST helper ---
|
|
7
|
+
async function merakiGet(path, config, credentials, fetchFn, params) {
|
|
8
|
+
const base = `${config.endpoint.replace(/\/$/, '')}/api/v1${path}`;
|
|
9
|
+
const url = new URL(base);
|
|
10
|
+
if (params) {
|
|
11
|
+
for (const [key, value] of Object.entries(params)) {
|
|
12
|
+
url.searchParams.set(key, value);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
const headers = {
|
|
16
|
+
Accept: 'application/json',
|
|
17
|
+
...buildAuthHeaders(credentials),
|
|
18
|
+
...config.headers,
|
|
19
|
+
};
|
|
20
|
+
const res = await fetchFn(url.toString(), { headers });
|
|
21
|
+
if (!res.ok) {
|
|
22
|
+
throw new Error(`Meraki API returned ${res.status}: ${res.statusText}`);
|
|
23
|
+
}
|
|
24
|
+
return (await res.json());
|
|
25
|
+
}
|
|
26
|
+
// --- Probe handlers ---
|
|
27
|
+
const organizationsList = async (_params, config, credentials, fetchFn) => {
|
|
28
|
+
const orgs = await merakiGet('/organizations', config, credentials, fetchFn);
|
|
29
|
+
return {
|
|
30
|
+
organizations: orgs.map((o) => ({
|
|
31
|
+
id: o.id ?? null,
|
|
32
|
+
name: o.name ?? null,
|
|
33
|
+
url: o.url ?? null,
|
|
34
|
+
})),
|
|
35
|
+
count: orgs.length,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const devicesStatuses = async (params, config, credentials, fetchFn) => {
|
|
39
|
+
const orgId = params?.orgId || credentials.credentials.orgId;
|
|
40
|
+
if (!orgId)
|
|
41
|
+
throw new Error('orgId parameter is required');
|
|
42
|
+
const devices = await merakiGet(`/organizations/${encodeURIComponent(orgId)}/devices/statuses`, config, credentials, fetchFn);
|
|
43
|
+
return {
|
|
44
|
+
devices: devices.map((d) => ({
|
|
45
|
+
name: d.name ?? null,
|
|
46
|
+
serial: d.serial ?? null,
|
|
47
|
+
model: d.model ?? null,
|
|
48
|
+
status: d.status ?? null,
|
|
49
|
+
lanIp: d.lanIp ?? null,
|
|
50
|
+
mac: d.mac ?? null,
|
|
51
|
+
networkId: d.networkId ?? null,
|
|
52
|
+
})),
|
|
53
|
+
count: devices.length,
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
const switchPortStatuses = async (params, config, credentials, fetchFn) => {
|
|
57
|
+
const serial = params?.serial;
|
|
58
|
+
if (!serial)
|
|
59
|
+
throw new Error('serial parameter is required');
|
|
60
|
+
const ports = await merakiGet(`/devices/${encodeURIComponent(serial)}/switch/ports/statuses`, config, credentials, fetchFn);
|
|
61
|
+
return {
|
|
62
|
+
ports: ports.map((p) => ({
|
|
63
|
+
portId: p.portId ?? null,
|
|
64
|
+
enabled: p.enabled ?? false,
|
|
65
|
+
status: p.status ?? null,
|
|
66
|
+
speed: p.speed ?? null,
|
|
67
|
+
duplex: p.duplex ?? null,
|
|
68
|
+
cdp: p.cdp ?? null,
|
|
69
|
+
lldp: p.lldp ?? null,
|
|
70
|
+
errors: p.errors ?? [],
|
|
71
|
+
usage: p.usageInKb ?? null,
|
|
72
|
+
})),
|
|
73
|
+
count: ports.length,
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
const deviceLldpCdp = async (params, config, credentials, fetchFn) => {
|
|
77
|
+
const serial = params?.serial;
|
|
78
|
+
if (!serial)
|
|
79
|
+
throw new Error('serial parameter is required');
|
|
80
|
+
const data = await merakiGet(`/devices/${encodeURIComponent(serial)}/lldpCdp`, config, credentials, fetchFn);
|
|
81
|
+
const ports = data.ports ?? {};
|
|
82
|
+
const neighbors = Object.entries(ports).map(([portId, info]) => ({
|
|
83
|
+
portId,
|
|
84
|
+
cdp: info.cdp ?? null,
|
|
85
|
+
lldp: info.lldp ?? null,
|
|
86
|
+
}));
|
|
87
|
+
return { neighbors, count: neighbors.length };
|
|
88
|
+
};
|
|
89
|
+
const deviceClients = async (params, config, credentials, fetchFn) => {
|
|
90
|
+
const serial = params?.serial;
|
|
91
|
+
if (!serial)
|
|
92
|
+
throw new Error('serial parameter is required');
|
|
93
|
+
const queryParams = {};
|
|
94
|
+
const timespan = params?.timespan;
|
|
95
|
+
if (timespan)
|
|
96
|
+
queryParams.timespan = String(timespan);
|
|
97
|
+
const clients = await merakiGet(`/devices/${encodeURIComponent(serial)}/clients`, config, credentials, fetchFn, queryParams);
|
|
98
|
+
return {
|
|
99
|
+
clients: clients.map((c) => ({
|
|
100
|
+
mac: c.mac ?? null,
|
|
101
|
+
ip: c.ip ?? null,
|
|
102
|
+
description: c.description ?? null,
|
|
103
|
+
vlan: c.vlan ?? null,
|
|
104
|
+
switchport: c.switchport ?? null,
|
|
105
|
+
usage: c.usage ?? null,
|
|
106
|
+
})),
|
|
107
|
+
count: clients.length,
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
const networksList = async (params, config, credentials, fetchFn) => {
|
|
111
|
+
const orgId = params?.orgId || credentials.credentials.orgId;
|
|
112
|
+
if (!orgId)
|
|
113
|
+
throw new Error('orgId parameter is required');
|
|
114
|
+
const networks = await merakiGet(`/organizations/${encodeURIComponent(orgId)}/networks`, config, credentials, fetchFn);
|
|
115
|
+
return {
|
|
116
|
+
networks: networks.map((n) => ({
|
|
117
|
+
id: n.id ?? null,
|
|
118
|
+
name: n.name ?? null,
|
|
119
|
+
productTypes: n.productTypes ?? [],
|
|
120
|
+
timeZone: n.timeZone ?? null,
|
|
121
|
+
tags: n.tags ?? [],
|
|
122
|
+
})),
|
|
123
|
+
count: networks.length,
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
// --- Pack definition ---
|
|
127
|
+
export const merakiPack = {
|
|
128
|
+
manifest: {
|
|
129
|
+
name: 'meraki',
|
|
130
|
+
type: 'integration',
|
|
131
|
+
version: '0.1.0',
|
|
132
|
+
description: 'Cisco Meraki — device fleet status, switch ports, and network topology',
|
|
133
|
+
requires: { groups: [], files: [], commands: [] },
|
|
134
|
+
probes: [
|
|
135
|
+
{
|
|
136
|
+
name: 'organizations.list',
|
|
137
|
+
description: 'List organizations accessible by the API key',
|
|
138
|
+
capability: 'observe',
|
|
139
|
+
params: {},
|
|
140
|
+
timeout: 15000,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'devices.statuses',
|
|
144
|
+
description: 'List device statuses across an organization',
|
|
145
|
+
capability: 'observe',
|
|
146
|
+
params: {
|
|
147
|
+
orgId: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
description: 'Meraki organization ID (falls back to credential orgId)',
|
|
150
|
+
required: false,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
timeout: 15000,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'switch.port-statuses',
|
|
157
|
+
description: 'Get port statuses for a switch including speed, duplex, and neighbors',
|
|
158
|
+
capability: 'observe',
|
|
159
|
+
params: {
|
|
160
|
+
serial: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'Device serial number',
|
|
163
|
+
required: true,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
timeout: 15000,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'device.lldp-cdp',
|
|
170
|
+
description: 'Get LLDP and CDP neighbor information for a device',
|
|
171
|
+
capability: 'observe',
|
|
172
|
+
params: {
|
|
173
|
+
serial: {
|
|
174
|
+
type: 'string',
|
|
175
|
+
description: 'Device serial number',
|
|
176
|
+
required: true,
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
timeout: 15000,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'device.clients',
|
|
183
|
+
description: 'List clients connected to a device',
|
|
184
|
+
capability: 'observe',
|
|
185
|
+
params: {
|
|
186
|
+
serial: {
|
|
187
|
+
type: 'string',
|
|
188
|
+
description: 'Device serial number',
|
|
189
|
+
required: true,
|
|
190
|
+
},
|
|
191
|
+
timespan: {
|
|
192
|
+
type: 'number',
|
|
193
|
+
description: 'Lookback period in seconds (default: 86400)',
|
|
194
|
+
required: false,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
timeout: 15000,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'networks.list',
|
|
201
|
+
description: 'List networks in an organization',
|
|
202
|
+
capability: 'observe',
|
|
203
|
+
params: {
|
|
204
|
+
orgId: {
|
|
205
|
+
type: 'string',
|
|
206
|
+
description: 'Meraki organization ID (falls back to credential orgId)',
|
|
207
|
+
required: false,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
timeout: 15000,
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
runbook: {
|
|
214
|
+
category: 'network',
|
|
215
|
+
probes: ['organizations.list', 'devices.statuses'],
|
|
216
|
+
parallel: true,
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
handlers: {
|
|
220
|
+
'organizations.list': organizationsList,
|
|
221
|
+
'devices.statuses': devicesStatuses,
|
|
222
|
+
'switch.port-statuses': switchPortStatuses,
|
|
223
|
+
'device.lldp-cdp': deviceLldpCdp,
|
|
224
|
+
'device.clients': deviceClients,
|
|
225
|
+
'networks.list': networksList,
|
|
226
|
+
},
|
|
227
|
+
testConnection: async (config, credentials, fetchFn) => {
|
|
228
|
+
const url = `${config.endpoint.replace(/\/$/, '')}/api/v1/organizations`;
|
|
229
|
+
const headers = {
|
|
230
|
+
Accept: 'application/json',
|
|
231
|
+
...buildAuthHeaders(credentials),
|
|
232
|
+
...config.headers,
|
|
233
|
+
};
|
|
234
|
+
const res = await fetchFn(url, { headers });
|
|
235
|
+
return res.ok;
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=meraki.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meraki.js","sourceRoot":"","sources":["../../src/integrations/meraki.ts"],"names":[],"mappings":"AAQA,uBAAuB;AAEvB,SAAS,gBAAgB,CAAC,WAAmC;IAC3D,MAAM,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC;IACpD,OAAO,EAAE,aAAa,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC;AAC/C,CAAC;AAED,sBAAsB;AAEtB,KAAK,UAAU,SAAS,CACtB,IAAY,EACZ,MAAyB,EACzB,WAAmC,EACnC,OAAgB,EAChB,MAA+B;IAE/B,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC;IACnE,M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qBAChB;iBACF;gBACD,OAAO,EAAE,KAAK;aACf;SACF;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAClD,QAAQ,EAAE,IAAI;SACf;KACF;IAED,QAAQ,EAAE;QACR,oBAAoB,EAAE,iBAAiB;QACvC,kBAAkB,EAAE,eAAe;QACnC,sBAAsB,EAAE,kBAAkB;QAC1C,iBAAiB,EAAE,aAAa;QAChC,gBAAgB,EAAE,aAAa;QAC/B,eAAe,EAAE,YAAY;KAC9B;IAED,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE;QACrD,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAuB,CAAC;QACzE,MAAM,OAAO,GAA2B;YACtC,MAAM,EAAE,kBAAkB;YAC1B,GAAG,gBAAgB,CAAC,WAAW,CAAC;YAChC,GAAG,MAAM,CAAC,OAAO;SAClB,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAC5C,OAAO,GAAG,CAAC,EAAE,CAAC;IAChB,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagerduty.d.ts","sourceRoot":"","sources":["../../src/integrations/pagerduty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,eAAe,EAEhB,MAAM,eAAe,CAAC;AAmNvB,eAAO,MAAM,aAAa,EAAE,eAqG3B,CAAC"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
// --- Auth helpers ---
|
|
2
|
+
/** Build PagerDuty auth header: Token token=<key> */
|
|
3
|
+
function buildAuthHeaders(credentials) {
|
|
4
|
+
const token = credentials.credentials.token ?? '';
|
|
5
|
+
return { Authorization: `Token token=${token}` };
|
|
6
|
+
}
|
|
7
|
+
// --- REST helper ---
|
|
8
|
+
async function pagerdutyGet(path, config, credentials, fetchFn, params) {
|
|
9
|
+
const base = `${config.endpoint.replace(/\/$/, '')}${path}`;
|
|
10
|
+
const url = new URL(base);
|
|
11
|
+
if (params) {
|
|
12
|
+
for (const [key, value] of Object.entries(params)) {
|
|
13
|
+
url.searchParams.set(key, value);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const headers = {
|
|
17
|
+
Accept: 'application/json',
|
|
18
|
+
'Content-Type': 'application/json',
|
|
19
|
+
...buildAuthHeaders(credentials),
|
|
20
|
+
...config.headers,
|
|
21
|
+
};
|
|
22
|
+
const res = await fetchFn(url.toString(), { headers });
|
|
23
|
+
if (!res.ok) {
|
|
24
|
+
throw new Error(`PagerDuty API returned ${res.status}: ${res.statusText}`);
|
|
25
|
+
}
|
|
26
|
+
return (await res.json());
|
|
27
|
+
}
|
|
28
|
+
// --- Probe handlers ---
|
|
29
|
+
const incidentsList = async (params, config, credentials, fetchFn) => {
|
|
30
|
+
const queryParams = {};
|
|
31
|
+
const status = params?.status;
|
|
32
|
+
if (status)
|
|
33
|
+
queryParams['statuses[]'] = status;
|
|
34
|
+
const since = params?.since;
|
|
35
|
+
if (since)
|
|
36
|
+
queryParams.since = since;
|
|
37
|
+
const until = params?.until;
|
|
38
|
+
if (until)
|
|
39
|
+
queryParams.until = until;
|
|
40
|
+
const data = await pagerdutyGet('/incidents', config, credentials, fetchFn, queryParams);
|
|
41
|
+
const incidents = data.incidents ?? [];
|
|
42
|
+
return {
|
|
43
|
+
incidents: incidents.map((i) => ({
|
|
44
|
+
id: i.id,
|
|
45
|
+
incidentNumber: i.incident_number ?? null,
|
|
46
|
+
title: i.title ?? null,
|
|
47
|
+
status: i.status ?? null,
|
|
48
|
+
urgency: i.urgency ?? null,
|
|
49
|
+
createdAt: i.created_at ?? null,
|
|
50
|
+
service: i.service?.summary ?? null,
|
|
51
|
+
assignees: (i.assignees ?? []).map((a) => a.summary ?? ''),
|
|
52
|
+
})),
|
|
53
|
+
total: data.total ?? incidents.length,
|
|
54
|
+
count: incidents.length,
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const incidentsTriggered = async (_params, config, credentials, fetchFn) => {
|
|
58
|
+
const data = await pagerdutyGet('/incidents', config, credentials, fetchFn, {
|
|
59
|
+
'statuses[]': 'triggered,acknowledged',
|
|
60
|
+
});
|
|
61
|
+
const incidents = data.incidents ?? [];
|
|
62
|
+
return {
|
|
63
|
+
incidents: incidents.map((i) => ({
|
|
64
|
+
id: i.id,
|
|
65
|
+
incidentNumber: i.incident_number ?? null,
|
|
66
|
+
title: i.title ?? null,
|
|
67
|
+
status: i.status ?? null,
|
|
68
|
+
urgency: i.urgency ?? null,
|
|
69
|
+
createdAt: i.created_at ?? null,
|
|
70
|
+
service: i.service?.summary ?? null,
|
|
71
|
+
assignees: (i.assignees ?? []).map((a) => a.summary ?? ''),
|
|
72
|
+
})),
|
|
73
|
+
total: data.total ?? incidents.length,
|
|
74
|
+
count: incidents.length,
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
const servicesList = async (_params, config, credentials, fetchFn) => {
|
|
78
|
+
const data = await pagerdutyGet('/services', config, credentials, fetchFn);
|
|
79
|
+
const services = data.services ?? [];
|
|
80
|
+
return {
|
|
81
|
+
services: services.map((s) => ({
|
|
82
|
+
id: s.id,
|
|
83
|
+
name: s.name ?? null,
|
|
84
|
+
status: s.status ?? null,
|
|
85
|
+
description: s.description ?? null,
|
|
86
|
+
createdAt: s.created_at ?? null,
|
|
87
|
+
})),
|
|
88
|
+
count: services.length,
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const serviceDetail = async (params, config, credentials, fetchFn) => {
|
|
92
|
+
const id = params?.id;
|
|
93
|
+
if (!id)
|
|
94
|
+
throw new Error('id parameter is required (service ID)');
|
|
95
|
+
const data = await pagerdutyGet(`/services/${id}`, config, credentials, fetchFn);
|
|
96
|
+
const svc = data.service;
|
|
97
|
+
if (!svc)
|
|
98
|
+
throw new Error(`Service ${id} not found`);
|
|
99
|
+
return {
|
|
100
|
+
id: svc.id,
|
|
101
|
+
name: svc.name ?? null,
|
|
102
|
+
status: svc.status ?? null,
|
|
103
|
+
description: svc.description ?? null,
|
|
104
|
+
escalationPolicy: svc.escalation_policy?.summary ?? null,
|
|
105
|
+
integrations: (svc.integrations ?? []).map((i) => ({
|
|
106
|
+
id: i.id ?? null,
|
|
107
|
+
summary: i.summary ?? null,
|
|
108
|
+
type: i.type ?? null,
|
|
109
|
+
})),
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
const oncallList = async (params, config, credentials, fetchFn) => {
|
|
113
|
+
const queryParams = {};
|
|
114
|
+
const scheduleIds = params?.schedule_ids;
|
|
115
|
+
if (scheduleIds)
|
|
116
|
+
queryParams['schedule_ids[]'] = scheduleIds;
|
|
117
|
+
const data = await pagerdutyGet('/oncalls', config, credentials, fetchFn, queryParams);
|
|
118
|
+
const oncalls = data.oncalls ?? [];
|
|
119
|
+
return {
|
|
120
|
+
oncalls: oncalls.map((o) => ({
|
|
121
|
+
user: o.user?.summary ?? null,
|
|
122
|
+
schedule: o.schedule?.summary ?? null,
|
|
123
|
+
escalationPolicy: o.escalation_policy?.summary ?? null,
|
|
124
|
+
escalationLevel: o.escalation_level ?? null,
|
|
125
|
+
start: o.start ?? null,
|
|
126
|
+
end: o.end ?? null,
|
|
127
|
+
})),
|
|
128
|
+
count: oncalls.length,
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
// --- Pack definition ---
|
|
132
|
+
export const pagerdutyPack = {
|
|
133
|
+
manifest: {
|
|
134
|
+
name: 'pagerduty',
|
|
135
|
+
type: 'integration',
|
|
136
|
+
version: '0.1.0',
|
|
137
|
+
description: 'PagerDuty — incidents, services, on-call schedules',
|
|
138
|
+
requires: { groups: [], files: [], commands: [] },
|
|
139
|
+
probes: [
|
|
140
|
+
{
|
|
141
|
+
name: 'incidents.list',
|
|
142
|
+
description: 'List incidents with optional status, since, and until filters',
|
|
143
|
+
capability: 'observe',
|
|
144
|
+
params: {
|
|
145
|
+
status: {
|
|
146
|
+
type: 'string',
|
|
147
|
+
description: 'Filter by status (triggered, acknowledged, resolved)',
|
|
148
|
+
required: false,
|
|
149
|
+
},
|
|
150
|
+
since: {
|
|
151
|
+
type: 'string',
|
|
152
|
+
description: 'Start date (ISO 8601)',
|
|
153
|
+
required: false,
|
|
154
|
+
},
|
|
155
|
+
until: {
|
|
156
|
+
type: 'string',
|
|
157
|
+
description: 'End date (ISO 8601)',
|
|
158
|
+
required: false,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
timeout: 15000,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'incidents.triggered',
|
|
165
|
+
description: 'List active incidents (triggered + acknowledged)',
|
|
166
|
+
capability: 'observe',
|
|
167
|
+
params: {},
|
|
168
|
+
timeout: 15000,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'services.list',
|
|
172
|
+
description: 'List services with status',
|
|
173
|
+
capability: 'observe',
|
|
174
|
+
params: {},
|
|
175
|
+
timeout: 15000,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'service.detail',
|
|
179
|
+
description: 'Service detail with integrations and escalation policy',
|
|
180
|
+
capability: 'observe',
|
|
181
|
+
params: {
|
|
182
|
+
id: {
|
|
183
|
+
type: 'string',
|
|
184
|
+
description: 'Service ID',
|
|
185
|
+
required: true,
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
timeout: 15000,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'oncall.list',
|
|
192
|
+
description: 'Current on-call schedules',
|
|
193
|
+
capability: 'observe',
|
|
194
|
+
params: {
|
|
195
|
+
schedule_ids: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
description: 'Comma-separated schedule IDs to filter',
|
|
198
|
+
required: false,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
timeout: 15000,
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
runbook: {
|
|
205
|
+
category: 'itsm',
|
|
206
|
+
probes: ['incidents.triggered', 'services.list'],
|
|
207
|
+
parallel: true,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
handlers: {
|
|
211
|
+
'incidents.list': incidentsList,
|
|
212
|
+
'incidents.triggered': incidentsTriggered,
|
|
213
|
+
'services.list': servicesList,
|
|
214
|
+
'service.detail': serviceDetail,
|
|
215
|
+
'oncall.list': oncallList,
|
|
216
|
+
},
|
|
217
|
+
testConnection: async (config, credentials, fetchFn) => {
|
|
218
|
+
const url = `${config.endpoint.replace(/\/$/, '')}/abilities`;
|
|
219
|
+
const headers = {
|
|
220
|
+
Accept: 'application/json',
|
|
221
|
+
'Content-Type': 'application/json',
|
|
222
|
+
...buildAuthHeaders(credentials),
|
|
223
|
+
...config.headers,
|
|
224
|
+
};
|
|
225
|
+
const res = await fetchFn(url, { headers });
|
|
226
|
+
return res.ok;
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=pagerduty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagerduty.js","sourceRoot":"","sources":["../../src/integrations/pagerduty.ts"],"names":[],"mappings":"AAQA,uBAAuB;AAEvB,qDAAqD;AACrD,SAAS,gBAAgB,CAAC,WAAmC;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC;IAClD,OAAO,EAAE,aAAa,EAAE,eAAe,KAAK,EAAE,EAAE,CAAC;AACnD,CAAC;AAED,sBAAsB;AAEtB,KAAK,UAAU,YAAY,CACzB,IAAY,EACZ,MAAyB,EACzB,WAAmC,EACnC,OAAgB,EAChB,MAA+B;IAE/B,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,IA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