@pulumi/opsgenie 1.2.4 → 1.2.6

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.
@@ -12,136 +12,6 @@ import * as outputs from "./types/output";
12
12
  * * `acknowledge`
13
13
  * * `addNote`
14
14
  * * `ignore`
15
- *
16
- * ## Example Usage
17
- *
18
- * ```typescript
19
- * import * as pulumi from "@pulumi/pulumi";
20
- * import * as opsgenie from "@pulumi/opsgenie";
21
- *
22
- * const testAction = new opsgenie.IntegrationAction("testAction", {
23
- * integrationId: opsgenie_api_integration.test.id,
24
- * creates: [
25
- * {
26
- * name: "create action",
27
- * tags: [
28
- * "CRITICAL",
29
- * "SEV-0",
30
- * ],
31
- * user: "Example-service",
32
- * note: "{{note}}",
33
- * alias: "{{alias}}",
34
- * source: "{{source}}",
35
- * message: "{{message}}",
36
- * description: "{{description}}",
37
- * entity: "{{entity}}",
38
- * alertActions: ["Runbook ID#342"],
39
- * filters: [{
40
- * type: "match-all-conditions",
41
- * conditions: [{
42
- * field: "priority",
43
- * operation: "equals",
44
- * expectedValue: "P1",
45
- * }],
46
- * }],
47
- * responders: [{
48
- * id: opsgenie_team.test.id,
49
- * type: "team",
50
- * }],
51
- * },
52
- * {
53
- * name: "Create medium priority alerts",
54
- * tags: [
55
- * "SEVERE",
56
- * "SEV-1",
57
- * ],
58
- * priority: "P3",
59
- * filters: [{
60
- * type: "match-all-conditions",
61
- * conditions: [{
62
- * field: "priority",
63
- * operation: "equals",
64
- * expectedValue: "P2",
65
- * }],
66
- * }],
67
- * },
68
- * {
69
- * name: "Create alert with priority from message",
70
- * customPriority: "{{message.substringAfter(\"[custom]\")}}",
71
- * filters: [{
72
- * type: "match-all-conditions",
73
- * conditions: [
74
- * {
75
- * field: "tags",
76
- * operation: "contains",
77
- * expectedValue: "P5",
78
- * },
79
- * {
80
- * field: "message",
81
- * operation: "starts-with",
82
- * expectedValue: "[custom]",
83
- * },
84
- * ],
85
- * }],
86
- * },
87
- * ],
88
- * closes: [{
89
- * name: "Low priority alerts",
90
- * filters: [{
91
- * type: "match-any-condition",
92
- * conditions: [
93
- * {
94
- * field: "priority",
95
- * operation: "equals",
96
- * expectedValue: "P5",
97
- * },
98
- * {
99
- * field: "message",
100
- * operation: "contains",
101
- * expectedValue: "DEBUG",
102
- * },
103
- * ],
104
- * }],
105
- * }],
106
- * acknowledges: [{
107
- * name: "Auto-ack test alerts",
108
- * filters: [{
109
- * type: "match-all-conditions",
110
- * conditions: [
111
- * {
112
- * field: "message",
113
- * not: true,
114
- * operation: "contains",
115
- * expectedValue: "TEST",
116
- * },
117
- * {
118
- * field: "priority",
119
- * operation: "equals",
120
- * expectedValue: "P5",
121
- * },
122
- * ],
123
- * }],
124
- * }],
125
- * addNotes: [{
126
- * name: "Add note to all alerts",
127
- * note: "Created from test integration",
128
- * filters: [{
129
- * type: "match-all",
130
- * }],
131
- * }],
132
- * ignores: [{
133
- * name: "Ignore alerts with ignore tag",
134
- * filters: [{
135
- * type: "match-all-conditions",
136
- * conditions: [{
137
- * field: "tags",
138
- * operation: "contains",
139
- * expectedValue: "ignore",
140
- * }],
141
- * }],
142
- * }],
143
- * });
144
- * ```
145
15
  */
146
16
  export declare class IntegrationAction extends pulumi.CustomResource {
147
17
  /**
@@ -16,136 +16,6 @@ const utilities = require("./utilities");
16
16
  * * `acknowledge`
17
17
  * * `addNote`
18
18
  * * `ignore`
19
- *
20
- * ## Example Usage
21
- *
22
- * ```typescript
23
- * import * as pulumi from "@pulumi/pulumi";
24
- * import * as opsgenie from "@pulumi/opsgenie";
25
- *
26
- * const testAction = new opsgenie.IntegrationAction("testAction", {
27
- * integrationId: opsgenie_api_integration.test.id,
28
- * creates: [
29
- * {
30
- * name: "create action",
31
- * tags: [
32
- * "CRITICAL",
33
- * "SEV-0",
34
- * ],
35
- * user: "Example-service",
36
- * note: "{{note}}",
37
- * alias: "{{alias}}",
38
- * source: "{{source}}",
39
- * message: "{{message}}",
40
- * description: "{{description}}",
41
- * entity: "{{entity}}",
42
- * alertActions: ["Runbook ID#342"],
43
- * filters: [{
44
- * type: "match-all-conditions",
45
- * conditions: [{
46
- * field: "priority",
47
- * operation: "equals",
48
- * expectedValue: "P1",
49
- * }],
50
- * }],
51
- * responders: [{
52
- * id: opsgenie_team.test.id,
53
- * type: "team",
54
- * }],
55
- * },
56
- * {
57
- * name: "Create medium priority alerts",
58
- * tags: [
59
- * "SEVERE",
60
- * "SEV-1",
61
- * ],
62
- * priority: "P3",
63
- * filters: [{
64
- * type: "match-all-conditions",
65
- * conditions: [{
66
- * field: "priority",
67
- * operation: "equals",
68
- * expectedValue: "P2",
69
- * }],
70
- * }],
71
- * },
72
- * {
73
- * name: "Create alert with priority from message",
74
- * customPriority: "{{message.substringAfter(\"[custom]\")}}",
75
- * filters: [{
76
- * type: "match-all-conditions",
77
- * conditions: [
78
- * {
79
- * field: "tags",
80
- * operation: "contains",
81
- * expectedValue: "P5",
82
- * },
83
- * {
84
- * field: "message",
85
- * operation: "starts-with",
86
- * expectedValue: "[custom]",
87
- * },
88
- * ],
89
- * }],
90
- * },
91
- * ],
92
- * closes: [{
93
- * name: "Low priority alerts",
94
- * filters: [{
95
- * type: "match-any-condition",
96
- * conditions: [
97
- * {
98
- * field: "priority",
99
- * operation: "equals",
100
- * expectedValue: "P5",
101
- * },
102
- * {
103
- * field: "message",
104
- * operation: "contains",
105
- * expectedValue: "DEBUG",
106
- * },
107
- * ],
108
- * }],
109
- * }],
110
- * acknowledges: [{
111
- * name: "Auto-ack test alerts",
112
- * filters: [{
113
- * type: "match-all-conditions",
114
- * conditions: [
115
- * {
116
- * field: "message",
117
- * not: true,
118
- * operation: "contains",
119
- * expectedValue: "TEST",
120
- * },
121
- * {
122
- * field: "priority",
123
- * operation: "equals",
124
- * expectedValue: "P5",
125
- * },
126
- * ],
127
- * }],
128
- * }],
129
- * addNotes: [{
130
- * name: "Add note to all alerts",
131
- * note: "Created from test integration",
132
- * filters: [{
133
- * type: "match-all",
134
- * }],
135
- * }],
136
- * ignores: [{
137
- * name: "Ignore alerts with ignore tag",
138
- * filters: [{
139
- * type: "match-all-conditions",
140
- * conditions: [{
141
- * field: "tags",
142
- * operation: "contains",
143
- * expectedValue: "ignore",
144
- * }],
145
- * }],
146
- * }],
147
- * });
148
- * ```
149
19
  */
150
20
  class IntegrationAction extends pulumi.CustomResource {
151
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"integrationAction.js","sourceRoot":"","sources":["../integrationAction.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6IG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAoBD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CA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,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAvEL,8CAwEC;AA1DG,gBAAgB;AACO,8BAAY,GAAG,oDAAoD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/opsgenie",
3
- "version": "v1.2.4",
3
+ "version": "v1.2.6",
4
4
  "description": "A Pulumi package for creating and managing opsgenie 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 opsgenie v1.2.4"
14
+ "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.2.6"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "name": "@pulumi/opsgenie",
3
- "version": "v1.2.4",
4
- "description": "A Pulumi package for creating and managing opsgenie cloud resources.",
5
- "keywords": [
6
- "pulumi",
7
- "opsgenie"
8
- ],
9
- "homepage": "https://pulumi.io",
10
- "repository": "https://github.com/pulumi/pulumi-opsgenie",
11
- "license": "Apache-2.0",
12
- "scripts": {
13
- "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.2.4"
15
- },
16
- "dependencies": {
17
- "@pulumi/pulumi": "^3.0.0"
18
- },
19
- "devDependencies": {
20
- "@types/mime": "^2.0.0",
21
- "@types/node": "^10.0.0",
22
- "typescript": "^4.3.5"
23
- },
24
- "pulumi": {
25
- "resource": true,
26
- "name": "opsgenie"
27
- }
28
- }