@pulumi/pagerduty 3.10.0 → 3.10.2
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/eventOrchestrationGlobal.d.ts +75 -0
- package/eventOrchestrationGlobal.js +75 -0
- package/eventOrchestrationGlobal.js.map +1 -1
- package/eventOrchestrationService.d.ts +130 -0
- package/eventOrchestrationService.js +130 -0
- package/eventOrchestrationService.js.map +1 -1
- package/extension.d.ts +4 -0
- package/extension.js.map +1 -1
- package/getVendor.d.ts +4 -0
- package/getVendor.js +4 -0
- package/getVendor.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/service.d.ts +1 -1
- package/serviceIntegration.d.ts +9 -0
- package/serviceIntegration.js.map +1 -1
- package/types/input.d.ts +99 -0
- package/types/output.d.ts +99 -0
|
@@ -2,6 +2,81 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* A [Global Orchestration](https://support.pagerduty.com/docs/event-orchestration#global-orchestrations) allows you to create a set of Event Rules. The Global Orchestration evaluates Events sent to it against each of its rules, beginning with the rules in the "start" set. When a matching rule is found, it can modify and enhance the event and can route the event to another set of rules within this Global Orchestration for further processing.
|
|
6
|
+
*
|
|
7
|
+
* ## Example of configuring a Global Orchestration
|
|
8
|
+
*
|
|
9
|
+
* This example shows creating `Team`, and `Event Orchestration` resources followed by creating a Global Orchestration to handle Events sent to that Event Orchestration.
|
|
10
|
+
*
|
|
11
|
+
* This example also shows using `priority` data source to configure `priority` action for a rule. If the Event matches the third rule in set "step-two" the resulting incident will have the Priority `P1`.
|
|
12
|
+
*
|
|
13
|
+
* This example shows a Global Orchestration that has nested sets: a rule in the "start" set has a `routeTo` action pointing at the "step-two" set.
|
|
14
|
+
*
|
|
15
|
+
* The `catchAll` actions will be applied if an Event reaches the end of any set without matching any rules in that set. In this example the `catchAll` doesn't have any `actions` so it'll leave events as-is.
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
20
|
+
*
|
|
21
|
+
* const databaseTeam = new pagerduty.Team("databaseTeam", {});
|
|
22
|
+
* const eventOrchestration = new pagerduty.EventOrchestration("eventOrchestration", {team: databaseTeam.id});
|
|
23
|
+
* const p1 = pagerduty.getPriority({
|
|
24
|
+
* name: "P1",
|
|
25
|
+
* });
|
|
26
|
+
* const global = new pagerduty.EventOrchestrationGlobal("global", {
|
|
27
|
+
* eventOrchestration: eventOrchestration.id,
|
|
28
|
+
* sets: [
|
|
29
|
+
* {
|
|
30
|
+
* id: "start",
|
|
31
|
+
* rules: [{
|
|
32
|
+
* label: "Always annotate a note to all events",
|
|
33
|
+
* actions: {
|
|
34
|
+
* annotate: "This incident was created by the Database Team via a Global Orchestration",
|
|
35
|
+
* routeTo: "step-two",
|
|
36
|
+
* },
|
|
37
|
+
* }],
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* id: "step-two",
|
|
41
|
+
* rules: [
|
|
42
|
+
* {
|
|
43
|
+
* label: "Drop events that are marked as no-op",
|
|
44
|
+
* conditions: [{
|
|
45
|
+
* expression: "event.summary matches 'no-op'",
|
|
46
|
+
* }],
|
|
47
|
+
* actions: {
|
|
48
|
+
* dropEvent: true,
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* {
|
|
52
|
+
* label: "If there's something wrong on the replica, then mark the alert as a warning",
|
|
53
|
+
* conditions: [{
|
|
54
|
+
* expression: "event.custom_details.hostname matches part 'replica'",
|
|
55
|
+
* }],
|
|
56
|
+
* actions: {
|
|
57
|
+
* severity: "warning",
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* {
|
|
61
|
+
* label: "Otherwise, set the incident to P1 and run a diagnostic",
|
|
62
|
+
* actions: {
|
|
63
|
+
* priority: p1.then(p1 => p1.id),
|
|
64
|
+
* automationAction: {
|
|
65
|
+
* name: "db-diagnostic",
|
|
66
|
+
* url: "https://example.com/run-diagnostic",
|
|
67
|
+
* autoSend: true,
|
|
68
|
+
* },
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* catchAll: {
|
|
75
|
+
* actions: {},
|
|
76
|
+
* },
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
5
80
|
* ## Import
|
|
6
81
|
*
|
|
7
82
|
* Global Orchestration can be imported using the `id` of the Event Orchestration, e.g.
|
|
@@ -6,6 +6,81 @@ exports.EventOrchestrationGlobal = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* A [Global Orchestration](https://support.pagerduty.com/docs/event-orchestration#global-orchestrations) allows you to create a set of Event Rules. The Global Orchestration evaluates Events sent to it against each of its rules, beginning with the rules in the "start" set. When a matching rule is found, it can modify and enhance the event and can route the event to another set of rules within this Global Orchestration for further processing.
|
|
10
|
+
*
|
|
11
|
+
* ## Example of configuring a Global Orchestration
|
|
12
|
+
*
|
|
13
|
+
* This example shows creating `Team`, and `Event Orchestration` resources followed by creating a Global Orchestration to handle Events sent to that Event Orchestration.
|
|
14
|
+
*
|
|
15
|
+
* This example also shows using `priority` data source to configure `priority` action for a rule. If the Event matches the third rule in set "step-two" the resulting incident will have the Priority `P1`.
|
|
16
|
+
*
|
|
17
|
+
* This example shows a Global Orchestration that has nested sets: a rule in the "start" set has a `routeTo` action pointing at the "step-two" set.
|
|
18
|
+
*
|
|
19
|
+
* The `catchAll` actions will be applied if an Event reaches the end of any set without matching any rules in that set. In this example the `catchAll` doesn't have any `actions` so it'll leave events as-is.
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
24
|
+
*
|
|
25
|
+
* const databaseTeam = new pagerduty.Team("databaseTeam", {});
|
|
26
|
+
* const eventOrchestration = new pagerduty.EventOrchestration("eventOrchestration", {team: databaseTeam.id});
|
|
27
|
+
* const p1 = pagerduty.getPriority({
|
|
28
|
+
* name: "P1",
|
|
29
|
+
* });
|
|
30
|
+
* const global = new pagerduty.EventOrchestrationGlobal("global", {
|
|
31
|
+
* eventOrchestration: eventOrchestration.id,
|
|
32
|
+
* sets: [
|
|
33
|
+
* {
|
|
34
|
+
* id: "start",
|
|
35
|
+
* rules: [{
|
|
36
|
+
* label: "Always annotate a note to all events",
|
|
37
|
+
* actions: {
|
|
38
|
+
* annotate: "This incident was created by the Database Team via a Global Orchestration",
|
|
39
|
+
* routeTo: "step-two",
|
|
40
|
+
* },
|
|
41
|
+
* }],
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* id: "step-two",
|
|
45
|
+
* rules: [
|
|
46
|
+
* {
|
|
47
|
+
* label: "Drop events that are marked as no-op",
|
|
48
|
+
* conditions: [{
|
|
49
|
+
* expression: "event.summary matches 'no-op'",
|
|
50
|
+
* }],
|
|
51
|
+
* actions: {
|
|
52
|
+
* dropEvent: true,
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* label: "If there's something wrong on the replica, then mark the alert as a warning",
|
|
57
|
+
* conditions: [{
|
|
58
|
+
* expression: "event.custom_details.hostname matches part 'replica'",
|
|
59
|
+
* }],
|
|
60
|
+
* actions: {
|
|
61
|
+
* severity: "warning",
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* {
|
|
65
|
+
* label: "Otherwise, set the incident to P1 and run a diagnostic",
|
|
66
|
+
* actions: {
|
|
67
|
+
* priority: p1.then(p1 => p1.id),
|
|
68
|
+
* automationAction: {
|
|
69
|
+
* name: "db-diagnostic",
|
|
70
|
+
* url: "https://example.com/run-diagnostic",
|
|
71
|
+
* autoSend: true,
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* catchAll: {
|
|
79
|
+
* actions: {},
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
9
84
|
* ## Import
|
|
10
85
|
*
|
|
11
86
|
* Global Orchestration can be imported using the `id` of the Event Orchestration, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventOrchestrationGlobal.js","sourceRoot":"","sources":["../eventOrchestrationGlobal.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"eventOrchestrationGlobal.js","sourceRoot":"","sources":["../eventOrchestrationGlobal.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wBAAwB,CAAC,YAAY,CAA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AC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AA1EL,4DA2EC;AA7DG,gBAAgB;AACO,qCAAY,GAAG,mEAAmE,CAAC"}
|
|
@@ -2,6 +2,136 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* A [Service Orchestration](https://support.pagerduty.com/docs/event-orchestration#service-orchestrations) allows you to create a set of Event Rules. The Service Orchestration evaluates Events sent to this Service against each of its rules, beginning with the rules in the "start" set. When a matching rule is found, it can modify and enhance the event and can route the event to another set of rules within this Service Orchestration for further processing.
|
|
6
|
+
*
|
|
7
|
+
* > If you have a Service that uses [Service Event Rules](https://support.pagerduty.com/docs/rulesets#service-event-rules), you can switch to [Service Orchestrations](https://support.pagerduty.com/docs/event-orchestration#service-orchestrations) at any time setting the attribute `enableEventOrchestrationForService` to `true`. Please read the [Switch to Service Orchestrations](https://support.pagerduty.com/docs/event-orchestration#switch-to-service-orchestrations) instructions for more information.
|
|
8
|
+
*
|
|
9
|
+
* ## Example of configuring a Service Orchestration
|
|
10
|
+
*
|
|
11
|
+
* This example shows creating `Team`, `User`, `Escalation Policy`, and `Service` resources followed by creating a Service Orchestration to handle Events sent to that Service.
|
|
12
|
+
*
|
|
13
|
+
* This example also shows using `priority` data source to configure `priority` action for a rule. If the Event matches the first rule in set "step-two" the resulting incident will have the Priority `P1`.
|
|
14
|
+
*
|
|
15
|
+
* This example shows a Service Orchestration that has nested sets: a rule in the "start" set has a `routeTo` action pointing at the "step-two" set.
|
|
16
|
+
*
|
|
17
|
+
* The `catchAll` actions will be applied if an Event reaches the end of any set without matching any rules in that set. In this example the `catchAll` doesn't have any `actions` so it'll leave events as-is.
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
22
|
+
*
|
|
23
|
+
* const engineering = new pagerduty.Team("engineering", {});
|
|
24
|
+
* const exampleUser = new pagerduty.User("exampleUser", {
|
|
25
|
+
* email: "125.greenholt.earline@graham.name",
|
|
26
|
+
* teams: [engineering.id],
|
|
27
|
+
* });
|
|
28
|
+
* const foo = new pagerduty.EscalationPolicy("foo", {
|
|
29
|
+
* numLoops: 2,
|
|
30
|
+
* rules: [{
|
|
31
|
+
* escalationDelayInMinutes: 10,
|
|
32
|
+
* targets: [{
|
|
33
|
+
* type: "user",
|
|
34
|
+
* id: exampleUser.id,
|
|
35
|
+
* }],
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* const exampleService = new pagerduty.Service("exampleService", {
|
|
39
|
+
* autoResolveTimeout: "14400",
|
|
40
|
+
* acknowledgementTimeout: "600",
|
|
41
|
+
* escalationPolicy: pagerduty_escalation_policy.example.id,
|
|
42
|
+
* alertCreation: "create_alerts_and_incidents",
|
|
43
|
+
* });
|
|
44
|
+
* const p1 = pagerduty.getPriority({
|
|
45
|
+
* name: "P1",
|
|
46
|
+
* });
|
|
47
|
+
* const www = new pagerduty.EventOrchestrationService("www", {
|
|
48
|
+
* service: exampleService.id,
|
|
49
|
+
* enableEventOrchestrationForService: true,
|
|
50
|
+
* sets: [
|
|
51
|
+
* {
|
|
52
|
+
* id: "start",
|
|
53
|
+
* rules: [{
|
|
54
|
+
* label: "Always apply some consistent event transformations to all events",
|
|
55
|
+
* actions: {
|
|
56
|
+
* variables: [{
|
|
57
|
+
* name: "hostname",
|
|
58
|
+
* path: "event.component",
|
|
59
|
+
* value: "hostname: (.*)",
|
|
60
|
+
* type: "regex",
|
|
61
|
+
* }],
|
|
62
|
+
* extractions: [
|
|
63
|
+
* {
|
|
64
|
+
* template: "{{variables.hostname}}",
|
|
65
|
+
* target: "event.custom_details.hostname",
|
|
66
|
+
* },
|
|
67
|
+
* {
|
|
68
|
+
* source: "event.source",
|
|
69
|
+
* regex: "www (.*) service",
|
|
70
|
+
* target: "event.source",
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* routeTo: "step-two",
|
|
74
|
+
* },
|
|
75
|
+
* }],
|
|
76
|
+
* },
|
|
77
|
+
* {
|
|
78
|
+
* id: "step-two",
|
|
79
|
+
* rules: [
|
|
80
|
+
* {
|
|
81
|
+
* label: "All critical alerts should be treated as P1 incident",
|
|
82
|
+
* conditions: [{
|
|
83
|
+
* expression: "event.severity matches 'critical'",
|
|
84
|
+
* }],
|
|
85
|
+
* actions: {
|
|
86
|
+
* annotate: "Please use our P1 runbook: https://docs.test/p1-runbook",
|
|
87
|
+
* priority: p1.then(p1 => p1.id),
|
|
88
|
+
* },
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* label: "If there's something wrong on the canary let the team know about it in our deployments Slack channel",
|
|
92
|
+
* conditions: [{
|
|
93
|
+
* expression: "event.custom_details.hostname matches part 'canary'",
|
|
94
|
+
* }],
|
|
95
|
+
* actions: {
|
|
96
|
+
* automationAction: {
|
|
97
|
+
* name: "Canary Slack Notification",
|
|
98
|
+
* url: "https://our-slack-listerner.test/canary-notification",
|
|
99
|
+
* autoSend: true,
|
|
100
|
+
* parameters: [
|
|
101
|
+
* {
|
|
102
|
+
* key: "channel",
|
|
103
|
+
* value: "#my-team-channel",
|
|
104
|
+
* },
|
|
105
|
+
* {
|
|
106
|
+
* key: "message",
|
|
107
|
+
* value: "something is wrong with the canary deployment",
|
|
108
|
+
* },
|
|
109
|
+
* ],
|
|
110
|
+
* headers: [{
|
|
111
|
+
* key: "X-Notification-Source",
|
|
112
|
+
* value: "PagerDuty Incident Webhook",
|
|
113
|
+
* }],
|
|
114
|
+
* },
|
|
115
|
+
* },
|
|
116
|
+
* },
|
|
117
|
+
* {
|
|
118
|
+
* label: "Never bother the on-call for info-level events outside of work hours",
|
|
119
|
+
* conditions: [{
|
|
120
|
+
* expression: "event.severity matches 'info' and not (now in Mon,Tue,Wed,Thu,Fri 09:00:00 to 17:00:00 America/Los_Angeles)",
|
|
121
|
+
* }],
|
|
122
|
+
* actions: {
|
|
123
|
+
* suppress: true,
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* ],
|
|
127
|
+
* },
|
|
128
|
+
* ],
|
|
129
|
+
* catchAll: {
|
|
130
|
+
* actions: {},
|
|
131
|
+
* },
|
|
132
|
+
* });
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
5
135
|
* ## Import
|
|
6
136
|
*
|
|
7
137
|
* Service Orchestration can be imported using the `id` of the Service, e.g.
|
|
@@ -6,6 +6,136 @@ exports.EventOrchestrationService = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* A [Service Orchestration](https://support.pagerduty.com/docs/event-orchestration#service-orchestrations) allows you to create a set of Event Rules. The Service Orchestration evaluates Events sent to this Service against each of its rules, beginning with the rules in the "start" set. When a matching rule is found, it can modify and enhance the event and can route the event to another set of rules within this Service Orchestration for further processing.
|
|
10
|
+
*
|
|
11
|
+
* > If you have a Service that uses [Service Event Rules](https://support.pagerduty.com/docs/rulesets#service-event-rules), you can switch to [Service Orchestrations](https://support.pagerduty.com/docs/event-orchestration#service-orchestrations) at any time setting the attribute `enableEventOrchestrationForService` to `true`. Please read the [Switch to Service Orchestrations](https://support.pagerduty.com/docs/event-orchestration#switch-to-service-orchestrations) instructions for more information.
|
|
12
|
+
*
|
|
13
|
+
* ## Example of configuring a Service Orchestration
|
|
14
|
+
*
|
|
15
|
+
* This example shows creating `Team`, `User`, `Escalation Policy`, and `Service` resources followed by creating a Service Orchestration to handle Events sent to that Service.
|
|
16
|
+
*
|
|
17
|
+
* This example also shows using `priority` data source to configure `priority` action for a rule. If the Event matches the first rule in set "step-two" the resulting incident will have the Priority `P1`.
|
|
18
|
+
*
|
|
19
|
+
* This example shows a Service Orchestration that has nested sets: a rule in the "start" set has a `routeTo` action pointing at the "step-two" set.
|
|
20
|
+
*
|
|
21
|
+
* The `catchAll` actions will be applied if an Event reaches the end of any set without matching any rules in that set. In this example the `catchAll` doesn't have any `actions` so it'll leave events as-is.
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
26
|
+
*
|
|
27
|
+
* const engineering = new pagerduty.Team("engineering", {});
|
|
28
|
+
* const exampleUser = new pagerduty.User("exampleUser", {
|
|
29
|
+
* email: "125.greenholt.earline@graham.name",
|
|
30
|
+
* teams: [engineering.id],
|
|
31
|
+
* });
|
|
32
|
+
* const foo = new pagerduty.EscalationPolicy("foo", {
|
|
33
|
+
* numLoops: 2,
|
|
34
|
+
* rules: [{
|
|
35
|
+
* escalationDelayInMinutes: 10,
|
|
36
|
+
* targets: [{
|
|
37
|
+
* type: "user",
|
|
38
|
+
* id: exampleUser.id,
|
|
39
|
+
* }],
|
|
40
|
+
* }],
|
|
41
|
+
* });
|
|
42
|
+
* const exampleService = new pagerduty.Service("exampleService", {
|
|
43
|
+
* autoResolveTimeout: "14400",
|
|
44
|
+
* acknowledgementTimeout: "600",
|
|
45
|
+
* escalationPolicy: pagerduty_escalation_policy.example.id,
|
|
46
|
+
* alertCreation: "create_alerts_and_incidents",
|
|
47
|
+
* });
|
|
48
|
+
* const p1 = pagerduty.getPriority({
|
|
49
|
+
* name: "P1",
|
|
50
|
+
* });
|
|
51
|
+
* const www = new pagerduty.EventOrchestrationService("www", {
|
|
52
|
+
* service: exampleService.id,
|
|
53
|
+
* enableEventOrchestrationForService: true,
|
|
54
|
+
* sets: [
|
|
55
|
+
* {
|
|
56
|
+
* id: "start",
|
|
57
|
+
* rules: [{
|
|
58
|
+
* label: "Always apply some consistent event transformations to all events",
|
|
59
|
+
* actions: {
|
|
60
|
+
* variables: [{
|
|
61
|
+
* name: "hostname",
|
|
62
|
+
* path: "event.component",
|
|
63
|
+
* value: "hostname: (.*)",
|
|
64
|
+
* type: "regex",
|
|
65
|
+
* }],
|
|
66
|
+
* extractions: [
|
|
67
|
+
* {
|
|
68
|
+
* template: "{{variables.hostname}}",
|
|
69
|
+
* target: "event.custom_details.hostname",
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* source: "event.source",
|
|
73
|
+
* regex: "www (.*) service",
|
|
74
|
+
* target: "event.source",
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* routeTo: "step-two",
|
|
78
|
+
* },
|
|
79
|
+
* }],
|
|
80
|
+
* },
|
|
81
|
+
* {
|
|
82
|
+
* id: "step-two",
|
|
83
|
+
* rules: [
|
|
84
|
+
* {
|
|
85
|
+
* label: "All critical alerts should be treated as P1 incident",
|
|
86
|
+
* conditions: [{
|
|
87
|
+
* expression: "event.severity matches 'critical'",
|
|
88
|
+
* }],
|
|
89
|
+
* actions: {
|
|
90
|
+
* annotate: "Please use our P1 runbook: https://docs.test/p1-runbook",
|
|
91
|
+
* priority: p1.then(p1 => p1.id),
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* {
|
|
95
|
+
* label: "If there's something wrong on the canary let the team know about it in our deployments Slack channel",
|
|
96
|
+
* conditions: [{
|
|
97
|
+
* expression: "event.custom_details.hostname matches part 'canary'",
|
|
98
|
+
* }],
|
|
99
|
+
* actions: {
|
|
100
|
+
* automationAction: {
|
|
101
|
+
* name: "Canary Slack Notification",
|
|
102
|
+
* url: "https://our-slack-listerner.test/canary-notification",
|
|
103
|
+
* autoSend: true,
|
|
104
|
+
* parameters: [
|
|
105
|
+
* {
|
|
106
|
+
* key: "channel",
|
|
107
|
+
* value: "#my-team-channel",
|
|
108
|
+
* },
|
|
109
|
+
* {
|
|
110
|
+
* key: "message",
|
|
111
|
+
* value: "something is wrong with the canary deployment",
|
|
112
|
+
* },
|
|
113
|
+
* ],
|
|
114
|
+
* headers: [{
|
|
115
|
+
* key: "X-Notification-Source",
|
|
116
|
+
* value: "PagerDuty Incident Webhook",
|
|
117
|
+
* }],
|
|
118
|
+
* },
|
|
119
|
+
* },
|
|
120
|
+
* },
|
|
121
|
+
* {
|
|
122
|
+
* label: "Never bother the on-call for info-level events outside of work hours",
|
|
123
|
+
* conditions: [{
|
|
124
|
+
* expression: "event.severity matches 'info' and not (now in Mon,Tue,Wed,Thu,Fri 09:00:00 to 17:00:00 America/Los_Angeles)",
|
|
125
|
+
* }],
|
|
126
|
+
* actions: {
|
|
127
|
+
* suppress: true,
|
|
128
|
+
* },
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
131
|
+
* },
|
|
132
|
+
* ],
|
|
133
|
+
* catchAll: {
|
|
134
|
+
* actions: {},
|
|
135
|
+
* },
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
9
139
|
* ## Import
|
|
10
140
|
*
|
|
11
141
|
* Service Orchestration can be imported using the `id` of the Service, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventOrchestrationService.js","sourceRoot":"","sources":["../eventOrchestrationService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"eventOrchestrationService.js","sourceRoot":"","sources":["../eventOrchestrationService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;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AAhFL,8DAiFC;AAnEG,gBAAgB;AACO,sCAAY,GAAG,qEAAqE,CAAC"}
|
package/extension.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export declare class Extension extends pulumi.CustomResource {
|
|
|
95
95
|
readonly name: pulumi.Output<string>;
|
|
96
96
|
/**
|
|
97
97
|
* A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to `name`, though it is not intended to be an identifier.
|
|
98
|
+
*
|
|
99
|
+
* **Note:** You can use the `pagerduty.getExtensionSchema` data source to locate the appropriate extension vendor ID.
|
|
98
100
|
*/
|
|
99
101
|
readonly summary: pulumi.Output<string>;
|
|
100
102
|
readonly type: pulumi.Output<string>;
|
|
@@ -138,6 +140,8 @@ export interface ExtensionState {
|
|
|
138
140
|
name?: pulumi.Input<string>;
|
|
139
141
|
/**
|
|
140
142
|
* A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to `name`, though it is not intended to be an identifier.
|
|
143
|
+
*
|
|
144
|
+
* **Note:** You can use the `pagerduty.getExtensionSchema` data source to locate the appropriate extension vendor ID.
|
|
141
145
|
*/
|
|
142
146
|
summary?: pulumi.Input<string>;
|
|
143
147
|
type?: pulumi.Input<string>;
|
package/extension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../extension.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,E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2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Use this data source to get information about a specific [vendor](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODI1OQ-list-vendors) that you can use for a service integration (e.g. Amazon Cloudwatch, Splunk, Datadog).
|
|
4
4
|
*
|
|
5
|
+
* > For the case of vendors that rely on [Change Events](https://support.pagerduty.com/docs/change-events) (e.g. Jekings CI, Github, Gitlab, ...) is important to know that those vendors are only available with [PagerDuty AIOps](https://support.pagerduty.com/docs/aiops) add-on. Therefore, they won't be accessible as result of `pagerduty.getVendor` data source without the proper entitlements.
|
|
6
|
+
*
|
|
5
7
|
* ## Example Usage
|
|
6
8
|
*
|
|
7
9
|
* ```typescript
|
|
@@ -66,6 +68,8 @@ export interface GetVendorResult {
|
|
|
66
68
|
/**
|
|
67
69
|
* Use this data source to get information about a specific [vendor](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODI1OQ-list-vendors) that you can use for a service integration (e.g. Amazon Cloudwatch, Splunk, Datadog).
|
|
68
70
|
*
|
|
71
|
+
* > For the case of vendors that rely on [Change Events](https://support.pagerduty.com/docs/change-events) (e.g. Jekings CI, Github, Gitlab, ...) is important to know that those vendors are only available with [PagerDuty AIOps](https://support.pagerduty.com/docs/aiops) add-on. Therefore, they won't be accessible as result of `pagerduty.getVendor` data source without the proper entitlements.
|
|
72
|
+
*
|
|
69
73
|
* ## Example Usage
|
|
70
74
|
*
|
|
71
75
|
* ```typescript
|
package/getVendor.js
CHANGED
|
@@ -8,6 +8,8 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Use this data source to get information about a specific [vendor](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODI1OQ-list-vendors) that you can use for a service integration (e.g. Amazon Cloudwatch, Splunk, Datadog).
|
|
10
10
|
*
|
|
11
|
+
* > For the case of vendors that rely on [Change Events](https://support.pagerduty.com/docs/change-events) (e.g. Jekings CI, Github, Gitlab, ...) is important to know that those vendors are only available with [PagerDuty AIOps](https://support.pagerduty.com/docs/aiops) add-on. Therefore, they won't be accessible as result of `pagerduty.getVendor` data source without the proper entitlements.
|
|
12
|
+
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
|
13
15
|
* ```typescript
|
|
@@ -52,6 +54,8 @@ exports.getVendor = getVendor;
|
|
|
52
54
|
/**
|
|
53
55
|
* Use this data source to get information about a specific [vendor](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODI1OQ-list-vendors) that you can use for a service integration (e.g. Amazon Cloudwatch, Splunk, Datadog).
|
|
54
56
|
*
|
|
57
|
+
* > For the case of vendors that rely on [Change Events](https://support.pagerduty.com/docs/change-events) (e.g. Jekings CI, Github, Gitlab, ...) is important to know that those vendors are only available with [PagerDuty AIOps](https://support.pagerduty.com/docs/aiops) add-on. Therefore, they won't be accessible as result of `pagerduty.getVendor` data source without the proper entitlements.
|
|
58
|
+
*
|
|
55
59
|
* ## Example Usage
|
|
56
60
|
*
|
|
57
61
|
* ```typescript
|
package/getVendor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVendor.js","sourceRoot":"","sources":["../getVendor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getVendor.js","sourceRoot":"","sources":["../getVendor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8BAMC;AA6BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pagerduty",
|
|
3
|
-
"version": "v3.10.
|
|
3
|
+
"version": "v3.10.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing pagerduty cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource pagerduty v3.10.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource pagerduty v3.10.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pagerduty",
|
|
3
|
-
"version": "v3.10.
|
|
3
|
+
"version": "v3.10.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing pagerduty cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource pagerduty v3.10.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource pagerduty v3.10.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/service.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare class Service extends pulumi.CustomResource {
|
|
|
114
114
|
/**
|
|
115
115
|
* The response play used by this service.
|
|
116
116
|
*/
|
|
117
|
-
readonly responsePlay: pulumi.Output<string
|
|
117
|
+
readonly responsePlay: pulumi.Output<string>;
|
|
118
118
|
readonly scheduledActions: pulumi.Output<outputs.ServiceScheduledAction[] | undefined>;
|
|
119
119
|
/**
|
|
120
120
|
* The status of the service.
|
package/serviceIntegration.d.ts
CHANGED
|
@@ -193,6 +193,9 @@ export declare class ServiceIntegration extends pulumi.CustomResource {
|
|
|
193
193
|
* `keynoteInboundIntegration`,
|
|
194
194
|
* `nagiosInboundIntegration`,
|
|
195
195
|
* `pingdomInboundIntegration`or `sqlMonitorInboundIntegration`.
|
|
196
|
+
*
|
|
197
|
+
* **Note:** This is meant for **generic** service integrations.
|
|
198
|
+
* To integrate with a **vendor** (e.g. Datadog or Amazon Cloudwatch) use the `vendor` field instead.
|
|
196
199
|
*/
|
|
197
200
|
readonly type: pulumi.Output<string>;
|
|
198
201
|
/**
|
|
@@ -257,6 +260,9 @@ export interface ServiceIntegrationState {
|
|
|
257
260
|
* `keynoteInboundIntegration`,
|
|
258
261
|
* `nagiosInboundIntegration`,
|
|
259
262
|
* `pingdomInboundIntegration`or `sqlMonitorInboundIntegration`.
|
|
263
|
+
*
|
|
264
|
+
* **Note:** This is meant for **generic** service integrations.
|
|
265
|
+
* To integrate with a **vendor** (e.g. Datadog or Amazon Cloudwatch) use the `vendor` field instead.
|
|
260
266
|
*/
|
|
261
267
|
type?: pulumi.Input<string>;
|
|
262
268
|
/**
|
|
@@ -309,6 +315,9 @@ export interface ServiceIntegrationArgs {
|
|
|
309
315
|
* `keynoteInboundIntegration`,
|
|
310
316
|
* `nagiosInboundIntegration`,
|
|
311
317
|
* `pingdomInboundIntegration`or `sqlMonitorInboundIntegration`.
|
|
318
|
+
*
|
|
319
|
+
* **Note:** This is meant for **generic** service integrations.
|
|
320
|
+
* To integrate with a **vendor** (e.g. Datadog or Amazon Cloudwatch) use the `vendor` field instead.
|
|
312
321
|
*/
|
|
313
322
|
type?: pulumi.Input<string>;
|
|
314
323
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceIntegration.js","sourceRoot":"","sources":["../serviceIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkIG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;
|
|
1
|
+
{"version":3,"file":"serviceIntegration.js","sourceRoot":"","sources":["../serviceIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;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C,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAhIL,gDAiIC;AAnHG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -70,6 +70,9 @@ export interface EventOrchestrationGlobalCatchAllActions {
|
|
|
70
70
|
* Replace any CEF field or Custom Details object field using custom variables.
|
|
71
71
|
*/
|
|
72
72
|
extractions?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationGlobalCatchAllActionsExtraction>[]>;
|
|
73
|
+
/**
|
|
74
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
75
|
+
*/
|
|
73
76
|
priority?: pulumi.Input<string>;
|
|
74
77
|
/**
|
|
75
78
|
* The ID of a Set from this Global Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -222,6 +225,9 @@ export interface EventOrchestrationGlobalSetRuleActions {
|
|
|
222
225
|
* Replace any CEF field or Custom Details object field using custom variables.
|
|
223
226
|
*/
|
|
224
227
|
extractions?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationGlobalSetRuleActionsExtraction>[]>;
|
|
228
|
+
/**
|
|
229
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
230
|
+
*/
|
|
225
231
|
priority?: pulumi.Input<string>;
|
|
226
232
|
/**
|
|
227
233
|
* The ID of a Set from this Global Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -428,6 +434,9 @@ export interface EventOrchestrationServiceCatchAllActions {
|
|
|
428
434
|
* Configure a [Process Automation](https://support.pagerduty.com/docs/event-orchestration#process-automation) associated with the resulting incident.
|
|
429
435
|
*/
|
|
430
436
|
pagerdutyAutomationAction?: pulumi.Input<inputs.EventOrchestrationServiceCatchAllActionsPagerdutyAutomationAction>;
|
|
437
|
+
/**
|
|
438
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
439
|
+
*/
|
|
431
440
|
priority?: pulumi.Input<string>;
|
|
432
441
|
/**
|
|
433
442
|
* The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -586,6 +595,9 @@ export interface EventOrchestrationServiceSetRuleActions {
|
|
|
586
595
|
* Configure a [Process Automation](https://support.pagerduty.com/docs/event-orchestration#process-automation) associated with the resulting incident.
|
|
587
596
|
*/
|
|
588
597
|
pagerdutyAutomationAction?: pulumi.Input<inputs.EventOrchestrationServiceSetRuleActionsPagerdutyAutomationAction>;
|
|
598
|
+
/**
|
|
599
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
600
|
+
*/
|
|
589
601
|
priority?: pulumi.Input<string>;
|
|
590
602
|
/**
|
|
591
603
|
* The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -1138,6 +1150,8 @@ export interface RulesetRuleActionsEventAction {
|
|
|
1138
1150
|
export interface RulesetRuleActionsExtraction {
|
|
1139
1151
|
/**
|
|
1140
1152
|
* The conditions that need to be met for the extraction to happen. Must use valid [RE2 regular expression syntax](https://github.com/google/re2/wiki/Syntax).
|
|
1153
|
+
*
|
|
1154
|
+
* *- **OR** -*
|
|
1141
1155
|
*/
|
|
1142
1156
|
regex?: pulumi.Input<string>;
|
|
1143
1157
|
/**
|
|
@@ -1146,6 +1160,8 @@ export interface RulesetRuleActionsExtraction {
|
|
|
1146
1160
|
source?: pulumi.Input<string>;
|
|
1147
1161
|
/**
|
|
1148
1162
|
* Field where the data is being copied to. Must be a [PagerDuty Common Event Format (PD-CEF)](https://support.pagerduty.com/docs/pd-cef) field.
|
|
1163
|
+
*
|
|
1164
|
+
* *NOTE: A rule can have multiple `extraction` objects attributed to it.*
|
|
1149
1165
|
*/
|
|
1150
1166
|
target?: pulumi.Input<string>;
|
|
1151
1167
|
/**
|
|
@@ -1234,6 +1250,9 @@ export interface RulesetRuleTimeFrame {
|
|
|
1234
1250
|
}
|
|
1235
1251
|
export interface RulesetRuleTimeFrameActiveBetween {
|
|
1236
1252
|
endTime?: pulumi.Input<number>;
|
|
1253
|
+
/**
|
|
1254
|
+
* A Unix timestamp in milliseconds which is combined with the `timezone` to determine the time this rule will start on each specified `weekday`. Note that the _date_ of the timestamp you specify does **not** matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the `timeStatic` resource to generate this value, as demonstrated in the `resource.pagerduty_ruleset_rule.foo` code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the `America/New_York` timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like [1554989400000](https://www.epochconverter.com/timezones?q=1554989400000&tz=America%2FNew_York).
|
|
1255
|
+
*/
|
|
1237
1256
|
startTime?: pulumi.Input<number>;
|
|
1238
1257
|
}
|
|
1239
1258
|
export interface RulesetRuleTimeFrameScheduledWeekly {
|
|
@@ -1241,6 +1260,9 @@ export interface RulesetRuleTimeFrameScheduledWeekly {
|
|
|
1241
1260
|
* Length of time the schedule will be active in milliseconds. For example `duration = 2 * 60 * 60 * 1000` if you want your rule to apply for 2 hours, from the specified `startTime`.
|
|
1242
1261
|
*/
|
|
1243
1262
|
duration?: pulumi.Input<number>;
|
|
1263
|
+
/**
|
|
1264
|
+
* A Unix timestamp in milliseconds which is combined with the `timezone` to determine the time this rule will start on each specified `weekday`. Note that the _date_ of the timestamp you specify does **not** matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the `timeStatic` resource to generate this value, as demonstrated in the `resource.pagerduty_ruleset_rule.foo` code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the `America/New_York` timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like [1554989400000](https://www.epochconverter.com/timezones?q=1554989400000&tz=America%2FNew_York).
|
|
1265
|
+
*/
|
|
1244
1266
|
startTime?: pulumi.Input<number>;
|
|
1245
1267
|
/**
|
|
1246
1268
|
* [The name of the timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: `timezone = "America/Toronto"`
|
|
@@ -1350,6 +1372,11 @@ export interface ServiceAlertGroupingParametersConfig {
|
|
|
1350
1372
|
fields?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1351
1373
|
/**
|
|
1352
1374
|
* The duration in minutes within which to automatically group incoming alerts. This setting applies only when `type` is set to `time`. To continue grouping alerts until the incident is resolved, set this value to `0`.
|
|
1375
|
+
*
|
|
1376
|
+
*
|
|
1377
|
+
* You may specify one optional `incidentUrgencyRule` block configuring what urgencies to use.
|
|
1378
|
+
* Your PagerDuty account must have the `urgencies` ability to assign an incident urgency rule.
|
|
1379
|
+
* The block contains the following arguments:
|
|
1353
1380
|
*/
|
|
1354
1381
|
timeout?: pulumi.Input<number>;
|
|
1355
1382
|
}
|
|
@@ -1360,6 +1387,11 @@ export interface ServiceAutoPauseNotificationsParameters {
|
|
|
1360
1387
|
enabled?: pulumi.Input<boolean>;
|
|
1361
1388
|
/**
|
|
1362
1389
|
* Indicates in seconds how long alerts should be suspended before triggering. Allowed values: `120`, `180`, `300`, `600`, `900` if `enabled` is `true`. Must be omitted or set to `null` if `enabled` is `false`.
|
|
1390
|
+
*
|
|
1391
|
+
*
|
|
1392
|
+
* You may specify one optional `incidentUrgencyRule` block configuring what urgencies to use.
|
|
1393
|
+
* Your PagerDuty account must have the `urgencies` ability to assign an incident urgency rule.
|
|
1394
|
+
* The block contains the following arguments:
|
|
1363
1395
|
*/
|
|
1364
1396
|
timeout?: pulumi.Input<number>;
|
|
1365
1397
|
}
|
|
@@ -1442,6 +1474,8 @@ export interface ServiceEventRuleActionsEventAction {
|
|
|
1442
1474
|
export interface ServiceEventRuleActionsExtraction {
|
|
1443
1475
|
/**
|
|
1444
1476
|
* The conditions that need to be met for the extraction to happen. Must use valid [RE2 regular expression syntax](https://github.com/google/re2/wiki/Syntax).
|
|
1477
|
+
*
|
|
1478
|
+
* *- **OR** -*
|
|
1445
1479
|
*/
|
|
1446
1480
|
regex?: pulumi.Input<string>;
|
|
1447
1481
|
/**
|
|
@@ -1450,6 +1484,8 @@ export interface ServiceEventRuleActionsExtraction {
|
|
|
1450
1484
|
source?: pulumi.Input<string>;
|
|
1451
1485
|
/**
|
|
1452
1486
|
* Field where the data is being copied to. Must be a [PagerDuty Common Event Format (PD-CEF)](https://support.pagerduty.com/docs/pd-cef) field.
|
|
1487
|
+
*
|
|
1488
|
+
* *NOTE: A rule can have multiple `extraction` objects attributed to it.*
|
|
1453
1489
|
*/
|
|
1454
1490
|
target?: pulumi.Input<string>;
|
|
1455
1491
|
/**
|
|
@@ -1592,6 +1628,10 @@ export interface ServiceIncidentUrgencyRule {
|
|
|
1592
1628
|
duringSupportHours?: pulumi.Input<inputs.ServiceIncidentUrgencyRuleDuringSupportHours>;
|
|
1593
1629
|
/**
|
|
1594
1630
|
* Incidents' urgency outside support hours.
|
|
1631
|
+
*
|
|
1632
|
+
* When using `type = "useSupportHours"` in `incidentUrgencyRule` you must specify exactly one (otherwise optional) `supportHours` block.
|
|
1633
|
+
* Your PagerDuty account must have the `serviceSupportHours` ability to assign support hours.
|
|
1634
|
+
* The block contains the following arguments:
|
|
1595
1635
|
*/
|
|
1596
1636
|
outsideSupportHours?: pulumi.Input<inputs.ServiceIncidentUrgencyRuleOutsideSupportHours>;
|
|
1597
1637
|
/**
|
|
@@ -1709,6 +1749,8 @@ export interface ServiceIntegrationEmailParserValueExtractor {
|
|
|
1709
1749
|
part: pulumi.Input<string>;
|
|
1710
1750
|
/**
|
|
1711
1751
|
* If `type` has value `regex` this value should contain valid regex.
|
|
1752
|
+
*
|
|
1753
|
+
* **Note:** You can use the `pagerduty.getVendor` data source to locate the appropriate vendor ID.
|
|
1712
1754
|
*/
|
|
1713
1755
|
regex?: pulumi.Input<string>;
|
|
1714
1756
|
startsAfter?: pulumi.Input<string>;
|
|
@@ -1738,6 +1780,54 @@ export interface ServiceScheduledAction {
|
|
|
1738
1780
|
export interface ServiceScheduledActionAt {
|
|
1739
1781
|
/**
|
|
1740
1782
|
* Designates either the start or the end of the scheduled action. Can be `supportHoursStart` or `supportHoursEnd`.
|
|
1783
|
+
*
|
|
1784
|
+
* Note that it is currently only possible to define the scheduled action when urgency is set to `high` for `duringSupportHours` and to `low` for `outsideSupportHours` in `incidentUrgencyRule`.
|
|
1785
|
+
*
|
|
1786
|
+
* Below is an example for a `pagerduty.Service` resource with `incidentUrgencyRules` with `type = "useSupportHours"`, `supportHours` and a default `scheduledAction` as well.
|
|
1787
|
+
*
|
|
1788
|
+
* ```typescript
|
|
1789
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
1790
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
1791
|
+
*
|
|
1792
|
+
* const foo = new pagerduty.Service("foo", {
|
|
1793
|
+
* description: "bar bar bar",
|
|
1794
|
+
* autoResolveTimeout: "3600",
|
|
1795
|
+
* acknowledgementTimeout: "3600",
|
|
1796
|
+
* escalationPolicy: pagerduty_escalation_policy.foo.id,
|
|
1797
|
+
* incidentUrgencyRule: {
|
|
1798
|
+
* type: "use_support_hours",
|
|
1799
|
+
* duringSupportHours: {
|
|
1800
|
+
* type: "constant",
|
|
1801
|
+
* urgency: "high",
|
|
1802
|
+
* },
|
|
1803
|
+
* outsideSupportHours: {
|
|
1804
|
+
* type: "constant",
|
|
1805
|
+
* urgency: "low",
|
|
1806
|
+
* },
|
|
1807
|
+
* },
|
|
1808
|
+
* supportHours: {
|
|
1809
|
+
* type: "fixed_time_per_day",
|
|
1810
|
+
* timeZone: "America/Lima",
|
|
1811
|
+
* startTime: "09:00:00",
|
|
1812
|
+
* endTime: "17:00:00",
|
|
1813
|
+
* daysOfWeeks: [
|
|
1814
|
+
* 1,
|
|
1815
|
+
* 2,
|
|
1816
|
+
* 3,
|
|
1817
|
+
* 4,
|
|
1818
|
+
* 5,
|
|
1819
|
+
* ],
|
|
1820
|
+
* },
|
|
1821
|
+
* scheduledActions: [{
|
|
1822
|
+
* type: "urgency_change",
|
|
1823
|
+
* toUrgency: "high",
|
|
1824
|
+
* ats: [{
|
|
1825
|
+
* type: "named_time",
|
|
1826
|
+
* name: "support_hours_start",
|
|
1827
|
+
* }],
|
|
1828
|
+
* }],
|
|
1829
|
+
* });
|
|
1830
|
+
* ```
|
|
1741
1831
|
*/
|
|
1742
1832
|
name?: pulumi.Input<string>;
|
|
1743
1833
|
/**
|
|
@@ -1753,6 +1843,10 @@ export interface ServiceSupportHours {
|
|
|
1753
1843
|
daysOfWeeks?: pulumi.Input<pulumi.Input<number>[]>;
|
|
1754
1844
|
/**
|
|
1755
1845
|
* The support hours' ending time of day.
|
|
1846
|
+
*
|
|
1847
|
+
* A `scheduledActions` block is required when using `type = "useSupportHours"` in `incidentUrgencyRule`.
|
|
1848
|
+
*
|
|
1849
|
+
* The block contains the following arguments:
|
|
1756
1850
|
*/
|
|
1757
1851
|
endTime?: pulumi.Input<string>;
|
|
1758
1852
|
/**
|
|
@@ -1785,6 +1879,11 @@ export interface SlackConnectionConfig {
|
|
|
1785
1879
|
* - `incident.reopened`
|
|
1786
1880
|
*/
|
|
1787
1881
|
events: pulumi.Input<pulumi.Input<string>[]>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.
|
|
1884
|
+
* - When omitted or set to an empty array (`[]`) in the configuration for a Slack Connection, its default behaviour is to set `priorities` to `No Priority` value.
|
|
1885
|
+
* - When set to `["*"]` its corresponding value for `priorities` in Slack Connection's configuration will be `Any Priority`.
|
|
1886
|
+
*/
|
|
1788
1887
|
priorities?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1789
1888
|
/**
|
|
1790
1889
|
* Allows you to filter events by urgency. Either `high` or `low`.
|
package/types/output.d.ts
CHANGED
|
@@ -69,6 +69,9 @@ export interface EventOrchestrationGlobalCatchAllActions {
|
|
|
69
69
|
* Replace any CEF field or Custom Details object field using custom variables.
|
|
70
70
|
*/
|
|
71
71
|
extractions?: outputs.EventOrchestrationGlobalCatchAllActionsExtraction[];
|
|
72
|
+
/**
|
|
73
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
74
|
+
*/
|
|
72
75
|
priority?: string;
|
|
73
76
|
/**
|
|
74
77
|
* The ID of a Set from this Global Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -221,6 +224,9 @@ export interface EventOrchestrationGlobalSetRuleActions {
|
|
|
221
224
|
* Replace any CEF field or Custom Details object field using custom variables.
|
|
222
225
|
*/
|
|
223
226
|
extractions?: outputs.EventOrchestrationGlobalSetRuleActionsExtraction[];
|
|
227
|
+
/**
|
|
228
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
229
|
+
*/
|
|
224
230
|
priority?: string;
|
|
225
231
|
/**
|
|
226
232
|
* The ID of a Set from this Global Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -427,6 +433,9 @@ export interface EventOrchestrationServiceCatchAllActions {
|
|
|
427
433
|
* Configure a [Process Automation](https://support.pagerduty.com/docs/event-orchestration#process-automation) associated with the resulting incident.
|
|
428
434
|
*/
|
|
429
435
|
pagerdutyAutomationAction?: outputs.EventOrchestrationServiceCatchAllActionsPagerdutyAutomationAction;
|
|
436
|
+
/**
|
|
437
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
438
|
+
*/
|
|
430
439
|
priority?: string;
|
|
431
440
|
/**
|
|
432
441
|
* The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -585,6 +594,9 @@ export interface EventOrchestrationServiceSetRuleActions {
|
|
|
585
594
|
* Configure a [Process Automation](https://support.pagerduty.com/docs/event-orchestration#process-automation) associated with the resulting incident.
|
|
586
595
|
*/
|
|
587
596
|
pagerdutyAutomationAction?: outputs.EventOrchestrationServiceSetRuleActionsPagerdutyAutomationAction;
|
|
597
|
+
/**
|
|
598
|
+
* The ID of the priority you want to set on resulting incident. Consider using the `pagerduty.getPriority` data source.
|
|
599
|
+
*/
|
|
588
600
|
priority?: string;
|
|
589
601
|
/**
|
|
590
602
|
* The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.
|
|
@@ -1170,6 +1182,8 @@ export interface RulesetRuleActionsEventAction {
|
|
|
1170
1182
|
export interface RulesetRuleActionsExtraction {
|
|
1171
1183
|
/**
|
|
1172
1184
|
* The conditions that need to be met for the extraction to happen. Must use valid [RE2 regular expression syntax](https://github.com/google/re2/wiki/Syntax).
|
|
1185
|
+
*
|
|
1186
|
+
* *- **OR** -*
|
|
1173
1187
|
*/
|
|
1174
1188
|
regex?: string;
|
|
1175
1189
|
/**
|
|
@@ -1178,6 +1192,8 @@ export interface RulesetRuleActionsExtraction {
|
|
|
1178
1192
|
source?: string;
|
|
1179
1193
|
/**
|
|
1180
1194
|
* Field where the data is being copied to. Must be a [PagerDuty Common Event Format (PD-CEF)](https://support.pagerduty.com/docs/pd-cef) field.
|
|
1195
|
+
*
|
|
1196
|
+
* *NOTE: A rule can have multiple `extraction` objects attributed to it.*
|
|
1181
1197
|
*/
|
|
1182
1198
|
target?: string;
|
|
1183
1199
|
/**
|
|
@@ -1266,6 +1282,9 @@ export interface RulesetRuleTimeFrame {
|
|
|
1266
1282
|
}
|
|
1267
1283
|
export interface RulesetRuleTimeFrameActiveBetween {
|
|
1268
1284
|
endTime?: number;
|
|
1285
|
+
/**
|
|
1286
|
+
* A Unix timestamp in milliseconds which is combined with the `timezone` to determine the time this rule will start on each specified `weekday`. Note that the _date_ of the timestamp you specify does **not** matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the `timeStatic` resource to generate this value, as demonstrated in the `resource.pagerduty_ruleset_rule.foo` code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the `America/New_York` timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like [1554989400000](https://www.epochconverter.com/timezones?q=1554989400000&tz=America%2FNew_York).
|
|
1287
|
+
*/
|
|
1269
1288
|
startTime?: number;
|
|
1270
1289
|
}
|
|
1271
1290
|
export interface RulesetRuleTimeFrameScheduledWeekly {
|
|
@@ -1273,6 +1292,9 @@ export interface RulesetRuleTimeFrameScheduledWeekly {
|
|
|
1273
1292
|
* Length of time the schedule will be active in milliseconds. For example `duration = 2 * 60 * 60 * 1000` if you want your rule to apply for 2 hours, from the specified `startTime`.
|
|
1274
1293
|
*/
|
|
1275
1294
|
duration?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* A Unix timestamp in milliseconds which is combined with the `timezone` to determine the time this rule will start on each specified `weekday`. Note that the _date_ of the timestamp you specify does **not** matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the `timeStatic` resource to generate this value, as demonstrated in the `resource.pagerduty_ruleset_rule.foo` code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the `America/New_York` timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like [1554989400000](https://www.epochconverter.com/timezones?q=1554989400000&tz=America%2FNew_York).
|
|
1297
|
+
*/
|
|
1276
1298
|
startTime?: number;
|
|
1277
1299
|
/**
|
|
1278
1300
|
* [The name of the timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: `timezone = "America/Toronto"`
|
|
@@ -1382,6 +1404,11 @@ export interface ServiceAlertGroupingParametersConfig {
|
|
|
1382
1404
|
fields?: string[];
|
|
1383
1405
|
/**
|
|
1384
1406
|
* The duration in minutes within which to automatically group incoming alerts. This setting applies only when `type` is set to `time`. To continue grouping alerts until the incident is resolved, set this value to `0`.
|
|
1407
|
+
*
|
|
1408
|
+
*
|
|
1409
|
+
* You may specify one optional `incidentUrgencyRule` block configuring what urgencies to use.
|
|
1410
|
+
* Your PagerDuty account must have the `urgencies` ability to assign an incident urgency rule.
|
|
1411
|
+
* The block contains the following arguments:
|
|
1385
1412
|
*/
|
|
1386
1413
|
timeout?: number;
|
|
1387
1414
|
}
|
|
@@ -1392,6 +1419,11 @@ export interface ServiceAutoPauseNotificationsParameters {
|
|
|
1392
1419
|
enabled: boolean;
|
|
1393
1420
|
/**
|
|
1394
1421
|
* Indicates in seconds how long alerts should be suspended before triggering. Allowed values: `120`, `180`, `300`, `600`, `900` if `enabled` is `true`. Must be omitted or set to `null` if `enabled` is `false`.
|
|
1422
|
+
*
|
|
1423
|
+
*
|
|
1424
|
+
* You may specify one optional `incidentUrgencyRule` block configuring what urgencies to use.
|
|
1425
|
+
* Your PagerDuty account must have the `urgencies` ability to assign an incident urgency rule.
|
|
1426
|
+
* The block contains the following arguments:
|
|
1395
1427
|
*/
|
|
1396
1428
|
timeout: number;
|
|
1397
1429
|
}
|
|
@@ -1474,6 +1506,8 @@ export interface ServiceEventRuleActionsEventAction {
|
|
|
1474
1506
|
export interface ServiceEventRuleActionsExtraction {
|
|
1475
1507
|
/**
|
|
1476
1508
|
* The conditions that need to be met for the extraction to happen. Must use valid [RE2 regular expression syntax](https://github.com/google/re2/wiki/Syntax).
|
|
1509
|
+
*
|
|
1510
|
+
* *- **OR** -*
|
|
1477
1511
|
*/
|
|
1478
1512
|
regex?: string;
|
|
1479
1513
|
/**
|
|
@@ -1482,6 +1516,8 @@ export interface ServiceEventRuleActionsExtraction {
|
|
|
1482
1516
|
source?: string;
|
|
1483
1517
|
/**
|
|
1484
1518
|
* Field where the data is being copied to. Must be a [PagerDuty Common Event Format (PD-CEF)](https://support.pagerduty.com/docs/pd-cef) field.
|
|
1519
|
+
*
|
|
1520
|
+
* *NOTE: A rule can have multiple `extraction` objects attributed to it.*
|
|
1485
1521
|
*/
|
|
1486
1522
|
target?: string;
|
|
1487
1523
|
/**
|
|
@@ -1624,6 +1660,10 @@ export interface ServiceIncidentUrgencyRule {
|
|
|
1624
1660
|
duringSupportHours?: outputs.ServiceIncidentUrgencyRuleDuringSupportHours;
|
|
1625
1661
|
/**
|
|
1626
1662
|
* Incidents' urgency outside support hours.
|
|
1663
|
+
*
|
|
1664
|
+
* When using `type = "useSupportHours"` in `incidentUrgencyRule` you must specify exactly one (otherwise optional) `supportHours` block.
|
|
1665
|
+
* Your PagerDuty account must have the `serviceSupportHours` ability to assign support hours.
|
|
1666
|
+
* The block contains the following arguments:
|
|
1627
1667
|
*/
|
|
1628
1668
|
outsideSupportHours?: outputs.ServiceIncidentUrgencyRuleOutsideSupportHours;
|
|
1629
1669
|
/**
|
|
@@ -1741,6 +1781,8 @@ export interface ServiceIntegrationEmailParserValueExtractor {
|
|
|
1741
1781
|
part: string;
|
|
1742
1782
|
/**
|
|
1743
1783
|
* If `type` has value `regex` this value should contain valid regex.
|
|
1784
|
+
*
|
|
1785
|
+
* **Note:** You can use the `pagerduty.getVendor` data source to locate the appropriate vendor ID.
|
|
1744
1786
|
*/
|
|
1745
1787
|
regex?: string;
|
|
1746
1788
|
startsAfter?: string;
|
|
@@ -1770,6 +1812,54 @@ export interface ServiceScheduledAction {
|
|
|
1770
1812
|
export interface ServiceScheduledActionAt {
|
|
1771
1813
|
/**
|
|
1772
1814
|
* Designates either the start or the end of the scheduled action. Can be `supportHoursStart` or `supportHoursEnd`.
|
|
1815
|
+
*
|
|
1816
|
+
* Note that it is currently only possible to define the scheduled action when urgency is set to `high` for `duringSupportHours` and to `low` for `outsideSupportHours` in `incidentUrgencyRule`.
|
|
1817
|
+
*
|
|
1818
|
+
* Below is an example for a `pagerduty.Service` resource with `incidentUrgencyRules` with `type = "useSupportHours"`, `supportHours` and a default `scheduledAction` as well.
|
|
1819
|
+
*
|
|
1820
|
+
* ```typescript
|
|
1821
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
1822
|
+
* import * as pagerduty from "@pulumi/pagerduty";
|
|
1823
|
+
*
|
|
1824
|
+
* const foo = new pagerduty.Service("foo", {
|
|
1825
|
+
* description: "bar bar bar",
|
|
1826
|
+
* autoResolveTimeout: "3600",
|
|
1827
|
+
* acknowledgementTimeout: "3600",
|
|
1828
|
+
* escalationPolicy: pagerduty_escalation_policy.foo.id,
|
|
1829
|
+
* incidentUrgencyRule: {
|
|
1830
|
+
* type: "use_support_hours",
|
|
1831
|
+
* duringSupportHours: {
|
|
1832
|
+
* type: "constant",
|
|
1833
|
+
* urgency: "high",
|
|
1834
|
+
* },
|
|
1835
|
+
* outsideSupportHours: {
|
|
1836
|
+
* type: "constant",
|
|
1837
|
+
* urgency: "low",
|
|
1838
|
+
* },
|
|
1839
|
+
* },
|
|
1840
|
+
* supportHours: {
|
|
1841
|
+
* type: "fixed_time_per_day",
|
|
1842
|
+
* timeZone: "America/Lima",
|
|
1843
|
+
* startTime: "09:00:00",
|
|
1844
|
+
* endTime: "17:00:00",
|
|
1845
|
+
* daysOfWeeks: [
|
|
1846
|
+
* 1,
|
|
1847
|
+
* 2,
|
|
1848
|
+
* 3,
|
|
1849
|
+
* 4,
|
|
1850
|
+
* 5,
|
|
1851
|
+
* ],
|
|
1852
|
+
* },
|
|
1853
|
+
* scheduledActions: [{
|
|
1854
|
+
* type: "urgency_change",
|
|
1855
|
+
* toUrgency: "high",
|
|
1856
|
+
* ats: [{
|
|
1857
|
+
* type: "named_time",
|
|
1858
|
+
* name: "support_hours_start",
|
|
1859
|
+
* }],
|
|
1860
|
+
* }],
|
|
1861
|
+
* });
|
|
1862
|
+
* ```
|
|
1773
1863
|
*/
|
|
1774
1864
|
name?: string;
|
|
1775
1865
|
/**
|
|
@@ -1785,6 +1875,10 @@ export interface ServiceSupportHours {
|
|
|
1785
1875
|
daysOfWeeks?: number[];
|
|
1786
1876
|
/**
|
|
1787
1877
|
* The support hours' ending time of day.
|
|
1878
|
+
*
|
|
1879
|
+
* A `scheduledActions` block is required when using `type = "useSupportHours"` in `incidentUrgencyRule`.
|
|
1880
|
+
*
|
|
1881
|
+
* The block contains the following arguments:
|
|
1788
1882
|
*/
|
|
1789
1883
|
endTime?: string;
|
|
1790
1884
|
/**
|
|
@@ -1817,6 +1911,11 @@ export interface SlackConnectionConfig {
|
|
|
1817
1911
|
* - `incident.reopened`
|
|
1818
1912
|
*/
|
|
1819
1913
|
events: string[];
|
|
1914
|
+
/**
|
|
1915
|
+
* Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.
|
|
1916
|
+
* - When omitted or set to an empty array (`[]`) in the configuration for a Slack Connection, its default behaviour is to set `priorities` to `No Priority` value.
|
|
1917
|
+
* - When set to `["*"]` its corresponding value for `priorities` in Slack Connection's configuration will be `Any Priority`.
|
|
1918
|
+
*/
|
|
1820
1919
|
priorities?: string[];
|
|
1821
1920
|
/**
|
|
1822
1921
|
* Allows you to filter events by urgency. Either `high` or `low`.
|