forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagerduty-http-example.yml
35 lines (35 loc) · 1.52 KB
/
pagerduty-http-example.yml
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
### https://api-reference.pagerduty.com/
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: pagerdutyFlex
global:
base_url: https://api.pagerduty.com/
headers:
Authorization: Token token=YourPagerDutyToken
apis:
- event_type: pagerdutyIncidentSample ### https://api-reference.pagerduty.com/#!/Incidents/get_incidents
url: incidents
strip_keys:
- incidents>responder_requests
- incidents>pending_actions
- incidents>teams
- incidents>subscriber_requests
lazy_flatten: ### lazy flatten nested arrays into the same sample, use with care as this can generate a lot of attributes per event, uncomment if you'd like to include
- incidents>assignments
- incidents>impacted_services
- incidents>acknowledgements
rename_keys:
impacted_services.assignments: assignments
assignments.assignments: assignments
impacted_services.impacted_services: impacted_services
remove_keys:
- escalation_policy
- first_trigger_log_entry
- impacted_services.assignments.is_mergeable
- assignmentSamples # unflattened key, if lazy flatten not on
- acknowledgementSamples # unflattened key, if lazy flatten not on
- impacted_serviceSamples # unflattened key, if lazy flatten not on
- incidents_responderSamples # unflattened key, if lazy flatten not on