-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpagerduty.sgnl.yaml
580 lines (572 loc) · 17.6 KB
/
pagerduty.sgnl.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
# PagerDuty Configuration YAML for DS2.0
displayName: "PagerDuty"
icon: PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiBmaWxsPSIjNERBOTQ5Ii8+CjxwYXRoIGQ9Ik0yNC44NTkyIDQxLjM0NjlIMTlWNTJIMjQuODU5MlY0MS4zNDY5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTQxLjA2NzIgMTMuOTUzMUMzNy45MjIgMTIuMjc5IDM1Ljc0MDYgMTIgMzAuNTkxNiAxMkgxOVYzNi4yNDg2SDMwLjU0MDlDMzUuMTMxOSAzNi4yNDg2IDM4LjU1NjEgMzUuOTY5NiA0MS41NzQ1IDMzLjk2NThDNDQuODcxOSAzMS43ODQ0IDQ2LjU3MTMgMjguMTU3MyA0Ni41NzEzIDIzLjk3MjFDNDYuNTcxMyAxOS40MzE4IDQ0LjQ2NjEgMTUuODA0NyA0MS4wNjcyIDEzLjk1MzFaTTMxLjg4NTIgMzEuMTc1NkgyNC44NTkyVjE3LjE5OTdMMzEuNDc5NCAxNy4xNDlDMzcuNTE2MiAxNy4wNzI5IDQwLjUzNDUgMTkuMjAzNiA0MC41MzQ1IDI0LjAyMjhDNDAuNTM0NSAyOS4xOTcyIDM2LjgwNTkgMzEuMTc1NiAzMS44ODUyIDMxLjE3NTZaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K
description: "PagerDuty as a System of Record"
hostname: "api.pagerduty.com"
defaultSyncFrequency: HOURLY
defaultSyncMinInterval: 1
defaultApiCallFrequency: SECONDLY
defaultApiCallMinInterval: 1
type: "PagerDuty-1.0.0"
# You can specify additional query parameters for each entity. For example,
# {
# "additionalQueryParameters": {
# "users": {
# "team_ids[]": ["PJ5B6SN"]
# }
# }
# }
# Each param value must either be []string or string.
adapterConfig: "e30="
# All auth mechanisms specified below must be supported by the specified Adapter.
auth:
- bearer:
authToken: "Token token={{Input Required: token}}"
entities:
User:
# https://developer.pagerduty.com/api-reference/c96e889522dd6-list-users#response-body.
# avatar_url attribute omitted.
displayName: User
externalId: users
description: User entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: summary
externalId: summary
type: String
- name: type
externalId: type
type: String
- name: self
externalId: self
type: String
- name: html_url
externalId: html_url
type: String
- name: name
externalId: name
type: String
- name: email
externalId: email
type: String
- name: time_zone
externalId: time_zone
type: String
- name: color
externalId: color
type: String
- name: role
externalId: role
type: String
- name: description
externalId: description
type: String
- name: invitation_sent
externalId: invitation_sent
type: Bool
- name: job_title
externalId: job_title
type: String
- name: license__type
externalId: license__type
type: String
- name: license__id
externalId: license__id
type: String
- name: license__summary
externalId: license__summary
type: String
- name: license__self
externalId: license__self
type: String
- name: license__html_url
externalId: license__html_url
type: String
Team:
# https://developer.pagerduty.com/api-reference/0138639504311-list-teams#response-body.
displayName: Team
externalId: teams
description: Team entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: summary
externalId: summary
type: String
- name: type
externalId: type
type: String
- name: self
externalId: self
type: String
- name: html_url
externalId: html_url
type: String
- name: name
externalId: name
type: String
- name: description
externalId: description
type: String
- name: default_role
externalId: default_role
type: String
TeamMember:
# https://developer.pagerduty.com/api-reference/e35802f3c4ba4-list-members-of-a-team#response-body.
displayName: TeamMember
externalId: members
description: TeamMember entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: userId
externalId: userId
type: String
indexed: true
- name: teamId
externalId: teamId
type: String
indexed: true
- name: role
externalId: role
type: String
Incident:
# https://developer.pagerduty.com/api-reference/9d0b4b12e36f9-list-incidents#response-body.
displayName: Incident
externalId: incidents
description: Incident entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: summary
externalId: summary
type: String
- name: type
externalId: type
type: String
- name: self
externalId: self
type: String
- name: html_url
externalId: html_url
type: String
- name: incident_number
externalId: incident_number
type: Int64
- name: title
externalId: title
type: String
- name: created_at
externalId: created_at
type: DateTime
- name: updated_at
externalId: updated_at
type: DateTime
- name: status
externalId: status
type: String
- name: incident_key
externalId: incident_key
type: String
- name: service__type
externalId: service__type
type: String
- name: service__id
externalId: service__id
type: String
- name: service__summary
externalId: service__summary
type: String
- name: service__self
externalId: service__self
type: String
- name: service__html_url
externalId: service__html_url
type: String
- name: assigned_via
externalId: assigned_via
type: String
- name: last_status_change_at
externalId: last_status_change_at
type: DateTime
- name: resolved_at
externalId: resolved_at
type: DateTime
- name: alert_counts__triggered
externalId: alert_counts__triggered
type: Int64
- name: alert_counts__resolved
externalId: alert_counts__resolved
type: Int64
- name: alert_counts__all
externalId: alert_counts__all
type: Int64
- name: is_mergeable
externalId: is_mergeable
type: Bool
- name: escalation_policy__type
externalId: escalation_policy__type
type: String
- name: escalation_policy__id
externalId: escalation_policy__id
type: String
- name: escalation_policy__summary
externalId: escalation_policy__summary
type: String
- name: escalation_policy__self
externalId: escalation_policy__self
type: String
- name: escalation_policy__html_url
externalId: escalation_policy__html_url
type: String
- name: alert_grouping__grouping_type
externalId: alert_grouping__grouping_type
type: String
- name: alert_grouping__started_at
externalId: alert_grouping__started_at
type: DateTime
- name: alert_grouping__ended_at
externalId: alert_grouping__ended_at
type: DateTime
- name: alert_grouping__alert_grouping_active
externalId: alert_grouping__alert_grouping_active
type: Bool
- name: last_status_change_by__type
externalId: last_status_change_by__type
type: String
- name: last_status_change_by__id
externalId: last_status_change_by__id
type: String
- name: last_status_change_by__summary
externalId: last_status_change_by__summary
type: String
- name: last_status_change_by__self
externalId: last_status_change_by__self
type: String
- name: last_status_change_by__html_url
externalId: last_status_change_by__html_url
type: String
- name: priority__id
externalId: priority__id
type: String
- name: priority__summary
externalId: priority__summary
type: String
- name: priority__type
externalId: priority__type
type: String
- name: priority__self
externalId: priority__self
type: String
- name: priority__html_url
externalId: priority__html_url
type: String
- name: priority__name
externalId: priority__name
type: String
- name: priority__description
externalId: priority__description
type: String
- name: resolve_reason__type
externalId: resolve_reason__type
type: String
- name: resolve_reason__incident__type
externalId: resolve_reason__incident__type
type: String
- name: resolve_reason__incident__id
externalId: resolve_reason__incident__id
type: String
- name: resolve_reason__incident__summary
externalId: resolve_reason__incident__summary
type: String
- name: resolve_reason__incident__self
externalId: resolve_reason__incident__self
type: String
- name: resolve_reason__incident__html_url
externalId: resolve_reason__incident__html_url
type: String
- name: urgency
externalId: urgency
type: String
Service:
# https://developer.pagerduty.com/api-reference/e960cca205c0f-list-services#response-body.
displayName: Service
externalId: services
description: Service entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: summary
externalId: summary
type: String
- name: type
externalId: type
type: String
- name: self
externalId: self
type: String
- name: html_url
externalId: html_url
type: String
- name: name
externalId: name
type: String
- name: description
externalId: description
type: String
- name: auto_resolve_timeout
externalId: auto_resolve_timeout
type: Int64
- name: acknowledgement_timeout
externalId: acknowledgement_timeout
type: Int64
- name: created_at
externalId: created_at
type: DateTime
- name: status
externalId: status
type: String
- name: last_incident_timestamp
externalId: last_incident_timestamp
type: DateTime
- name: escalation_policy__type
externalId: escalation_policy__type
type: String
- name: escalation_policy__id
externalId: escalation_policy__id
type: String
- name: escalation_policy__summary
externalId: escalation_policy__summary
type: String
- name: escalation_policy__self
externalId: escalation_policy__self
type: String
- name: escalation_policy__html_url
externalId: escalation_policy__html_url
type: String
- name: response_play__type
externalId: response_play__type
type: String
- name: response_play__id
externalId: response_play__id
type: String
- name: response_play__summary
externalId: response_play__summary
type: String
- name: response_play__self
externalId: response_play__self
type: String
- name: response_play__html_url
externalId: response_play__html_url
type: String
- name: incident_urgency_role__type
externalId: incident_urgency_role__type
type: String
- name: incident_urgency_role__urgency
externalId: incident_urgency_role__urgency
type: String
- name: incident_urgency_role__during_support_hours__type
externalId: incident_urgency_role__during_support_hours__type
type: String
- name: incident_urgency_role__during_support_hours__urgency
externalId: incident_urgency_role__during_support_hours__urgency
type: String
- name: incident_urgency_role__outside_support_hours__type
externalId: incident_urgency_role__outside_support_hours__type
type: String
- name: incident_urgency_role__outside_support_hours__urgency
externalId: incident_urgency_role__outside_support_hours__urgency
type: String
- name: support_hours__type
externalId: support_hours__type
type: String
- name: support_hours__time_zone
externalId: support_hours__time_zone
type: String
- name: support_hours__days_of_week
externalId: support_hours__days_of_week
type: Int64
list: true
- name: alert_creation
externalId: alert_creation
type: String
- name: alert_grouping_parameters__type
externalId: alert_grouping_parameters__type
type: String
- name: alert_grouping_parameters__config__time_window
externalId: alert_grouping_parameters__config__time_window
type: Int64
- name: alert_grouping_parameters__config__recommended_time_window
externalId: alert_grouping_parameters__config__recommended_time_window
type: Int64
- name: auto_pause_notification_parameters__enabled
externalId: auto_pause_notification_parameters__enabled
type: Bool
- name: auto_pause_notification_parameters__timeout
externalId: auto_pause_notification_parameters__timeout
type: Int64
Schedule:
# https://developer.pagerduty.com/api-reference/846ecf84402bb-list-schedules#response-body.
displayName: Schedule
externalId: schedules
description: Schedule entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: summary
externalId: summary
type: String
- name: type
externalId: type
type: String
- name: self
externalId: self
type: String
- name: html_url
externalId: html_url
type: String
- name: time_zone
externalId: time_zone
type: String
- name: name
externalId: name
type: String
- name: description
externalId: description
type: String
- name: final_schedule__name
externalId: final_schedule__name
type: String
- name: final_schedule__rendered_coverage_percentage
externalId: final_schedule__rendered_coverage_percentage
type: Double
- name: overrides_subschedule__name
externalId: overrides_subschedule__name
type: String
- name: overrides_subschedule__rendered_coverage_percentage
externalId: overrides_subschedule__rendered_coverage_percentage
type: Double
OnCall:
# https://developer.pagerduty.com/api-reference/3a6b910f11050-list-all-of-the-on-calls#response-body.
displayName: OnCall
externalId: oncalls
description: OnCall entity in PagerDuty
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: user__id
externalId: user__id
type: String
indexed: true
- name: user__type
externalId: user__type
type: String
- name: user__summary
externalId: user__summary
type: String
- name: user__self
externalId: user__self
type: String
- name: user__html_url
externalId: user__html_url
type: String
- name: schedule__id
externalId: schedule__id
type: String
- name: schedule__type
externalId: schedule__type
type: String
- name: schedule__summary
externalId: schedule__summary
type: String
- name: schedule__self
externalId: schedule__self
type: String
- name: schedule__html_url
externalId: schedule__html_url
type: String
- name: escalation_policy__id
externalId: escalation_policy__id
type: String
- name: escalation_policy__type
externalId: escalation_policy__type
type: String
- name: escalation_policy__summary
externalId: escalation_policy__summary
type: String
- name: escalation_policy__self
externalId: escalation_policy__self
type: String
- name: escalation_policy__html_url
externalId: escalation_policy__html_url
type: String
- name: start
externalId: start
type: DateTime
- name: end
externalId: end
type: DateTime
relationships:
# (User) -[UserMember]-> (TeamMember)
UserMember:
name: UserMember
displayName: User Member
fromAttribute: users.id
toAttribute: members.userId
# (TeamMember) -[TeamMember]-> (Team)
TeamMember:
name: TeamMember
displayName: Team Member
fromAttribute: members.teamId
toAttribute: teams.id
# Path relationship based on the previous two relationships.
# (User) -[Team]-> (Team)
Team:
name: Team
displayName: Team
path:
- relationship: UserMember
direction: Forward
- relationship: TeamMember
direction: Forward
OnCall:
name: OnCall
displayName: On Call
fromAttribute: users.id
toAttribute: oncalls.user__id