@pulumi/opsgenie 1.4.1 → 1.4.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/alertPolicy.d.ts CHANGED
@@ -16,12 +16,7 @@ import * as outputs from "./types/output";
16
16
  * });
17
17
  * const testAlertPolicy = new opsgenie.AlertPolicy("test", {
18
18
  * filters: [{}],
19
- * name: "example policy",
20
- * teamId: test.id,
21
- * policyDescription: "This is sample policy",
22
- * message: "{{message}}",
23
19
  * timeRestrictions: [{
24
- * type: "weekday-and-time-of-day",
25
20
  * restrictionList: [
26
21
  * {
27
22
  * endDay: "monday",
@@ -40,7 +35,12 @@ import * as outputs from "./types/output";
40
35
  * startMin: 0,
41
36
  * },
42
37
  * ],
38
+ * type: "weekday-and-time-of-day",
43
39
  * }],
40
+ * name: "example policy",
41
+ * teamId: test.id,
42
+ * policyDescription: "This is sample policy",
43
+ * message: "{{message}}",
44
44
  * });
45
45
  * ```
46
46
  *
package/alertPolicy.js CHANGED
@@ -43,12 +43,7 @@ const utilities = __importStar(require("./utilities"));
43
43
  * });
44
44
  * const testAlertPolicy = new opsgenie.AlertPolicy("test", {
45
45
  * filters: [{}],
46
- * name: "example policy",
47
- * teamId: test.id,
48
- * policyDescription: "This is sample policy",
49
- * message: "{{message}}",
50
46
  * timeRestrictions: [{
51
- * type: "weekday-and-time-of-day",
52
47
  * restrictionList: [
53
48
  * {
54
49
  * endDay: "monday",
@@ -67,7 +62,12 @@ const utilities = __importStar(require("./utilities"));
67
62
  * startMin: 0,
68
63
  * },
69
64
  * ],
65
+ * type: "weekday-and-time-of-day",
70
66
  * }],
67
+ * name: "example policy",
68
+ * teamId: test.id,
69
+ * policyDescription: "This is sample policy",
70
+ * message: "{{message}}",
71
71
  * });
72
72
  * ```
73
73
  *
package/escalation.d.ts CHANGED
@@ -13,16 +13,16 @@ import * as outputs from "./types/output";
13
13
  * import * as opsgenie from "@pulumi/opsgenie";
14
14
  *
15
15
  * const _default = new opsgenie.Escalation("default", {
16
- * name: "genieescalation",
17
16
  * rules: [{
18
- * condition: "if-not-acked",
19
- * notifyType: "default",
20
- * delay: 1,
21
17
  * recipients: [{
22
18
  * type: "user",
23
19
  * id: test.id,
24
20
  * }],
21
+ * condition: "if-not-acked",
22
+ * notifyType: "default",
23
+ * delay: 1,
25
24
  * }],
25
+ * name: "genieescalation",
26
26
  * });
27
27
  * ```
28
28
  *
@@ -33,44 +33,44 @@ import * as outputs from "./types/output";
33
33
  * import * as opsgenie from "@pulumi/opsgenie";
34
34
  *
35
35
  * const _default = new opsgenie.Escalation("default", {
36
- * name: "genieescalation",
37
- * description: "test",
38
- * ownerTeamId: testOpsgenieTeam.id,
36
+ * repeats: [{
37
+ * waitInterval: 10,
38
+ * count: 1,
39
+ * resetRecipientStates: true,
40
+ * closeAlertAfterAll: false,
41
+ * }],
39
42
  * rules: [
40
43
  * {
41
- * condition: "if-not-acked",
42
- * notifyType: "default",
43
- * delay: 1,
44
44
  * recipients: [{
45
45
  * type: "user",
46
46
  * id: test.id,
47
47
  * }],
48
- * },
49
- * {
50
48
  * condition: "if-not-acked",
51
49
  * notifyType: "default",
52
50
  * delay: 1,
51
+ * },
52
+ * {
53
53
  * recipients: [{
54
54
  * type: "team",
55
55
  * id: testOpsgenieTeam.id,
56
56
  * }],
57
- * },
58
- * {
59
57
  * condition: "if-not-acked",
60
58
  * notifyType: "default",
61
59
  * delay: 1,
60
+ * },
61
+ * {
62
62
  * recipients: [{
63
63
  * type: "schedule",
64
64
  * id: testOpsgenieSchedule.id,
65
65
  * }],
66
+ * condition: "if-not-acked",
67
+ * notifyType: "default",
68
+ * delay: 1,
66
69
  * },
67
70
  * ],
68
- * repeats: [{
69
- * waitInterval: 10,
70
- * count: 1,
71
- * resetRecipientStates: true,
72
- * closeAlertAfterAll: false,
73
- * }],
71
+ * name: "genieescalation",
72
+ * description: "test",
73
+ * ownerTeamId: testOpsgenieTeam.id,
74
74
  * });
75
75
  * ```
76
76
  *
package/escalation.js CHANGED
@@ -40,16 +40,16 @@ const utilities = __importStar(require("./utilities"));
40
40
  * import * as opsgenie from "@pulumi/opsgenie";
41
41
  *
42
42
  * const _default = new opsgenie.Escalation("default", {
43
- * name: "genieescalation",
44
43
  * rules: [{
45
- * condition: "if-not-acked",
46
- * notifyType: "default",
47
- * delay: 1,
48
44
  * recipients: [{
49
45
  * type: "user",
50
46
  * id: test.id,
51
47
  * }],
48
+ * condition: "if-not-acked",
49
+ * notifyType: "default",
50
+ * delay: 1,
52
51
  * }],
52
+ * name: "genieescalation",
53
53
  * });
54
54
  * ```
55
55
  *
@@ -60,44 +60,44 @@ const utilities = __importStar(require("./utilities"));
60
60
  * import * as opsgenie from "@pulumi/opsgenie";
61
61
  *
62
62
  * const _default = new opsgenie.Escalation("default", {
63
- * name: "genieescalation",
64
- * description: "test",
65
- * ownerTeamId: testOpsgenieTeam.id,
63
+ * repeats: [{
64
+ * waitInterval: 10,
65
+ * count: 1,
66
+ * resetRecipientStates: true,
67
+ * closeAlertAfterAll: false,
68
+ * }],
66
69
  * rules: [
67
70
  * {
68
- * condition: "if-not-acked",
69
- * notifyType: "default",
70
- * delay: 1,
71
71
  * recipients: [{
72
72
  * type: "user",
73
73
  * id: test.id,
74
74
  * }],
75
- * },
76
- * {
77
75
  * condition: "if-not-acked",
78
76
  * notifyType: "default",
79
77
  * delay: 1,
78
+ * },
79
+ * {
80
80
  * recipients: [{
81
81
  * type: "team",
82
82
  * id: testOpsgenieTeam.id,
83
83
  * }],
84
- * },
85
- * {
86
84
  * condition: "if-not-acked",
87
85
  * notifyType: "default",
88
86
  * delay: 1,
87
+ * },
88
+ * {
89
89
  * recipients: [{
90
90
  * type: "schedule",
91
91
  * id: testOpsgenieSchedule.id,
92
92
  * }],
93
+ * condition: "if-not-acked",
94
+ * notifyType: "default",
95
+ * delay: 1,
93
96
  * },
94
97
  * ],
95
- * repeats: [{
96
- * waitInterval: 10,
97
- * count: 1,
98
- * resetRecipientStates: true,
99
- * closeAlertAfterAll: false,
100
- * }],
98
+ * name: "genieescalation",
99
+ * description: "test",
100
+ * ownerTeamId: testOpsgenieTeam.id,
101
101
  * });
102
102
  * ```
103
103
  *
@@ -19,14 +19,14 @@ import * as outputs from "./types/output";
19
19
  * teamId: test.id,
20
20
  * });
21
21
  * const testIncidentTemplate = new opsgenie.IncidentTemplate("test", {
22
- * name: "genietest-incident-template",
23
- * message: "Incident Message",
24
- * priority: "P2",
25
22
  * stakeholderProperties: [{
26
23
  * enable: true,
27
24
  * message: "Stakeholder Message",
28
25
  * description: "Stakeholder Description",
29
26
  * }],
27
+ * name: "genietest-incident-template",
28
+ * message: "Incident Message",
29
+ * priority: "P2",
30
30
  * tags: [
31
31
  * "tag1",
32
32
  * "tag2",
@@ -46,14 +46,14 @@ const utilities = __importStar(require("./utilities"));
46
46
  * teamId: test.id,
47
47
  * });
48
48
  * const testIncidentTemplate = new opsgenie.IncidentTemplate("test", {
49
- * name: "genietest-incident-template",
50
- * message: "Incident Message",
51
- * priority: "P2",
52
49
  * stakeholderProperties: [{
53
50
  * enable: true,
54
51
  * message: "Stakeholder Message",
55
52
  * description: "Stakeholder Description",
56
53
  * }],
54
+ * name: "genietest-incident-template",
55
+ * message: "Incident Message",
56
+ * priority: "P2",
57
57
  * tags: [
58
58
  * "tag1",
59
59
  * "tag2",
@@ -21,9 +21,64 @@ import * as outputs from "./types/output";
21
21
  * import * as std from "@pulumi/std";
22
22
  *
23
23
  * const testAction = new opsgenie.IntegrationAction("test_action", {
24
- * integrationId: testOpsgenieApiIntegration.id,
24
+ * acknowledges: [{
25
+ * filters: [{
26
+ * conditions: [
27
+ * {
28
+ * field: "message",
29
+ * not: true,
30
+ * operation: "contains",
31
+ * expectedValue: "TEST",
32
+ * },
33
+ * {
34
+ * field: "priority",
35
+ * operation: "equals",
36
+ * expectedValue: "P5",
37
+ * },
38
+ * ],
39
+ * type: "match-all-conditions",
40
+ * }],
41
+ * name: "Auto-ack test alerts",
42
+ * }],
43
+ * addNotes: [{
44
+ * filters: [{
45
+ * type: "match-all",
46
+ * }],
47
+ * name: "Add note to all alerts",
48
+ * note: "Created from test integration",
49
+ * }],
50
+ * closes: [{
51
+ * filters: [{
52
+ * conditions: [
53
+ * {
54
+ * field: "priority",
55
+ * operation: "equals",
56
+ * expectedValue: "P5",
57
+ * },
58
+ * {
59
+ * field: "message",
60
+ * operation: "contains",
61
+ * expectedValue: "DEBUG",
62
+ * },
63
+ * ],
64
+ * type: "match-any-condition",
65
+ * }],
66
+ * name: "Low priority alerts",
67
+ * }],
25
68
  * creates: [
26
69
  * {
70
+ * filters: [{
71
+ * conditions: [{
72
+ * field: "priority",
73
+ * operation: "equals",
74
+ * expectedValue: "P1",
75
+ * }],
76
+ * type: "match-all-conditions",
77
+ * }],
78
+ * responders: [{
79
+ * id: test.id,
80
+ * type: "team",
81
+ * }],
27
82
  * name: "create action",
28
83
  * tags: [
29
84
  * "CRITICAL",
@@ -37,20 +92,16 @@ import * as outputs from "./types/output";
37
92
  * description: "{{description}}",
38
93
  * entity: "{{entity}}",
39
94
  * alertActions: ["Runbook ID#342"],
95
+ * },
96
+ * {
40
97
  * filters: [{
41
- * type: "match-all-conditions",
42
98
  * conditions: [{
43
99
  * field: "priority",
44
100
  * operation: "equals",
45
101
  * expectedValue: "P1",
46
102
  * }],
103
+ * type: "match-all-conditions",
47
104
  * }],
48
- * responders: [{
49
- * id: test.id,
50
- * type: "team",
51
- * }],
52
- * },
53
- * {
54
105
  * name: "create action with multiline description",
55
106
  * message: "{{message}}",
56
107
  * description: std.chomp({
@@ -59,36 +110,25 @@ import * as outputs from "./types/output";
59
110
  * description.
60
111
  * `,
61
112
  * }).then(invoke => invoke.result),
113
+ * },
114
+ * {
62
115
  * filters: [{
63
- * type: "match-all-conditions",
64
116
  * conditions: [{
65
117
  * field: "priority",
66
118
  * operation: "equals",
67
- * expectedValue: "P1",
119
+ * expectedValue: "P2",
68
120
  * }],
121
+ * type: "match-all-conditions",
69
122
  * }],
70
- * },
71
- * {
72
123
  * name: "Create medium priority alerts",
73
124
  * tags: [
74
125
  * "SEVERE",
75
126
  * "SEV-1",
76
127
  * ],
77
128
  * priority: "P3",
78
- * filters: [{
79
- * type: "match-all-conditions",
80
- * conditions: [{
81
- * field: "priority",
82
- * operation: "equals",
83
- * expectedValue: "P2",
84
- * }],
85
- * }],
86
129
  * },
87
130
  * {
88
- * name: "Create alert with priority from message",
89
- * customPriority: "{{message.substringAfter(\"[custom]\")}}",
90
131
  * filters: [{
91
- * type: "match-all-conditions",
92
132
  * conditions: [
93
133
  * {
94
134
  * field: "tags",
@@ -101,64 +141,24 @@ import * as outputs from "./types/output";
101
141
  * expectedValue: "[custom]",
102
142
  * },
103
143
  * ],
144
+ * type: "match-all-conditions",
104
145
  * }],
146
+ * name: "Create alert with priority from message",
147
+ * customPriority: "{{message.substringAfter(\"[custom]\")}}",
105
148
  * },
106
149
  * ],
107
- * closes: [{
108
- * name: "Low priority alerts",
109
- * filters: [{
110
- * type: "match-any-condition",
111
- * conditions: [
112
- * {
113
- * field: "priority",
114
- * operation: "equals",
115
- * expectedValue: "P5",
116
- * },
117
- * {
118
- * field: "message",
119
- * operation: "contains",
120
- * expectedValue: "DEBUG",
121
- * },
122
- * ],
123
- * }],
124
- * }],
125
- * acknowledges: [{
126
- * name: "Auto-ack test alerts",
127
- * filters: [{
128
- * type: "match-all-conditions",
129
- * conditions: [
130
- * {
131
- * field: "message",
132
- * not: true,
133
- * operation: "contains",
134
- * expectedValue: "TEST",
135
- * },
136
- * {
137
- * field: "priority",
138
- * operation: "equals",
139
- * expectedValue: "P5",
140
- * },
141
- * ],
142
- * }],
143
- * }],
144
- * addNotes: [{
145
- * name: "Add note to all alerts",
146
- * note: "Created from test integration",
147
- * filters: [{
148
- * type: "match-all",
149
- * }],
150
- * }],
151
150
  * ignores: [{
152
- * name: "Ignore alerts with ignore tag",
153
151
  * filters: [{
154
- * type: "match-all-conditions",
155
152
  * conditions: [{
156
153
  * field: "tags",
157
154
  * operation: "contains",
158
155
  * expectedValue: "ignore",
159
156
  * }],
157
+ * type: "match-all-conditions",
160
158
  * }],
159
+ * name: "Ignore alerts with ignore tag",
161
160
  * }],
161
+ * integrationId: testOpsgenieApiIntegration.id,
162
162
  * });
163
163
  * ```
164
164
  */
@@ -48,9 +48,64 @@ const utilities = __importStar(require("./utilities"));
48
48
  * import * as std from "@pulumi/std";
49
49
  *
50
50
  * const testAction = new opsgenie.IntegrationAction("test_action", {
51
- * integrationId: testOpsgenieApiIntegration.id,
51
+ * acknowledges: [{
52
+ * filters: [{
53
+ * conditions: [
54
+ * {
55
+ * field: "message",
56
+ * not: true,
57
+ * operation: "contains",
58
+ * expectedValue: "TEST",
59
+ * },
60
+ * {
61
+ * field: "priority",
62
+ * operation: "equals",
63
+ * expectedValue: "P5",
64
+ * },
65
+ * ],
66
+ * type: "match-all-conditions",
67
+ * }],
68
+ * name: "Auto-ack test alerts",
69
+ * }],
70
+ * addNotes: [{
71
+ * filters: [{
72
+ * type: "match-all",
73
+ * }],
74
+ * name: "Add note to all alerts",
75
+ * note: "Created from test integration",
76
+ * }],
77
+ * closes: [{
78
+ * filters: [{
79
+ * conditions: [
80
+ * {
81
+ * field: "priority",
82
+ * operation: "equals",
83
+ * expectedValue: "P5",
84
+ * },
85
+ * {
86
+ * field: "message",
87
+ * operation: "contains",
88
+ * expectedValue: "DEBUG",
89
+ * },
90
+ * ],
91
+ * type: "match-any-condition",
92
+ * }],
93
+ * name: "Low priority alerts",
94
+ * }],
52
95
  * creates: [
53
96
  * {
97
+ * filters: [{
98
+ * conditions: [{
99
+ * field: "priority",
100
+ * operation: "equals",
101
+ * expectedValue: "P1",
102
+ * }],
103
+ * type: "match-all-conditions",
104
+ * }],
105
+ * responders: [{
106
+ * id: test.id,
107
+ * type: "team",
108
+ * }],
54
109
  * name: "create action",
55
110
  * tags: [
56
111
  * "CRITICAL",
@@ -64,20 +119,16 @@ const utilities = __importStar(require("./utilities"));
64
119
  * description: "{{description}}",
65
120
  * entity: "{{entity}}",
66
121
  * alertActions: ["Runbook ID#342"],
122
+ * },
123
+ * {
67
124
  * filters: [{
68
- * type: "match-all-conditions",
69
125
  * conditions: [{
70
126
  * field: "priority",
71
127
  * operation: "equals",
72
128
  * expectedValue: "P1",
73
129
  * }],
130
+ * type: "match-all-conditions",
74
131
  * }],
75
- * responders: [{
76
- * id: test.id,
77
- * type: "team",
78
- * }],
79
- * },
80
- * {
81
132
  * name: "create action with multiline description",
82
133
  * message: "{{message}}",
83
134
  * description: std.chomp({
@@ -86,36 +137,25 @@ const utilities = __importStar(require("./utilities"));
86
137
  * description.
87
138
  * `,
88
139
  * }).then(invoke => invoke.result),
140
+ * },
141
+ * {
89
142
  * filters: [{
90
- * type: "match-all-conditions",
91
143
  * conditions: [{
92
144
  * field: "priority",
93
145
  * operation: "equals",
94
- * expectedValue: "P1",
146
+ * expectedValue: "P2",
95
147
  * }],
148
+ * type: "match-all-conditions",
96
149
  * }],
97
- * },
98
- * {
99
150
  * name: "Create medium priority alerts",
100
151
  * tags: [
101
152
  * "SEVERE",
102
153
  * "SEV-1",
103
154
  * ],
104
155
  * priority: "P3",
105
- * filters: [{
106
- * type: "match-all-conditions",
107
- * conditions: [{
108
- * field: "priority",
109
- * operation: "equals",
110
- * expectedValue: "P2",
111
- * }],
112
- * }],
113
156
  * },
114
157
  * {
115
- * name: "Create alert with priority from message",
116
- * customPriority: "{{message.substringAfter(\"[custom]\")}}",
117
158
  * filters: [{
118
- * type: "match-all-conditions",
119
159
  * conditions: [
120
160
  * {
121
161
  * field: "tags",
@@ -128,64 +168,24 @@ const utilities = __importStar(require("./utilities"));
128
168
  * expectedValue: "[custom]",
129
169
  * },
130
170
  * ],
171
+ * type: "match-all-conditions",
131
172
  * }],
173
+ * name: "Create alert with priority from message",
174
+ * customPriority: "{{message.substringAfter(\"[custom]\")}}",
132
175
  * },
133
176
  * ],
134
- * closes: [{
135
- * name: "Low priority alerts",
136
- * filters: [{
137
- * type: "match-any-condition",
138
- * conditions: [
139
- * {
140
- * field: "priority",
141
- * operation: "equals",
142
- * expectedValue: "P5",
143
- * },
144
- * {
145
- * field: "message",
146
- * operation: "contains",
147
- * expectedValue: "DEBUG",
148
- * },
149
- * ],
150
- * }],
151
- * }],
152
- * acknowledges: [{
153
- * name: "Auto-ack test alerts",
154
- * filters: [{
155
- * type: "match-all-conditions",
156
- * conditions: [
157
- * {
158
- * field: "message",
159
- * not: true,
160
- * operation: "contains",
161
- * expectedValue: "TEST",
162
- * },
163
- * {
164
- * field: "priority",
165
- * operation: "equals",
166
- * expectedValue: "P5",
167
- * },
168
- * ],
169
- * }],
170
- * }],
171
- * addNotes: [{
172
- * name: "Add note to all alerts",
173
- * note: "Created from test integration",
174
- * filters: [{
175
- * type: "match-all",
176
- * }],
177
- * }],
178
177
  * ignores: [{
179
- * name: "Ignore alerts with ignore tag",
180
178
  * filters: [{
181
- * type: "match-all-conditions",
182
179
  * conditions: [{
183
180
  * field: "tags",
184
181
  * operation: "contains",
185
182
  * expectedValue: "ignore",
186
183
  * }],
184
+ * type: "match-all-conditions",
187
185
  * }],
186
+ * name: "Ignore alerts with ignore tag",
188
187
  * }],
188
+ * integrationId: testOpsgenieApiIntegration.id,
189
189
  * });
190
190
  * ```
191
191
  */
@@ -15,15 +15,15 @@ import * as outputs from "./types/output";
15
15
  * description: "This team deals with all the things",
16
16
  * });
17
17
  * const testNotificationPolicy = new opsgenie.NotificationPolicy("test", {
18
- * filters: [{}],
19
- * name: "example policy",
20
- * teamId: test.id,
21
- * policyDescription: "This policy has a delay action",
22
18
  * delayActions: [{
23
19
  * delayOption: "next-time",
24
20
  * untilMinute: 1,
25
21
  * untilHour: 9,
26
22
  * }],
23
+ * filters: [{}],
24
+ * name: "example policy",
25
+ * teamId: test.id,
26
+ * policyDescription: "This policy has a delay action",
27
27
  * });
28
28
  * ```
29
29
  *
@@ -42,15 +42,15 @@ const utilities = __importStar(require("./utilities"));
42
42
  * description: "This team deals with all the things",
43
43
  * });
44
44
  * const testNotificationPolicy = new opsgenie.NotificationPolicy("test", {
45
- * filters: [{}],
46
- * name: "example policy",
47
- * teamId: test.id,
48
- * policyDescription: "This policy has a delay action",
49
45
  * delayActions: [{
50
46
  * delayOption: "next-time",
51
47
  * untilMinute: 1,
52
48
  * untilHour: 9,
53
49
  * }],
50
+ * filters: [{}],
51
+ * name: "example policy",
52
+ * teamId: test.id,
53
+ * policyDescription: "This policy has a delay action",
54
54
  * });
55
55
  * ```
56
56
  *
@@ -16,6 +16,12 @@ import * as outputs from "./types/output";
16
16
  * role: "User",
17
17
  * });
18
18
  * const testNotificationRule = new opsgenie.NotificationRule("test", {
19
+ * steps: [{
20
+ * contacts: [{
21
+ * method: "email",
22
+ * to: "example@user.com",
23
+ * }],
24
+ * }],
19
25
  * name: "Example notification rule",
20
26
  * username: test.username,
21
27
  * actionType: "schedule-end",
@@ -23,12 +29,6 @@ import * as outputs from "./types/output";
23
29
  * "just-before",
24
30
  * "15-minutes-ago",
25
31
  * ],
26
- * steps: [{
27
- * contacts: [{
28
- * method: "email",
29
- * to: "example@user.com",
30
- * }],
31
- * }],
32
32
  * });
33
33
  * ```
34
34
  *
@@ -43,6 +43,12 @@ const utilities = __importStar(require("./utilities"));
43
43
  * role: "User",
44
44
  * });
45
45
  * const testNotificationRule = new opsgenie.NotificationRule("test", {
46
+ * steps: [{
47
+ * contacts: [{
48
+ * method: "email",
49
+ * to: "example@user.com",
50
+ * }],
51
+ * }],
46
52
  * name: "Example notification rule",
47
53
  * username: test.username,
48
54
  * actionType: "schedule-end",
@@ -50,12 +56,6 @@ const utilities = __importStar(require("./utilities"));
50
56
  * "just-before",
51
57
  * "15-minutes-ago",
52
58
  * ],
53
- * steps: [{
54
- * contacts: [{
55
- * method: "email",
56
- * to: "example@user.com",
57
- * }],
58
- * }],
59
59
  * });
60
60
  * ```
61
61
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/opsgenie",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A Pulumi package for creating and managing opsgenie cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "opsgenie",
26
- "version": "1.4.1"
26
+ "version": "1.4.2"
27
27
  }
28
28
  }
@@ -11,25 +11,25 @@ import * as outputs from "./types/output";
11
11
  * import * as opsgenie from "@pulumi/opsgenie";
12
12
  *
13
13
  * const test = new opsgenie.ScheduleRotation("test", {
14
- * scheduleId: testOpsgenieSchedule.id,
15
- * name: "test",
16
- * startDate: "2019-06-18T17:00:00Z",
17
- * endDate: "2019-06-20T17:30:00Z",
18
- * type: "hourly",
19
- * length: 6,
20
14
  * participants: [{
21
15
  * type: "user",
22
16
  * id: testOpsgenieUser.id,
23
17
  * }],
24
18
  * timeRestrictions: [{
25
- * type: "time-of-day",
26
19
  * restriction: [{
27
20
  * startHour: 1,
28
21
  * startMin: 1,
29
22
  * endHour: 10,
30
23
  * endMin: 1,
31
24
  * }],
25
+ * type: "time-of-day",
32
26
  * }],
27
+ * scheduleId: testOpsgenieSchedule.id,
28
+ * name: "test",
29
+ * startDate: "2019-06-18T17:00:00Z",
30
+ * endDate: "2019-06-20T17:30:00Z",
31
+ * type: "hourly",
32
+ * length: 6,
33
33
  * });
34
34
  * ```
35
35
  *
@@ -38,25 +38,25 @@ const utilities = __importStar(require("./utilities"));
38
38
  * import * as opsgenie from "@pulumi/opsgenie";
39
39
  *
40
40
  * const test = new opsgenie.ScheduleRotation("test", {
41
- * scheduleId: testOpsgenieSchedule.id,
42
- * name: "test",
43
- * startDate: "2019-06-18T17:00:00Z",
44
- * endDate: "2019-06-20T17:30:00Z",
45
- * type: "hourly",
46
- * length: 6,
47
41
  * participants: [{
48
42
  * type: "user",
49
43
  * id: testOpsgenieUser.id,
50
44
  * }],
51
45
  * timeRestrictions: [{
52
- * type: "time-of-day",
53
46
  * restriction: [{
54
47
  * startHour: 1,
55
48
  * startMin: 1,
56
49
  * endHour: 10,
57
50
  * endMin: 1,
58
51
  * }],
52
+ * type: "time-of-day",
59
53
  * }],
54
+ * scheduleId: testOpsgenieSchedule.id,
55
+ * name: "test",
56
+ * startDate: "2019-06-18T17:00:00Z",
57
+ * endDate: "2019-06-20T17:30:00Z",
58
+ * type: "hourly",
59
+ * length: 6,
60
60
  * });
61
61
  * ```
62
62
  *
@@ -19,9 +19,7 @@ import * as outputs from "./types/output";
19
19
  * teamId: test.id,
20
20
  * });
21
21
  * const testServiceIncidentRule = new opsgenie.ServiceIncidentRule("test", {
22
- * serviceId: testService.id,
23
22
  * incidentRules: [{
24
- * conditionMatchType: "match-any-condition",
25
23
  * conditions: [
26
24
  * {
27
25
  * field: "message",
@@ -37,14 +35,16 @@ import * as outputs from "./types/output";
37
35
  * },
38
36
  * ],
39
37
  * incidentProperties: [{
40
- * message: "This is a test message",
41
- * priority: "P3",
42
38
  * stakeholderProperties: [{
43
39
  * message: "Message for stakeholders",
44
40
  * enable: true,
45
41
  * }],
42
+ * message: "This is a test message",
43
+ * priority: "P3",
46
44
  * }],
45
+ * conditionMatchType: "match-any-condition",
47
46
  * }],
47
+ * serviceId: testService.id,
48
48
  * });
49
49
  * ```
50
50
  *
@@ -46,9 +46,7 @@ const utilities = __importStar(require("./utilities"));
46
46
  * teamId: test.id,
47
47
  * });
48
48
  * const testServiceIncidentRule = new opsgenie.ServiceIncidentRule("test", {
49
- * serviceId: testService.id,
50
49
  * incidentRules: [{
51
- * conditionMatchType: "match-any-condition",
52
50
  * conditions: [
53
51
  * {
54
52
  * field: "message",
@@ -64,14 +62,16 @@ const utilities = __importStar(require("./utilities"));
64
62
  * },
65
63
  * ],
66
64
  * incidentProperties: [{
67
- * message: "This is a test message",
68
- * priority: "P3",
69
65
  * stakeholderProperties: [{
70
66
  * message: "Message for stakeholders",
71
67
  * enable: true,
72
68
  * }],
69
+ * message: "This is a test message",
70
+ * priority: "P3",
73
71
  * }],
72
+ * conditionMatchType: "match-any-condition",
74
73
  * }],
74
+ * serviceId: testService.id,
75
75
  * });
76
76
  * ```
77
77
  *
package/team.d.ts CHANGED
@@ -21,8 +21,6 @@ import * as outputs from "./types/output";
21
21
  * role: "User",
22
22
  * });
23
23
  * const test = new opsgenie.Team("test", {
24
- * name: "example",
25
- * description: "This team deals with all the things",
26
24
  * members: [
27
25
  * {
28
26
  * id: first.id,
@@ -33,6 +31,8 @@ import * as outputs from "./types/output";
33
31
  * role: "user",
34
32
  * },
35
33
  * ],
34
+ * name: "example",
35
+ * description: "This team deals with all the things",
36
36
  * });
37
37
  * const self_service = new opsgenie.Team("self-service", {
38
38
  * name: "Self Service",
package/team.js CHANGED
@@ -48,8 +48,6 @@ const utilities = __importStar(require("./utilities"));
48
48
  * role: "User",
49
49
  * });
50
50
  * const test = new opsgenie.Team("test", {
51
- * name: "example",
52
- * description: "This team deals with all the things",
53
51
  * members: [
54
52
  * {
55
53
  * id: first.id,
@@ -60,6 +58,8 @@ const utilities = __importStar(require("./utilities"));
60
58
  * role: "user",
61
59
  * },
62
60
  * ],
61
+ * name: "example",
62
+ * description: "This team deals with all the things",
63
63
  * });
64
64
  * const self_service = new opsgenie.Team("self-service", {
65
65
  * name: "Self Service",
@@ -21,21 +21,20 @@ import * as outputs from "./types/output";
21
21
  * description: "This team deals with all the things",
22
22
  * });
23
23
  * const testTeamRoutingRule = new opsgenie.TeamRoutingRule("test", {
24
- * name: "routing rule example",
25
- * teamId: testTeam.id,
26
- * order: 0,
27
- * timezone: "America/Los_Angeles",
28
24
  * criterias: [{
29
- * type: "match-any-condition",
30
25
  * conditions: [{
31
26
  * field: "message",
32
27
  * operation: "contains",
33
28
  * expectedValue: "expected1",
34
29
  * not: false,
35
30
  * }],
31
+ * type: "match-any-condition",
32
+ * }],
33
+ * notifies: [{
34
+ * name: test.name,
35
+ * type: "schedule",
36
36
  * }],
37
37
  * timeRestrictions: [{
38
- * type: "weekday-and-time-of-day",
39
38
  * restrictionList: [{
40
39
  * startDay: "monday",
41
40
  * startHour: 8,
@@ -44,11 +43,12 @@ import * as outputs from "./types/output";
44
43
  * endHour: 18,
45
44
  * endMin: 30,
46
45
  * }],
46
+ * type: "weekday-and-time-of-day",
47
47
  * }],
48
- * notifies: [{
49
- * name: test.name,
50
- * type: "schedule",
51
- * }],
48
+ * name: "routing rule example",
49
+ * teamId: testTeam.id,
50
+ * order: 0,
51
+ * timezone: "America/Los_Angeles",
52
52
  * });
53
53
  * ```
54
54
  *
@@ -48,21 +48,20 @@ const utilities = __importStar(require("./utilities"));
48
48
  * description: "This team deals with all the things",
49
49
  * });
50
50
  * const testTeamRoutingRule = new opsgenie.TeamRoutingRule("test", {
51
- * name: "routing rule example",
52
- * teamId: testTeam.id,
53
- * order: 0,
54
- * timezone: "America/Los_Angeles",
55
51
  * criterias: [{
56
- * type: "match-any-condition",
57
52
  * conditions: [{
58
53
  * field: "message",
59
54
  * operation: "contains",
60
55
  * expectedValue: "expected1",
61
56
  * not: false,
62
57
  * }],
58
+ * type: "match-any-condition",
59
+ * }],
60
+ * notifies: [{
61
+ * name: test.name,
62
+ * type: "schedule",
63
63
  * }],
64
64
  * timeRestrictions: [{
65
- * type: "weekday-and-time-of-day",
66
65
  * restrictionList: [{
67
66
  * startDay: "monday",
68
67
  * startHour: 8,
@@ -71,11 +70,12 @@ const utilities = __importStar(require("./utilities"));
71
70
  * endHour: 18,
72
71
  * endMin: 30,
73
72
  * }],
73
+ * type: "weekday-and-time-of-day",
74
74
  * }],
75
- * notifies: [{
76
- * name: test.name,
77
- * type: "schedule",
78
- * }],
75
+ * name: "routing rule example",
76
+ * teamId: testTeam.id,
77
+ * order: 0,
78
+ * timezone: "America/Los_Angeles",
79
79
  * });
80
80
  * ```
81
81
  *
package/user.d.ts CHANGED
@@ -11,6 +11,13 @@ import * as outputs from "./types/output";
11
11
  * import * as opsgenie from "@pulumi/opsgenie";
12
12
  *
13
13
  * const test = new opsgenie.User("test", {
14
+ * userAddresses: [{
15
+ * country: "Country",
16
+ * state: "State",
17
+ * city: "City",
18
+ * line: "Line",
19
+ * zipcode: "998877",
20
+ * }],
14
21
  * username: "user@domain.com",
15
22
  * fullName: "Test User",
16
23
  * role: "User",
@@ -21,13 +28,6 @@ import * as outputs from "./types/output";
21
28
  * "opsgenie",
22
29
  * ],
23
30
  * skypeUsername: "skypename",
24
- * userAddresses: [{
25
- * country: "Country",
26
- * state: "State",
27
- * city: "City",
28
- * line: "Line",
29
- * zipcode: "998877",
30
- * }],
31
31
  * userDetails: {
32
32
  * key1: "val1,val2",
33
33
  * key2: "val3,val4",
package/user.js CHANGED
@@ -38,6 +38,13 @@ const utilities = __importStar(require("./utilities"));
38
38
  * import * as opsgenie from "@pulumi/opsgenie";
39
39
  *
40
40
  * const test = new opsgenie.User("test", {
41
+ * userAddresses: [{
42
+ * country: "Country",
43
+ * state: "State",
44
+ * city: "City",
45
+ * line: "Line",
46
+ * zipcode: "998877",
47
+ * }],
41
48
  * username: "user@domain.com",
42
49
  * fullName: "Test User",
43
50
  * role: "User",
@@ -48,13 +55,6 @@ const utilities = __importStar(require("./utilities"));
48
55
  * "opsgenie",
49
56
  * ],
50
57
  * skypeUsername: "skypename",
51
- * userAddresses: [{
52
- * country: "Country",
53
- * state: "State",
54
- * city: "City",
55
- * line: "Line",
56
- * zipcode: "998877",
57
- * }],
58
58
  * userDetails: {
59
59
  * key1: "val1,val2",
60
60
  * key2: "val3,val4",