@pulumiverse/grafana 0.18.0 → 0.19.0
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/cloud/getStack.d.ts +4 -0
- package/cloud/getStack.js.map +1 -1
- package/cloud/providerAwsCloudwatchScrapeJob.d.ts +6 -6
- package/cloud/stack.d.ts +8 -0
- package/cloud/stack.js +2 -0
- package/cloud/stack.js.map +1 -1
- package/cloudStack.d.ts +8 -0
- package/cloudStack.js +2 -0
- package/cloudStack.js.map +1 -1
- package/cloudprovider/awsCloudwatchScrapeJob.d.ts +6 -6
- package/cloudprovider/awsResourceMetadataScrapeJob.d.ts +3 -3
- package/enterprise/index.d.ts +3 -0
- package/enterprise/index.js +6 -1
- package/enterprise/index.js.map +1 -1
- package/enterprise/scimConfig.d.ts +87 -0
- package/enterprise/scimConfig.js +74 -0
- package/enterprise/scimConfig.js.map +1 -0
- package/frontendobservability/app.d.ts +3 -3
- package/getCloudStack.d.ts +4 -0
- package/getCloudStack.js.map +1 -1
- package/getOncallIntegration.d.ts +4 -0
- package/getOncallIntegration.js.map +1 -1
- package/getOncallTeam.d.ts +10 -4
- package/getOncallTeam.js +10 -4
- package/getOncallTeam.js.map +1 -1
- package/k6/getLoadTest.d.ts +11 -11
- package/k6/getLoadTest.js +6 -6
- package/k6/getLoadTests.d.ts +16 -16
- package/k6/getLoadTests.js +12 -12
- package/k6/getProject.d.ts +9 -9
- package/k6/getProject.js +6 -6
- package/k6/getProjectLimits.d.ts +10 -10
- package/k6/getProjectLimits.js +6 -6
- package/k6/getProjects.d.ts +0 -2
- package/k6/getProjects.js +0 -2
- package/k6/getProjects.js.map +1 -1
- package/k6/loadTest.d.ts +6 -6
- package/k6/projectLimits.d.ts +3 -3
- package/oncall/escalationChain.d.ts +13 -4
- package/oncall/escalationChain.js +10 -1
- package/oncall/escalationChain.js.map +1 -1
- package/oncall/getIntegration.d.ts +4 -0
- package/oncall/getIntegration.js.map +1 -1
- package/oncall/getTeam.d.ts +10 -4
- package/oncall/getTeam.js +10 -4
- package/oncall/getTeam.js.map +1 -1
- package/oncall/integration.d.ts +24 -36
- package/oncall/integration.js +2 -30
- package/oncall/integration.js.map +1 -1
- package/oncall/onCallShift.d.ts +3 -3
- package/oncall/outgoingWebhook.d.ts +10 -3
- package/oncall/outgoingWebhook.js +7 -0
- package/oncall/outgoingWebhook.js.map +1 -1
- package/oncall/schedule.d.ts +6 -6
- package/oncallEscalationChain.d.ts +13 -4
- package/oncallEscalationChain.js +10 -1
- package/oncallEscalationChain.js.map +1 -1
- package/oncallIntegration.d.ts +24 -36
- package/oncallIntegration.js +2 -30
- package/oncallIntegration.js.map +1 -1
- package/oncallOnCallShift.d.ts +3 -3
- package/oncallOutgoingWebhook.d.ts +10 -3
- package/oncallOutgoingWebhook.js +7 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/oncallSchedule.d.ts +6 -6
- package/package.json +2 -2
- package/syntheticMonitoringCheck.d.ts +3 -3
- package/syntheticmonitoring/check.d.ts +3 -3
- package/syntheticmonitoring/checkAlerts.d.ts +109 -0
- package/syntheticmonitoring/checkAlerts.js +104 -0
- package/syntheticmonitoring/checkAlerts.js.map +1 -0
- package/syntheticmonitoring/index.d.ts +3 -0
- package/syntheticmonitoring/index.js +6 -1
- package/syntheticmonitoring/index.js.map +1 -1
- package/types/input.d.ts +35 -5
- package/types/output.d.ts +39 -9
package/oncall/getTeam.d.ts
CHANGED
|
@@ -6,9 +6,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as grafana from "@pulumiverse/grafana";
|
|
8
8
|
*
|
|
9
|
-
* const
|
|
10
|
-
* name: "
|
|
9
|
+
* const myTeam = grafana.oss.getTeam({
|
|
10
|
+
* name: "my team",
|
|
11
11
|
* });
|
|
12
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
13
|
+
* name: myTeam.name,
|
|
14
|
+
* }));
|
|
12
15
|
* ```
|
|
13
16
|
*/
|
|
14
17
|
export declare function getTeam(args: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
|
|
@@ -43,9 +46,12 @@ export interface GetTeamResult {
|
|
|
43
46
|
* import * as pulumi from "@pulumi/pulumi";
|
|
44
47
|
* import * as grafana from "@pulumiverse/grafana";
|
|
45
48
|
*
|
|
46
|
-
* const
|
|
47
|
-
* name: "
|
|
49
|
+
* const myTeam = grafana.oss.getTeam({
|
|
50
|
+
* name: "my team",
|
|
48
51
|
* });
|
|
52
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
53
|
+
* name: myTeam.name,
|
|
54
|
+
* }));
|
|
49
55
|
* ```
|
|
50
56
|
*/
|
|
51
57
|
export declare function getTeamOutput(args: GetTeamOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTeamResult>;
|
package/oncall/getTeam.js
CHANGED
|
@@ -12,9 +12,12 @@ const utilities = require("../utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as grafana from "@pulumiverse/grafana";
|
|
14
14
|
*
|
|
15
|
-
* const
|
|
16
|
-
* name: "
|
|
15
|
+
* const myTeam = grafana.oss.getTeam({
|
|
16
|
+
* name: "my team",
|
|
17
17
|
* });
|
|
18
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
19
|
+
* name: myTeam.name,
|
|
20
|
+
* }));
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
20
23
|
function getTeam(args, opts) {
|
|
@@ -31,9 +34,12 @@ exports.getTeam = getTeam;
|
|
|
31
34
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
35
|
* import * as grafana from "@pulumiverse/grafana";
|
|
33
36
|
*
|
|
34
|
-
* const
|
|
35
|
-
* name: "
|
|
37
|
+
* const myTeam = grafana.oss.getTeam({
|
|
38
|
+
* name: "my team",
|
|
36
39
|
* });
|
|
40
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
41
|
+
* name: myTeam.name,
|
|
42
|
+
* }));
|
|
37
43
|
* ```
|
|
38
44
|
*/
|
|
39
45
|
function getTeamOutput(args, opts) {
|
package/oncall/getTeam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../oncall/getTeam.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../oncall/getTeam.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AA2BD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE;QACjE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
|
package/oncall/integration.d.ts
CHANGED
|
@@ -5,36 +5,6 @@ import * as outputs from "../types/output";
|
|
|
5
5
|
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
|
|
6
6
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
7
7
|
*
|
|
8
|
-
* ## Example Usage
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as grafana from "@pulumiverse/grafana";
|
|
13
|
-
*
|
|
14
|
-
* const test_acc_integration = new grafana.oncall.Integration("test-acc-integration", {
|
|
15
|
-
* name: "my integration",
|
|
16
|
-
* type: "grafana",
|
|
17
|
-
* defaultRoute: {},
|
|
18
|
-
* });
|
|
19
|
-
* // Also it's possible to manage integration templates.
|
|
20
|
-
* // Check docs to see all available templates.
|
|
21
|
-
* const integrationWithTemplates = new grafana.oncall.Integration("integration_with_templates", {
|
|
22
|
-
* name: "integration_with_templates",
|
|
23
|
-
* type: "webhook",
|
|
24
|
-
* defaultRoute: {},
|
|
25
|
-
* templates: {
|
|
26
|
-
* groupingKey: "{{ payload.group_id }}",
|
|
27
|
-
* slack: {
|
|
28
|
-
* title: "Slack title",
|
|
29
|
-
* message: `This is example of multiline template
|
|
30
|
-
* {{ payload.message }}
|
|
31
|
-
* `,
|
|
32
|
-
* imageUrl: "{{ payload.image_url }}",
|
|
33
|
-
* },
|
|
34
|
-
* },
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
8
|
* ## Import
|
|
39
9
|
*
|
|
40
10
|
* ```sh
|
|
@@ -62,7 +32,13 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
62
32
|
*/
|
|
63
33
|
readonly defaultRoute: pulumi.Output<outputs.onCall.IntegrationDefaultRoute>;
|
|
64
34
|
/**
|
|
65
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
35
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
36
|
+
*/
|
|
37
|
+
readonly dynamicLabels: pulumi.Output<{
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
}[] | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
66
42
|
*/
|
|
67
43
|
readonly labels: pulumi.Output<{
|
|
68
44
|
[key: string]: string;
|
|
@@ -76,7 +52,7 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
76
52
|
*/
|
|
77
53
|
readonly name: pulumi.Output<string>;
|
|
78
54
|
/**
|
|
79
|
-
* The ID of the OnCall team
|
|
55
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
80
56
|
*/
|
|
81
57
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
82
58
|
/**
|
|
@@ -105,7 +81,13 @@ export interface IntegrationState {
|
|
|
105
81
|
*/
|
|
106
82
|
defaultRoute?: pulumi.Input<inputs.onCall.IntegrationDefaultRoute>;
|
|
107
83
|
/**
|
|
108
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
84
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
85
|
+
*/
|
|
86
|
+
dynamicLabels?: pulumi.Input<pulumi.Input<{
|
|
87
|
+
[key: string]: pulumi.Input<string>;
|
|
88
|
+
}>[]>;
|
|
89
|
+
/**
|
|
90
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
109
91
|
*/
|
|
110
92
|
labels?: pulumi.Input<pulumi.Input<{
|
|
111
93
|
[key: string]: pulumi.Input<string>;
|
|
@@ -119,7 +101,7 @@ export interface IntegrationState {
|
|
|
119
101
|
*/
|
|
120
102
|
name?: pulumi.Input<string>;
|
|
121
103
|
/**
|
|
122
|
-
* The ID of the OnCall team
|
|
104
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
123
105
|
*/
|
|
124
106
|
teamId?: pulumi.Input<string>;
|
|
125
107
|
/**
|
|
@@ -140,7 +122,13 @@ export interface IntegrationArgs {
|
|
|
140
122
|
*/
|
|
141
123
|
defaultRoute: pulumi.Input<inputs.onCall.IntegrationDefaultRoute>;
|
|
142
124
|
/**
|
|
143
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
125
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
126
|
+
*/
|
|
127
|
+
dynamicLabels?: pulumi.Input<pulumi.Input<{
|
|
128
|
+
[key: string]: pulumi.Input<string>;
|
|
129
|
+
}>[]>;
|
|
130
|
+
/**
|
|
131
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
144
132
|
*/
|
|
145
133
|
labels?: pulumi.Input<pulumi.Input<{
|
|
146
134
|
[key: string]: pulumi.Input<string>;
|
|
@@ -150,7 +138,7 @@ export interface IntegrationArgs {
|
|
|
150
138
|
*/
|
|
151
139
|
name?: pulumi.Input<string>;
|
|
152
140
|
/**
|
|
153
|
-
* The ID of the OnCall team
|
|
141
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
154
142
|
*/
|
|
155
143
|
teamId?: pulumi.Input<string>;
|
|
156
144
|
/**
|
package/oncall/integration.js
CHANGED
|
@@ -9,36 +9,6 @@ const utilities = require("../utilities");
|
|
|
9
9
|
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
|
|
10
10
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
11
11
|
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
-
*
|
|
18
|
-
* const test_acc_integration = new grafana.oncall.Integration("test-acc-integration", {
|
|
19
|
-
* name: "my integration",
|
|
20
|
-
* type: "grafana",
|
|
21
|
-
* defaultRoute: {},
|
|
22
|
-
* });
|
|
23
|
-
* // Also it's possible to manage integration templates.
|
|
24
|
-
* // Check docs to see all available templates.
|
|
25
|
-
* const integrationWithTemplates = new grafana.oncall.Integration("integration_with_templates", {
|
|
26
|
-
* name: "integration_with_templates",
|
|
27
|
-
* type: "webhook",
|
|
28
|
-
* defaultRoute: {},
|
|
29
|
-
* templates: {
|
|
30
|
-
* groupingKey: "{{ payload.group_id }}",
|
|
31
|
-
* slack: {
|
|
32
|
-
* title: "Slack title",
|
|
33
|
-
* message: `This is example of multiline template
|
|
34
|
-
* {{ payload.message }}
|
|
35
|
-
* `,
|
|
36
|
-
* imageUrl: "{{ payload.image_url }}",
|
|
37
|
-
* },
|
|
38
|
-
* },
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
12
|
* ## Import
|
|
43
13
|
*
|
|
44
14
|
* ```sh
|
|
@@ -74,6 +44,7 @@ class Integration extends pulumi.CustomResource {
|
|
|
74
44
|
if (opts.id) {
|
|
75
45
|
const state = argsOrState;
|
|
76
46
|
resourceInputs["defaultRoute"] = state ? state.defaultRoute : undefined;
|
|
47
|
+
resourceInputs["dynamicLabels"] = state ? state.dynamicLabels : undefined;
|
|
77
48
|
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
78
49
|
resourceInputs["link"] = state ? state.link : undefined;
|
|
79
50
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
@@ -90,6 +61,7 @@ class Integration extends pulumi.CustomResource {
|
|
|
90
61
|
throw new Error("Missing required property 'type'");
|
|
91
62
|
}
|
|
92
63
|
resourceInputs["defaultRoute"] = args ? args.defaultRoute : undefined;
|
|
64
|
+
resourceInputs["dynamicLabels"] = args ? args.dynamicLabels : undefined;
|
|
93
65
|
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
94
66
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
95
67
|
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../oncall/integration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../oncall/integration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;GASG;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,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,eA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
|
|
69
69
|
*/
|
|
70
70
|
readonly startRotationFromUserIndex: pulumi.Output<number | undefined>;
|
|
71
71
|
/**
|
|
72
|
-
* The ID of the OnCall team
|
|
72
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
73
73
|
*/
|
|
74
74
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
75
75
|
/**
|
|
@@ -150,7 +150,7 @@ export interface OnCallShiftState {
|
|
|
150
150
|
*/
|
|
151
151
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
152
152
|
/**
|
|
153
|
-
* The ID of the OnCall team
|
|
153
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
154
154
|
*/
|
|
155
155
|
teamId?: pulumi.Input<string>;
|
|
156
156
|
/**
|
|
@@ -223,7 +223,7 @@ export interface OnCallShiftArgs {
|
|
|
223
223
|
*/
|
|
224
224
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
225
225
|
/**
|
|
226
|
-
* The ID of the OnCall team
|
|
226
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
227
227
|
*/
|
|
228
228
|
teamId?: pulumi.Input<string>;
|
|
229
229
|
/**
|
|
@@ -8,9 +8,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as grafana from "@pulumiverse/grafana";
|
|
10
10
|
*
|
|
11
|
+
* const myTeam = grafana.oss.getTeam({
|
|
12
|
+
* name: "my team",
|
|
13
|
+
* });
|
|
14
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
15
|
+
* name: myTeam.name,
|
|
16
|
+
* }));
|
|
11
17
|
* const test_acc_outgoingWebhook = new grafana.oncall.OutgoingWebhook("test-acc-outgoing_webhook", {
|
|
12
18
|
* name: "my outgoing webhook",
|
|
13
19
|
* url: "https://example.com/",
|
|
20
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
14
21
|
* });
|
|
15
22
|
* ```
|
|
16
23
|
*
|
|
@@ -73,7 +80,7 @@ export declare class OutgoingWebhook extends pulumi.CustomResource {
|
|
|
73
80
|
*/
|
|
74
81
|
readonly password: pulumi.Output<string | undefined>;
|
|
75
82
|
/**
|
|
76
|
-
* The ID of the OnCall team
|
|
83
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
77
84
|
*/
|
|
78
85
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
79
86
|
/**
|
|
@@ -142,7 +149,7 @@ export interface OutgoingWebhookState {
|
|
|
142
149
|
*/
|
|
143
150
|
password?: pulumi.Input<string>;
|
|
144
151
|
/**
|
|
145
|
-
* The ID of the OnCall team
|
|
152
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
146
153
|
*/
|
|
147
154
|
teamId?: pulumi.Input<string>;
|
|
148
155
|
/**
|
|
@@ -203,7 +210,7 @@ export interface OutgoingWebhookArgs {
|
|
|
203
210
|
*/
|
|
204
211
|
password?: pulumi.Input<string>;
|
|
205
212
|
/**
|
|
206
|
-
* The ID of the OnCall team
|
|
213
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
207
214
|
*/
|
|
208
215
|
teamId?: pulumi.Input<string>;
|
|
209
216
|
/**
|
|
@@ -14,9 +14,16 @@ const utilities = require("../utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as grafana from "@pulumiverse/grafana";
|
|
16
16
|
*
|
|
17
|
+
* const myTeam = grafana.oss.getTeam({
|
|
18
|
+
* name: "my team",
|
|
19
|
+
* });
|
|
20
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
21
|
+
* name: myTeam.name,
|
|
22
|
+
* }));
|
|
17
23
|
* const test_acc_outgoingWebhook = new grafana.oncall.OutgoingWebhook("test-acc-outgoing_webhook", {
|
|
18
24
|
* name: "my outgoing webhook",
|
|
19
25
|
* url: "https://example.com/",
|
|
26
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
20
27
|
* });
|
|
21
28
|
* ```
|
|
22
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outgoingWebhook.js","sourceRoot":"","sources":["../../oncall/outgoingWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"outgoingWebhook.js","sourceRoot":"","sources":["../../oncall/outgoingWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAmED,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,qBAAqB,CAAC,GAAG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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,qBAAqB,EAAE,UAAU,CAAC,EAAE,CAAC;QACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA1IL,0CA2IC;AA7HG,gBAAgB;AACO,4BAAY,GAAG,gDAAgD,CAAC"}
|
package/oncall/schedule.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
51
51
|
*/
|
|
52
52
|
readonly slack: pulumi.Output<outputs.onCall.ScheduleSlack | undefined>;
|
|
53
53
|
/**
|
|
54
|
-
* The ID of the OnCall team
|
|
54
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
55
55
|
*/
|
|
56
56
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
59
59
|
*/
|
|
60
60
|
readonly timeZone: pulumi.Output<string | undefined>;
|
|
61
61
|
/**
|
|
62
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
62
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
63
63
|
*/
|
|
64
64
|
readonly type: pulumi.Output<string>;
|
|
65
65
|
/**
|
|
@@ -100,7 +100,7 @@ export interface ScheduleState {
|
|
|
100
100
|
*/
|
|
101
101
|
slack?: pulumi.Input<inputs.onCall.ScheduleSlack>;
|
|
102
102
|
/**
|
|
103
|
-
* The ID of the OnCall team
|
|
103
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
104
104
|
*/
|
|
105
105
|
teamId?: pulumi.Input<string>;
|
|
106
106
|
/**
|
|
@@ -108,7 +108,7 @@ export interface ScheduleState {
|
|
|
108
108
|
*/
|
|
109
109
|
timeZone?: pulumi.Input<string>;
|
|
110
110
|
/**
|
|
111
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
111
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
112
112
|
*/
|
|
113
113
|
type?: pulumi.Input<string>;
|
|
114
114
|
}
|
|
@@ -141,7 +141,7 @@ export interface ScheduleArgs {
|
|
|
141
141
|
*/
|
|
142
142
|
slack?: pulumi.Input<inputs.onCall.ScheduleSlack>;
|
|
143
143
|
/**
|
|
144
|
-
* The ID of the OnCall team
|
|
144
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
145
145
|
*/
|
|
146
146
|
teamId?: pulumi.Input<string>;
|
|
147
147
|
/**
|
|
@@ -149,7 +149,7 @@ export interface ScheduleArgs {
|
|
|
149
149
|
*/
|
|
150
150
|
timeZone?: pulumi.Input<string>;
|
|
151
151
|
/**
|
|
152
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
152
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
153
153
|
*/
|
|
154
154
|
type: pulumi.Input<string>;
|
|
155
155
|
}
|
|
@@ -8,7 +8,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as grafana from "@pulumiverse/grafana";
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
11
|
+
* const myTeam = grafana.oss.getTeam({
|
|
12
|
+
* name: "my team",
|
|
13
|
+
* });
|
|
14
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
15
|
+
* name: myTeam.name,
|
|
16
|
+
* }));
|
|
17
|
+
* const _default = new grafana.oncall.EscalationChain("default", {
|
|
18
|
+
* name: "default",
|
|
19
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
20
|
+
* });
|
|
12
21
|
* ```
|
|
13
22
|
*
|
|
14
23
|
* ## Import
|
|
@@ -40,7 +49,7 @@ export declare class OncallEscalationChain extends pulumi.CustomResource {
|
|
|
40
49
|
*/
|
|
41
50
|
readonly name: pulumi.Output<string>;
|
|
42
51
|
/**
|
|
43
|
-
* The ID of the OnCall team
|
|
52
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
44
53
|
*/
|
|
45
54
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
46
55
|
/**
|
|
@@ -62,7 +71,7 @@ export interface OncallEscalationChainState {
|
|
|
62
71
|
*/
|
|
63
72
|
name?: pulumi.Input<string>;
|
|
64
73
|
/**
|
|
65
|
-
* The ID of the OnCall team
|
|
74
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
66
75
|
*/
|
|
67
76
|
teamId?: pulumi.Input<string>;
|
|
68
77
|
}
|
|
@@ -75,7 +84,7 @@ export interface OncallEscalationChainArgs {
|
|
|
75
84
|
*/
|
|
76
85
|
name?: pulumi.Input<string>;
|
|
77
86
|
/**
|
|
78
|
-
* The ID of the OnCall team
|
|
87
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
79
88
|
*/
|
|
80
89
|
teamId?: pulumi.Input<string>;
|
|
81
90
|
}
|
package/oncallEscalationChain.js
CHANGED
|
@@ -14,7 +14,16 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as grafana from "@pulumiverse/grafana";
|
|
16
16
|
*
|
|
17
|
-
* const
|
|
17
|
+
* const myTeam = grafana.oss.getTeam({
|
|
18
|
+
* name: "my team",
|
|
19
|
+
* });
|
|
20
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
21
|
+
* name: myTeam.name,
|
|
22
|
+
* }));
|
|
23
|
+
* const _default = new grafana.oncall.EscalationChain("default", {
|
|
24
|
+
* name: "default",
|
|
25
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
26
|
+
* });
|
|
18
27
|
* ```
|
|
19
28
|
*
|
|
20
29
|
* ## Import
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallEscalationChain.js","sourceRoot":"","sources":["../oncallEscalationChain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"oncallEscalationChain.js","sourceRoot":"","sources":["../oncallEscalationChain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,+KAA+K,CAAC,CAAA;QAChM,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAoBD,2JAA2J;IAC3J,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,+KAA+K,CAAC,CAAA;QAChM,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA/DL,sDAgEC;AAjDG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
package/oncallIntegration.d.ts
CHANGED
|
@@ -5,36 +5,6 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
|
|
6
6
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
7
7
|
*
|
|
8
|
-
* ## Example Usage
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as grafana from "@pulumiverse/grafana";
|
|
13
|
-
*
|
|
14
|
-
* const test_acc_integration = new grafana.oncall.Integration("test-acc-integration", {
|
|
15
|
-
* name: "my integration",
|
|
16
|
-
* type: "grafana",
|
|
17
|
-
* defaultRoute: {},
|
|
18
|
-
* });
|
|
19
|
-
* // Also it's possible to manage integration templates.
|
|
20
|
-
* // Check docs to see all available templates.
|
|
21
|
-
* const integrationWithTemplates = new grafana.oncall.Integration("integration_with_templates", {
|
|
22
|
-
* name: "integration_with_templates",
|
|
23
|
-
* type: "webhook",
|
|
24
|
-
* defaultRoute: {},
|
|
25
|
-
* templates: {
|
|
26
|
-
* groupingKey: "{{ payload.group_id }}",
|
|
27
|
-
* slack: {
|
|
28
|
-
* title: "Slack title",
|
|
29
|
-
* message: `This is example of multiline template
|
|
30
|
-
* {{ payload.message }}
|
|
31
|
-
* `,
|
|
32
|
-
* imageUrl: "{{ payload.image_url }}",
|
|
33
|
-
* },
|
|
34
|
-
* },
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
8
|
* ## Import
|
|
39
9
|
*
|
|
40
10
|
* ```sh
|
|
@@ -64,7 +34,13 @@ export declare class OncallIntegration extends pulumi.CustomResource {
|
|
|
64
34
|
*/
|
|
65
35
|
readonly defaultRoute: pulumi.Output<outputs.OncallIntegrationDefaultRoute>;
|
|
66
36
|
/**
|
|
67
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
37
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
38
|
+
*/
|
|
39
|
+
readonly dynamicLabels: pulumi.Output<{
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
}[] | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
68
44
|
*/
|
|
69
45
|
readonly labels: pulumi.Output<{
|
|
70
46
|
[key: string]: string;
|
|
@@ -78,7 +54,7 @@ export declare class OncallIntegration extends pulumi.CustomResource {
|
|
|
78
54
|
*/
|
|
79
55
|
readonly name: pulumi.Output<string>;
|
|
80
56
|
/**
|
|
81
|
-
* The ID of the OnCall team
|
|
57
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
82
58
|
*/
|
|
83
59
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
84
60
|
/**
|
|
@@ -108,7 +84,13 @@ export interface OncallIntegrationState {
|
|
|
108
84
|
*/
|
|
109
85
|
defaultRoute?: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
|
|
110
86
|
/**
|
|
111
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
87
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
88
|
+
*/
|
|
89
|
+
dynamicLabels?: pulumi.Input<pulumi.Input<{
|
|
90
|
+
[key: string]: pulumi.Input<string>;
|
|
91
|
+
}>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
112
94
|
*/
|
|
113
95
|
labels?: pulumi.Input<pulumi.Input<{
|
|
114
96
|
[key: string]: pulumi.Input<string>;
|
|
@@ -122,7 +104,7 @@ export interface OncallIntegrationState {
|
|
|
122
104
|
*/
|
|
123
105
|
name?: pulumi.Input<string>;
|
|
124
106
|
/**
|
|
125
|
-
* The ID of the OnCall team
|
|
107
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
126
108
|
*/
|
|
127
109
|
teamId?: pulumi.Input<string>;
|
|
128
110
|
/**
|
|
@@ -143,7 +125,13 @@ export interface OncallIntegrationArgs {
|
|
|
143
125
|
*/
|
|
144
126
|
defaultRoute: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
|
|
145
127
|
/**
|
|
146
|
-
* A list of string-to-string mappings. Each map must include one key named "key" and one key named "value".
|
|
128
|
+
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
129
|
+
*/
|
|
130
|
+
dynamicLabels?: pulumi.Input<pulumi.Input<{
|
|
131
|
+
[key: string]: pulumi.Input<string>;
|
|
132
|
+
}>[]>;
|
|
133
|
+
/**
|
|
134
|
+
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
|
|
147
135
|
*/
|
|
148
136
|
labels?: pulumi.Input<pulumi.Input<{
|
|
149
137
|
[key: string]: pulumi.Input<string>;
|
|
@@ -153,7 +141,7 @@ export interface OncallIntegrationArgs {
|
|
|
153
141
|
*/
|
|
154
142
|
name?: pulumi.Input<string>;
|
|
155
143
|
/**
|
|
156
|
-
* The ID of the OnCall team
|
|
144
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
157
145
|
*/
|
|
158
146
|
teamId?: pulumi.Input<string>;
|
|
159
147
|
/**
|
package/oncallIntegration.js
CHANGED
|
@@ -9,36 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
|
|
10
10
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
11
11
|
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
-
*
|
|
18
|
-
* const test_acc_integration = new grafana.oncall.Integration("test-acc-integration", {
|
|
19
|
-
* name: "my integration",
|
|
20
|
-
* type: "grafana",
|
|
21
|
-
* defaultRoute: {},
|
|
22
|
-
* });
|
|
23
|
-
* // Also it's possible to manage integration templates.
|
|
24
|
-
* // Check docs to see all available templates.
|
|
25
|
-
* const integrationWithTemplates = new grafana.oncall.Integration("integration_with_templates", {
|
|
26
|
-
* name: "integration_with_templates",
|
|
27
|
-
* type: "webhook",
|
|
28
|
-
* defaultRoute: {},
|
|
29
|
-
* templates: {
|
|
30
|
-
* groupingKey: "{{ payload.group_id }}",
|
|
31
|
-
* slack: {
|
|
32
|
-
* title: "Slack title",
|
|
33
|
-
* message: `This is example of multiline template
|
|
34
|
-
* {{ payload.message }}
|
|
35
|
-
* `,
|
|
36
|
-
* imageUrl: "{{ payload.image_url }}",
|
|
37
|
-
* },
|
|
38
|
-
* },
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
12
|
* ## Import
|
|
43
13
|
*
|
|
44
14
|
* ```sh
|
|
@@ -79,6 +49,7 @@ class OncallIntegration extends pulumi.CustomResource {
|
|
|
79
49
|
if (opts.id) {
|
|
80
50
|
const state = argsOrState;
|
|
81
51
|
resourceInputs["defaultRoute"] = state ? state.defaultRoute : undefined;
|
|
52
|
+
resourceInputs["dynamicLabels"] = state ? state.dynamicLabels : undefined;
|
|
82
53
|
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
83
54
|
resourceInputs["link"] = state ? state.link : undefined;
|
|
84
55
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
@@ -95,6 +66,7 @@ class OncallIntegration extends pulumi.CustomResource {
|
|
|
95
66
|
throw new Error("Missing required property 'type'");
|
|
96
67
|
}
|
|
97
68
|
resourceInputs["defaultRoute"] = args ? args.defaultRoute : undefined;
|
|
69
|
+
resourceInputs["dynamicLabels"] = args ? args.dynamicLabels : undefined;
|
|
98
70
|
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
99
71
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
100
72
|
resourceInputs["teamId"] = args ? args.teamId : undefined;
|