@pulumi/opsgenie 1.3.6 → 1.3.8-alpha.1719261162
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 +9 -5
- package/alertPolicy.js +9 -5
- package/alertPolicy.js.map +1 -1
- package/apiIntegration.d.ts +0 -47
- package/apiIntegration.js +0 -47
- package/apiIntegration.js.map +1 -1
- package/customRole.d.ts +3 -3
- package/customRole.js +3 -3
- package/emailIntegration.d.ts +0 -44
- package/emailIntegration.js +0 -44
- package/emailIntegration.js.map +1 -1
- package/escalation.d.ts +16 -12
- package/escalation.js +16 -12
- package/escalation.js.map +1 -1
- package/heartbeat.d.ts +6 -5
- package/heartbeat.js +6 -5
- package/heartbeat.js.map +1 -1
- package/incidentTemplate.d.ts +28 -9
- package/incidentTemplate.js +10 -3
- package/incidentTemplate.js.map +1 -1
- package/integrationAction.d.ts +149 -0
- package/integrationAction.js +149 -0
- package/integrationAction.js.map +1 -1
- package/maintenance.d.ts +0 -23
- package/maintenance.js +0 -23
- package/maintenance.js.map +1 -1
- package/notificationPolicy.d.ts +8 -4
- package/notificationPolicy.js +8 -4
- package/notificationPolicy.js.map +1 -1
- package/notificationRule.d.ts +4 -12
- package/notificationRule.js +4 -3
- package/notificationRule.js.map +1 -1
- package/package.json +3 -2
- package/schedule.d.ts +0 -14
- package/schedule.js +0 -14
- package/schedule.js.map +1 -1
- package/scheduleRotation.d.ts +8 -7
- package/scheduleRotation.js +8 -7
- package/scheduleRotation.js.map +1 -1
- package/service.d.ts +8 -2
- package/service.js +8 -2
- package/service.js.map +1 -1
- package/serviceIncidentRule.d.ts +9 -3
- package/serviceIncidentRule.js +9 -3
- package/serviceIncidentRule.js.map +1 -1
- package/team.d.ts +5 -3
- package/team.js +5 -3
- package/team.js.map +1 -1
- package/teamRoutingRule.d.ts +23 -18
- package/teamRoutingRule.js +23 -18
- package/teamRoutingRule.js.map +1 -1
- package/types/input.d.ts +5 -93
- package/types/output.d.ts +5 -93
- package/user.d.ts +6 -6
- package/user.js +6 -6
- package/userContact.d.ts +6 -6
- package/userContact.js +6 -6
- package/package.json.bak +0 -27
package/alertPolicy.d.ts
CHANGED
|
@@ -10,12 +10,16 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
12
12
|
*
|
|
13
|
-
* const
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* const test = new opsgenie.Team("test", {
|
|
14
|
+
* name: "example team",
|
|
15
|
+
* description: "This team deals with all the things",
|
|
16
|
+
* });
|
|
17
|
+
* const testAlertPolicy = new opsgenie.AlertPolicy("test", {
|
|
18
|
+
* filters: [{}],
|
|
19
|
+
* name: "example policy",
|
|
20
|
+
* teamId: test.id,
|
|
16
21
|
* policyDescription: "This is sample policy",
|
|
17
22
|
* message: "{{message}}",
|
|
18
|
-
* filters: [{}],
|
|
19
23
|
* timeRestrictions: [{
|
|
20
24
|
* type: "weekday-and-time-of-day",
|
|
21
25
|
* restrictionList: [
|
|
@@ -48,7 +52,7 @@ import * as outputs from "./types/output";
|
|
|
48
52
|
* $ pulumi import opsgenie:index/alertPolicy:AlertPolicy test team_id/policy_id`
|
|
49
53
|
* ```
|
|
50
54
|
*
|
|
51
|
-
*
|
|
55
|
+
* You can import global polices using only policy identifier
|
|
52
56
|
*
|
|
53
57
|
* ```sh
|
|
54
58
|
* $ pulumi import opsgenie:index/alertPolicy:AlertPolicy test policy_id`
|
package/alertPolicy.js
CHANGED
|
@@ -14,12 +14,16 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
16
16
|
*
|
|
17
|
-
* const
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* const test = new opsgenie.Team("test", {
|
|
18
|
+
* name: "example team",
|
|
19
|
+
* description: "This team deals with all the things",
|
|
20
|
+
* });
|
|
21
|
+
* const testAlertPolicy = new opsgenie.AlertPolicy("test", {
|
|
22
|
+
* filters: [{}],
|
|
23
|
+
* name: "example policy",
|
|
24
|
+
* teamId: test.id,
|
|
20
25
|
* policyDescription: "This is sample policy",
|
|
21
26
|
* message: "{{message}}",
|
|
22
|
-
* filters: [{}],
|
|
23
27
|
* timeRestrictions: [{
|
|
24
28
|
* type: "weekday-and-time-of-day",
|
|
25
29
|
* restrictionList: [
|
|
@@ -52,7 +56,7 @@ const utilities = require("./utilities");
|
|
|
52
56
|
* $ pulumi import opsgenie:index/alertPolicy:AlertPolicy test team_id/policy_id`
|
|
53
57
|
* ```
|
|
54
58
|
*
|
|
55
|
-
*
|
|
59
|
+
* You can import global polices using only policy identifier
|
|
56
60
|
*
|
|
57
61
|
* ```sh
|
|
58
62
|
* $ pulumi import opsgenie:index/alertPolicy:AlertPolicy test policy_id`
|
package/alertPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertPolicy.js","sourceRoot":"","sources":["../alertPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"alertPolicy.js","sourceRoot":"","sources":["../alertPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CA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AAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA1KL,kCA2KC;AA7JG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
|
package/apiIntegration.d.ts
CHANGED
|
@@ -4,53 +4,6 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages an API Integration within Opsgenie.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as opsgenie from "@pulumi/opsgenie";
|
|
12
|
-
*
|
|
13
|
-
* const example_api_integrationApiIntegration = new opsgenie.ApiIntegration("example-api-integrationApiIntegration", {
|
|
14
|
-
* type: "API",
|
|
15
|
-
* responders: [
|
|
16
|
-
* {
|
|
17
|
-
* type: "user",
|
|
18
|
-
* id: opsgenie_user.user.id,
|
|
19
|
-
* },
|
|
20
|
-
* {
|
|
21
|
-
* type: "user",
|
|
22
|
-
* id: opsgenie_user.fahri.id,
|
|
23
|
-
* },
|
|
24
|
-
* ],
|
|
25
|
-
* });
|
|
26
|
-
* const example_api_integrationIndex_apiIntegrationApiIntegration = new opsgenie.ApiIntegration("example-api-integrationIndex/apiIntegrationApiIntegration", {
|
|
27
|
-
* type: "Prometheus",
|
|
28
|
-
* responders: [{
|
|
29
|
-
* type: "user",
|
|
30
|
-
* id: opsgenie_user.user.id,
|
|
31
|
-
* }],
|
|
32
|
-
* enabled: false,
|
|
33
|
-
* allowWriteAccess: false,
|
|
34
|
-
* ignoreRespondersFromPayload: true,
|
|
35
|
-
* suppressNotifications: true,
|
|
36
|
-
* ownerTeamId: opsgenie_team.team.id,
|
|
37
|
-
* });
|
|
38
|
-
* const test3 = new opsgenie.ApiIntegration("test3", {
|
|
39
|
-
* type: "Webhook",
|
|
40
|
-
* responders: [{
|
|
41
|
-
* type: "user",
|
|
42
|
-
* id: opsgenie_user.user.id,
|
|
43
|
-
* }],
|
|
44
|
-
* enabled: false,
|
|
45
|
-
* allowWriteAccess: false,
|
|
46
|
-
* suppressNotifications: true,
|
|
47
|
-
* webhookUrl: "https://api.example.com/v1",
|
|
48
|
-
* headers: {
|
|
49
|
-
* header1: value1,
|
|
50
|
-
* },
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
7
|
* ## Import
|
|
55
8
|
*
|
|
56
9
|
* API Integrations can be imported using the `integration_id`, e.g.
|
package/apiIntegration.js
CHANGED
|
@@ -8,53 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages an API Integration within Opsgenie.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as opsgenie from "@pulumi/opsgenie";
|
|
16
|
-
*
|
|
17
|
-
* const example_api_integrationApiIntegration = new opsgenie.ApiIntegration("example-api-integrationApiIntegration", {
|
|
18
|
-
* type: "API",
|
|
19
|
-
* responders: [
|
|
20
|
-
* {
|
|
21
|
-
* type: "user",
|
|
22
|
-
* id: opsgenie_user.user.id,
|
|
23
|
-
* },
|
|
24
|
-
* {
|
|
25
|
-
* type: "user",
|
|
26
|
-
* id: opsgenie_user.fahri.id,
|
|
27
|
-
* },
|
|
28
|
-
* ],
|
|
29
|
-
* });
|
|
30
|
-
* const example_api_integrationIndex_apiIntegrationApiIntegration = new opsgenie.ApiIntegration("example-api-integrationIndex/apiIntegrationApiIntegration", {
|
|
31
|
-
* type: "Prometheus",
|
|
32
|
-
* responders: [{
|
|
33
|
-
* type: "user",
|
|
34
|
-
* id: opsgenie_user.user.id,
|
|
35
|
-
* }],
|
|
36
|
-
* enabled: false,
|
|
37
|
-
* allowWriteAccess: false,
|
|
38
|
-
* ignoreRespondersFromPayload: true,
|
|
39
|
-
* suppressNotifications: true,
|
|
40
|
-
* ownerTeamId: opsgenie_team.team.id,
|
|
41
|
-
* });
|
|
42
|
-
* const test3 = new opsgenie.ApiIntegration("test3", {
|
|
43
|
-
* type: "Webhook",
|
|
44
|
-
* responders: [{
|
|
45
|
-
* type: "user",
|
|
46
|
-
* id: opsgenie_user.user.id,
|
|
47
|
-
* }],
|
|
48
|
-
* enabled: false,
|
|
49
|
-
* allowWriteAccess: false,
|
|
50
|
-
* suppressNotifications: true,
|
|
51
|
-
* webhookUrl: "https://api.example.com/v1",
|
|
52
|
-
* headers: {
|
|
53
|
-
* header1: value1,
|
|
54
|
-
* },
|
|
55
|
-
* });
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
11
|
* ## Import
|
|
59
12
|
*
|
|
60
13
|
* API Integrations can be imported using the `integration_id`, e.g.
|
package/apiIntegration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiIntegration.js","sourceRoot":"","sources":["../apiIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"apiIntegration.js","sourceRoot":"","sources":["../apiIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2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AAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAhHL,wCAiHC;AAnGG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
|
package/customRole.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
10
10
|
*
|
|
11
11
|
* const test = new opsgenie.CustomRole("test", {
|
|
12
|
+
* roleName: "genierole",
|
|
13
|
+
* extendedRole: "user",
|
|
14
|
+
* grantedRights: ["alert-delete"],
|
|
12
15
|
* disallowedRights: [
|
|
13
16
|
* "profile-edit",
|
|
14
17
|
* "contacts-edit",
|
|
15
18
|
* ],
|
|
16
|
-
* extendedRole: "user",
|
|
17
|
-
* grantedRights: ["alert-delete"],
|
|
18
|
-
* roleName: "genierole",
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
package/customRole.js
CHANGED
|
@@ -15,13 +15,13 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
16
16
|
*
|
|
17
17
|
* const test = new opsgenie.CustomRole("test", {
|
|
18
|
+
* roleName: "genierole",
|
|
19
|
+
* extendedRole: "user",
|
|
20
|
+
* grantedRights: ["alert-delete"],
|
|
18
21
|
* disallowedRights: [
|
|
19
22
|
* "profile-edit",
|
|
20
23
|
* "contacts-edit",
|
|
21
24
|
* ],
|
|
22
|
-
* extendedRole: "user",
|
|
23
|
-
* grantedRights: ["alert-delete"],
|
|
24
|
-
* roleName: "genierole",
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
package/emailIntegration.d.ts
CHANGED
|
@@ -4,50 +4,6 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages an Email Integration within Opsgenie.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as opsgenie from "@pulumi/opsgenie";
|
|
12
|
-
*
|
|
13
|
-
* const testEmailIntegration = new opsgenie.EmailIntegration("testEmailIntegration", {emailUsername: "fahri"});
|
|
14
|
-
* const testIndex_emailIntegrationEmailIntegration = new opsgenie.EmailIntegration("testIndex/emailIntegrationEmailIntegration", {
|
|
15
|
-
* responders: [
|
|
16
|
-
* {
|
|
17
|
-
* type: "user",
|
|
18
|
-
* id: opsgenie_user.test.id,
|
|
19
|
-
* },
|
|
20
|
-
* {
|
|
21
|
-
* type: "schedule",
|
|
22
|
-
* id: opsgenie_schedule.test.id,
|
|
23
|
-
* },
|
|
24
|
-
* {
|
|
25
|
-
* type: "escalation",
|
|
26
|
-
* id: opsgenie_escalation.test.id,
|
|
27
|
-
* },
|
|
28
|
-
* {
|
|
29
|
-
* type: "team",
|
|
30
|
-
* id: opsgenie_team.test2.id,
|
|
31
|
-
* },
|
|
32
|
-
* ],
|
|
33
|
-
* emailUsername: "test",
|
|
34
|
-
* enabled: true,
|
|
35
|
-
* ignoreRespondersFromPayload: true,
|
|
36
|
-
* suppressNotifications: true,
|
|
37
|
-
* });
|
|
38
|
-
* const testOpsgenieIndex_emailIntegrationEmailIntegration = new opsgenie.EmailIntegration("testOpsgenieIndex/emailIntegrationEmailIntegration", {
|
|
39
|
-
* responders: [{
|
|
40
|
-
* type: "user",
|
|
41
|
-
* id: opsgenie_user.test.id,
|
|
42
|
-
* }],
|
|
43
|
-
* emailUsername: "test",
|
|
44
|
-
* enabled: true,
|
|
45
|
-
* ignoreRespondersFromPayload: true,
|
|
46
|
-
* suppressNotifications: true,
|
|
47
|
-
* ownerTeamId: opsgenie_team_genies.id,
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
7
|
* ## Import
|
|
52
8
|
*
|
|
53
9
|
* Email Integrations can be imported using the `id`, e.g.
|
package/emailIntegration.js
CHANGED
|
@@ -8,50 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages an Email Integration within Opsgenie.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as opsgenie from "@pulumi/opsgenie";
|
|
16
|
-
*
|
|
17
|
-
* const testEmailIntegration = new opsgenie.EmailIntegration("testEmailIntegration", {emailUsername: "fahri"});
|
|
18
|
-
* const testIndex_emailIntegrationEmailIntegration = new opsgenie.EmailIntegration("testIndex/emailIntegrationEmailIntegration", {
|
|
19
|
-
* responders: [
|
|
20
|
-
* {
|
|
21
|
-
* type: "user",
|
|
22
|
-
* id: opsgenie_user.test.id,
|
|
23
|
-
* },
|
|
24
|
-
* {
|
|
25
|
-
* type: "schedule",
|
|
26
|
-
* id: opsgenie_schedule.test.id,
|
|
27
|
-
* },
|
|
28
|
-
* {
|
|
29
|
-
* type: "escalation",
|
|
30
|
-
* id: opsgenie_escalation.test.id,
|
|
31
|
-
* },
|
|
32
|
-
* {
|
|
33
|
-
* type: "team",
|
|
34
|
-
* id: opsgenie_team.test2.id,
|
|
35
|
-
* },
|
|
36
|
-
* ],
|
|
37
|
-
* emailUsername: "test",
|
|
38
|
-
* enabled: true,
|
|
39
|
-
* ignoreRespondersFromPayload: true,
|
|
40
|
-
* suppressNotifications: true,
|
|
41
|
-
* });
|
|
42
|
-
* const testOpsgenieIndex_emailIntegrationEmailIntegration = new opsgenie.EmailIntegration("testOpsgenieIndex/emailIntegrationEmailIntegration", {
|
|
43
|
-
* responders: [{
|
|
44
|
-
* type: "user",
|
|
45
|
-
* id: opsgenie_user.test.id,
|
|
46
|
-
* }],
|
|
47
|
-
* emailUsername: "test",
|
|
48
|
-
* enabled: true,
|
|
49
|
-
* ignoreRespondersFromPayload: true,
|
|
50
|
-
* suppressNotifications: true,
|
|
51
|
-
* ownerTeamId: opsgenie_team_genies.id,
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
11
|
* ## Import
|
|
56
12
|
*
|
|
57
13
|
* Email Integrations can be imported using the `id`, e.g.
|
package/emailIntegration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailIntegration.js","sourceRoot":"","sources":["../emailIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"emailIntegration.js","sourceRoot":"","sources":["../emailIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;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C,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAzFL,4CA0FC;AA5EG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
|
package/escalation.d.ts
CHANGED
|
@@ -12,15 +12,18 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
14
14
|
*
|
|
15
|
-
* const _default = new opsgenie.Escalation("default", {
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
15
|
+
* const _default = new opsgenie.Escalation("default", {
|
|
16
|
+
* name: "genieescalation",
|
|
17
|
+
* rules: [{
|
|
18
|
+
* condition: "if-not-acked",
|
|
19
|
+
* notifyType: "default",
|
|
20
|
+
* delay: 1,
|
|
21
|
+
* recipients: [{
|
|
22
|
+
* type: "user",
|
|
23
|
+
* id: test.id,
|
|
24
|
+
* }],
|
|
22
25
|
* }],
|
|
23
|
-
* }
|
|
26
|
+
* });
|
|
24
27
|
* ```
|
|
25
28
|
*
|
|
26
29
|
* An escalation with a multiple rules
|
|
@@ -30,8 +33,9 @@ import * as outputs from "./types/output";
|
|
|
30
33
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
31
34
|
*
|
|
32
35
|
* const _default = new opsgenie.Escalation("default", {
|
|
36
|
+
* name: "genieescalation",
|
|
33
37
|
* description: "test",
|
|
34
|
-
* ownerTeamId:
|
|
38
|
+
* ownerTeamId: testOpsgenieTeam.id,
|
|
35
39
|
* rules: [
|
|
36
40
|
* {
|
|
37
41
|
* condition: "if-not-acked",
|
|
@@ -39,7 +43,7 @@ import * as outputs from "./types/output";
|
|
|
39
43
|
* delay: 1,
|
|
40
44
|
* recipients: [{
|
|
41
45
|
* type: "user",
|
|
42
|
-
* id:
|
|
46
|
+
* id: test.id,
|
|
43
47
|
* }],
|
|
44
48
|
* },
|
|
45
49
|
* {
|
|
@@ -48,7 +52,7 @@ import * as outputs from "./types/output";
|
|
|
48
52
|
* delay: 1,
|
|
49
53
|
* recipients: [{
|
|
50
54
|
* type: "team",
|
|
51
|
-
* id:
|
|
55
|
+
* id: testOpsgenieTeam.id,
|
|
52
56
|
* }],
|
|
53
57
|
* },
|
|
54
58
|
* {
|
|
@@ -57,7 +61,7 @@ import * as outputs from "./types/output";
|
|
|
57
61
|
* delay: 1,
|
|
58
62
|
* recipients: [{
|
|
59
63
|
* type: "schedule",
|
|
60
|
-
* id:
|
|
64
|
+
* id: testOpsgenieSchedule.id,
|
|
61
65
|
* }],
|
|
62
66
|
* },
|
|
63
67
|
* ],
|
package/escalation.js
CHANGED
|
@@ -16,15 +16,18 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
18
18
|
*
|
|
19
|
-
* const _default = new opsgenie.Escalation("default", {
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
19
|
+
* const _default = new opsgenie.Escalation("default", {
|
|
20
|
+
* name: "genieescalation",
|
|
21
|
+
* rules: [{
|
|
22
|
+
* condition: "if-not-acked",
|
|
23
|
+
* notifyType: "default",
|
|
24
|
+
* delay: 1,
|
|
25
|
+
* recipients: [{
|
|
26
|
+
* type: "user",
|
|
27
|
+
* id: test.id,
|
|
28
|
+
* }],
|
|
26
29
|
* }],
|
|
27
|
-
* }
|
|
30
|
+
* });
|
|
28
31
|
* ```
|
|
29
32
|
*
|
|
30
33
|
* An escalation with a multiple rules
|
|
@@ -34,8 +37,9 @@ const utilities = require("./utilities");
|
|
|
34
37
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
35
38
|
*
|
|
36
39
|
* const _default = new opsgenie.Escalation("default", {
|
|
40
|
+
* name: "genieescalation",
|
|
37
41
|
* description: "test",
|
|
38
|
-
* ownerTeamId:
|
|
42
|
+
* ownerTeamId: testOpsgenieTeam.id,
|
|
39
43
|
* rules: [
|
|
40
44
|
* {
|
|
41
45
|
* condition: "if-not-acked",
|
|
@@ -43,7 +47,7 @@ const utilities = require("./utilities");
|
|
|
43
47
|
* delay: 1,
|
|
44
48
|
* recipients: [{
|
|
45
49
|
* type: "user",
|
|
46
|
-
* id:
|
|
50
|
+
* id: test.id,
|
|
47
51
|
* }],
|
|
48
52
|
* },
|
|
49
53
|
* {
|
|
@@ -52,7 +56,7 @@ const utilities = require("./utilities");
|
|
|
52
56
|
* delay: 1,
|
|
53
57
|
* recipients: [{
|
|
54
58
|
* type: "team",
|
|
55
|
-
* id:
|
|
59
|
+
* id: testOpsgenieTeam.id,
|
|
56
60
|
* }],
|
|
57
61
|
* },
|
|
58
62
|
* {
|
|
@@ -61,7 +65,7 @@ const utilities = require("./utilities");
|
|
|
61
65
|
* delay: 1,
|
|
62
66
|
* recipients: [{
|
|
63
67
|
* type: "schedule",
|
|
64
|
-
* id:
|
|
68
|
+
* id: testOpsgenieSchedule.id,
|
|
65
69
|
* }],
|
|
66
70
|
* },
|
|
67
71
|
* ],
|
package/escalation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escalation.js","sourceRoot":"","sources":["../escalation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"escalation.js","sourceRoot":"","sources":["../escalation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;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genie.Heartbeat("test", {
|
|
12
|
+
* name: "genieheartbeat-test",
|
|
13
|
+
* description: "test opsgenie heartbeat terraform",
|
|
14
|
+
* intervalUnit: "minutes",
|
|
15
|
+
* interval: 10,
|
|
16
|
+
* enabled: false,
|
|
12
17
|
* alertMessage: "Test",
|
|
13
18
|
* alertPriority: "P3",
|
|
14
19
|
* alertTags: [
|
|
15
20
|
* "test",
|
|
16
21
|
* "fahri",
|
|
17
22
|
* ],
|
|
18
|
-
*
|
|
19
|
-
* enabled: false,
|
|
20
|
-
* interval: 10,
|
|
21
|
-
* intervalUnit: "minutes",
|
|
22
|
-
* ownerTeamId: opsgenie_team.test.id,
|
|
23
|
+
* ownerTeamId: testOpsgenieTeam.id,
|
|
23
24
|
* });
|
|
24
25
|
* ```
|
|
25
26
|
*
|
package/heartbeat.js
CHANGED
|
@@ -15,17 +15,18 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as opsgenie from "@pulumi/opsgenie";
|
|
16
16
|
*
|
|
17
17
|
* const test = new opsgenie.Heartbeat("test", {
|
|
18
|
+
* name: "genieheartbeat-test",
|
|
19
|
+
* description: "test opsgenie heartbeat terraform",
|
|
20
|
+
* intervalUnit: "minutes",
|
|
21
|
+
* interval: 10,
|
|
22
|
+
* enabled: false,
|
|
18
23
|
* alertMessage: "Test",
|
|
19
24
|
* alertPriority: "P3",
|
|
20
25
|
* alertTags: [
|
|
21
26
|
* "test",
|
|
22
27
|
* "fahri",
|
|
23
28
|
* ],
|
|
24
|
-
*
|
|
25
|
-
* enabled: false,
|
|
26
|
-
* interval: 10,
|
|
27
|
-
* intervalUnit: "minutes",
|
|
28
|
-
* ownerTeamId: opsgenie_team.test.id,
|
|
29
|
+
* ownerTeamId: testOpsgenieTeam.id,
|
|
29
30
|
* });
|
|
30
31
|
* ```
|
|
31
32
|
*
|
package/heartbeat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heartbeat.js","sourceRoot":"","sources":["../heartbe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