@pulumiverse/grafana 0.5.0 → 0.5.1
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/annotation.d.ts +28 -3
- package/annotation.js +25 -0
- package/annotation.js.map +1 -1
- package/apiKey.d.ts +18 -0
- package/apiKey.js +18 -0
- package/apiKey.js.map +1 -1
- package/cloudAccessPolicy.d.ts +57 -15
- package/cloudAccessPolicy.js +51 -0
- package/cloudAccessPolicy.js.map +1 -1
- package/cloudAccessPolicyToken.d.ts +54 -9
- package/cloudAccessPolicyToken.js +51 -0
- package/cloudAccessPolicyToken.js.map +1 -1
- package/cloudApiKey.d.ts +35 -6
- package/cloudApiKey.js +32 -0
- package/cloudApiKey.js.map +1 -1
- package/cloudOrgMember.d.ts +9 -0
- package/cloudOrgMember.js +9 -0
- package/cloudOrgMember.js.map +1 -1
- package/cloudPluginInstallation.d.ts +32 -0
- package/cloudPluginInstallation.js +32 -0
- package/cloudPluginInstallation.js.map +1 -1
- package/cloudStack.d.ts +49 -38
- package/cloudStack.js +30 -0
- package/cloudStack.js.map +1 -1
- package/cloudStackServiceAccount.d.ts +36 -3
- package/cloudStackServiceAccount.js +33 -0
- package/cloudStackServiceAccount.js.map +1 -1
- package/cloudStackServiceAccountToken.d.ts +28 -0
- package/cloudStackServiceAccountToken.js +28 -0
- package/cloudStackServiceAccountToken.js.map +1 -1
- package/contactPoint.d.ts +44 -9
- package/contactPoint.js +38 -0
- package/contactPoint.js.map +1 -1
- package/dashboard.d.ts +44 -16
- package/dashboard.js +37 -0
- package/dashboard.js.map +1 -1
- package/dashboardPermission.d.ts +55 -3
- package/dashboardPermission.js +52 -0
- package/dashboardPermission.js.map +1 -1
- package/dashboardPermissionItem.d.ts +48 -0
- package/dashboardPermissionItem.js +48 -0
- package/dashboardPermissionItem.js.map +1 -1
- package/dashboardPublic.d.ts +73 -12
- package/dashboardPublic.js +67 -0
- package/dashboardPublic.js.map +1 -1
- package/dataSource.d.ts +102 -36
- package/dataSource.js +78 -0
- package/dataSource.js.map +1 -1
- package/dataSourceConfig.d.ts +69 -18
- package/dataSourceConfig.js +63 -0
- package/dataSourceConfig.js.map +1 -1
- package/dataSourcePermission.d.ts +66 -3
- package/dataSourcePermission.js +63 -0
- package/dataSourcePermission.js.map +1 -1
- package/dataSourcePermissionItem.d.ts +61 -0
- package/dataSourcePermissionItem.js +61 -0
- package/dataSourcePermissionItem.js.map +1 -1
- package/folder.d.ts +43 -9
- package/folder.js +37 -0
- package/folder.js.map +1 -1
- package/folderPermission.d.ts +49 -0
- package/folderPermission.js +49 -0
- package/folderPermission.js.map +1 -1
- package/folderPermissionItem.d.ts +47 -0
- package/folderPermissionItem.js +47 -0
- package/folderPermissionItem.js.map +1 -1
- package/getCloudIps.d.ts +43 -0
- package/getCloudIps.js +28 -0
- package/getCloudIps.js.map +1 -1
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +28 -0
- package/getCloudOrganization.js.map +1 -1
- package/getCloudStack.d.ts +84 -0
- package/getCloudStack.js +6 -0
- package/getCloudStack.js.map +1 -1
- package/getDashboard.d.ts +114 -0
- package/getDashboard.js +64 -0
- package/getDashboard.js.map +1 -1
- package/getDashboards.d.ts +56 -0
- package/getDashboards.js +14 -0
- package/getDashboards.js.map +1 -1
- package/getDataSource.d.ts +118 -0
- package/getDataSource.js +76 -0
- package/getDataSource.js.map +1 -1
- package/getFolder.d.ts +71 -0
- package/getFolder.js +44 -0
- package/getFolder.js.map +1 -1
- package/getFolders.d.ts +60 -0
- package/getFolders.js +48 -0
- package/getFolders.js.map +1 -1
- package/getLibraryPanel.d.ts +65 -0
- package/getLibraryPanel.js +6 -0
- package/getLibraryPanel.js.map +1 -1
- package/getOnCallSlackChannel.d.ts +44 -0
- package/getOnCallSlackChannel.js +32 -0
- package/getOnCallSlackChannel.js.map +1 -1
- package/getOncallAction.d.ts +21 -0
- package/getOncallAction.js +12 -0
- package/getOncallAction.js.map +1 -1
- package/getOncallEscalationChain.d.ts +41 -0
- package/getOncallEscalationChain.js +32 -0
- package/getOncallEscalationChain.js.map +1 -1
- package/getOncallIntegration.d.ts +44 -0
- package/getOncallIntegration.js +32 -0
- package/getOncallIntegration.js.map +1 -1
- package/getOncallOutgoingWebhook.d.ts +41 -0
- package/getOncallOutgoingWebhook.js +32 -0
- package/getOncallOutgoingWebhook.js.map +1 -1
- package/getOncallSchedule.d.ts +46 -0
- package/getOncallSchedule.js +34 -0
- package/getOncallSchedule.js.map +1 -1
- package/getOncallTeam.d.ts +37 -0
- package/getOncallTeam.js +28 -0
- package/getOncallTeam.js.map +1 -1
- package/getOncallUser.d.ts +47 -0
- package/getOncallUser.js +32 -0
- package/getOncallUser.js.map +1 -1
- package/getOncallUserGroup.d.ts +32 -0
- package/getOncallUserGroup.js +32 -0
- package/getOncallUserGroup.js.map +1 -1
- package/getOrganization.d.ts +70 -0
- package/getOrganization.js +52 -0
- package/getOrganization.js.map +1 -1
- package/getOrganizationPreferences.d.ts +53 -0
- package/getOrganizationPreferences.js +30 -0
- package/getOrganizationPreferences.js.map +1 -1
- package/getRole.d.ts +118 -0
- package/getRole.js +82 -0
- package/getRole.js.map +1 -1
- package/getServiceAccount.d.ts +32 -0
- package/getServiceAccount.js +8 -0
- package/getServiceAccount.js.map +1 -1
- package/getSlos.d.ts +17 -0
- package/getSlos.js +14 -0
- package/getSlos.js.map +1 -1
- package/getSyntheticMonitoringProbe.d.ts +62 -0
- package/getSyntheticMonitoringProbe.js +32 -0
- package/getSyntheticMonitoringProbe.js.map +1 -1
- package/getSyntheticMonitoringProbes.d.ts +40 -0
- package/getSyntheticMonitoringProbes.js +28 -0
- package/getSyntheticMonitoringProbes.js.map +1 -1
- package/getTeam.d.ts +50 -0
- package/getTeam.js +50 -0
- package/getTeam.js.map +1 -1
- package/getUser.d.ts +99 -0
- package/getUser.js +66 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +51 -0
- package/getUsers.js +48 -0
- package/getUsers.js.map +1 -1
- package/libraryPanel.d.ts +43 -12
- package/libraryPanel.js +37 -0
- package/libraryPanel.js.map +1 -1
- package/machineLearningHoliday.d.ts +14 -3
- package/machineLearningHoliday.js +11 -0
- package/machineLearningHoliday.js.map +1 -1
- package/machineLearningJob.d.ts +18 -12
- package/machineLearningJob.js +9 -0
- package/machineLearningJob.js.map +1 -1
- package/machineLearningOutlierDetector.d.ts +22 -12
- package/machineLearningOutlierDetector.js +13 -0
- package/machineLearningOutlierDetector.js.map +1 -1
- package/messageTemplate.d.ts +32 -0
- package/messageTemplate.js +32 -0
- package/messageTemplate.js.map +1 -1
- package/muteTiming.d.ts +51 -0
- package/muteTiming.js +51 -0
- package/muteTiming.js.map +1 -1
- package/notificationPolicy.d.ts +98 -9
- package/notificationPolicy.js +92 -0
- package/notificationPolicy.js.map +1 -1
- package/oncallEscalation.d.ts +81 -41
- package/oncallEscalation.js +52 -0
- package/oncallEscalation.js.map +1 -1
- package/oncallEscalationChain.d.ts +25 -6
- package/oncallEscalationChain.js +22 -0
- package/oncallEscalationChain.js.map +1 -1
- package/oncallIntegration.d.ts +16 -15
- package/oncallIntegration.js +10 -0
- package/oncallIntegration.js.map +1 -1
- package/oncallOnCallShift.d.ts +30 -27
- package/oncallOnCallShift.js +9 -0
- package/oncallOnCallShift.js.map +1 -1
- package/oncallOutgoingWebhook.d.ts +34 -21
- package/oncallOutgoingWebhook.js +22 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/oncallRoute.d.ts +49 -3
- package/oncallRoute.js +46 -0
- package/oncallRoute.js.map +1 -1
- package/oncallSchedule.d.ts +49 -9
- package/oncallSchedule.js +43 -0
- package/oncallSchedule.js.map +1 -1
- package/organization.d.ts +94 -39
- package/organization.js +37 -0
- package/organization.js.map +1 -1
- package/organizationPreference.d.ts +31 -9
- package/organizationPreference.js +25 -0
- package/organizationPreference.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/playlist.d.ts +41 -0
- package/playlist.js +41 -0
- package/playlist.js.map +1 -1
- package/report.d.ts +56 -15
- package/report.js +41 -0
- package/report.js.map +1 -1
- package/role.d.ts +58 -15
- package/role.js +46 -0
- package/role.js.map +1 -1
- package/roleAssignment.d.ts +48 -0
- package/roleAssignment.js +48 -0
- package/roleAssignment.js.map +1 -1
- package/roleAssignmentItem.d.ts +51 -0
- package/roleAssignmentItem.js +51 -0
- package/roleAssignmentItem.js.map +1 -1
- package/ruleGroup.d.ts +117 -9
- package/ruleGroup.js +111 -0
- package/ruleGroup.js.map +1 -1
- package/serviceAccount.d.ts +33 -3
- package/serviceAccount.js +30 -0
- package/serviceAccount.js.map +1 -1
- package/serviceAccountPermission.d.ts +50 -0
- package/serviceAccountPermission.js +50 -0
- package/serviceAccountPermission.js.map +1 -1
- package/serviceAccountPermissionItem.d.ts +44 -0
- package/serviceAccountPermissionItem.js +44 -0
- package/serviceAccountPermissionItem.js.map +1 -1
- package/serviceAccountToken.d.ts +27 -9
- package/serviceAccountToken.js +24 -0
- package/serviceAccountToken.js.map +1 -1
- package/slo.d.ts +39 -27
- package/slo.js +15 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +75 -3
- package/ssoSettings.js +72 -0
- package/ssoSettings.js.map +1 -1
- package/syntheticMonitoringCheck.d.ts +431 -36
- package/syntheticMonitoringCheck.js +413 -0
- package/syntheticMonitoringCheck.js.map +1 -1
- package/syntheticMonitoringInstallation.d.ts +75 -24
- package/syntheticMonitoringInstallation.js +69 -0
- package/syntheticMonitoringInstallation.js.map +1 -1
- package/syntheticMonitoringProbe.d.ts +39 -6
- package/syntheticMonitoringProbe.js +36 -0
- package/syntheticMonitoringProbe.js.map +1 -1
- package/team.d.ts +33 -0
- package/team.js +33 -0
- package/team.js.map +1 -1
- package/teamExternalGroup.d.ts +31 -0
- package/teamExternalGroup.js +31 -0
- package/teamExternalGroup.js.map +1 -1
- package/types/input.d.ts +123 -123
- package/types/output.d.ts +123 -123
- package/user.d.ts +33 -3
- package/user.js +30 -0
- package/user.js.map +1 -1
package/oncallIntegration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallIntegration.js","sourceRoot":"","sources":["../oncallIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,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;
|
|
1
|
+
{"version":3,"file":"oncallIntegration.js","sourceRoot":"","sources":["../oncallIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;GASG;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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CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,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;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;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;;AAzFL,8CA0FC;AA5EG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/oncallOnCallShift.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/on_call_shifts/)
|
|
4
|
+
*
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import grafana:index/oncallOnCallShift:OncallOnCallShift name "{{ id }}"
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
2
11
|
export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
3
12
|
/**
|
|
4
13
|
* Get an existing OncallOnCallShift resource's state with the given name, ID, and optional extra
|
|
@@ -20,7 +29,7 @@ export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
|
20
29
|
*/
|
|
21
30
|
readonly byDays: pulumi.Output<string[] | undefined>;
|
|
22
31
|
/**
|
|
23
|
-
* This parameter takes a list of days of the month.
|
|
32
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
24
33
|
*/
|
|
25
34
|
readonly byMonthdays: pulumi.Output<number[] | undefined>;
|
|
26
35
|
/**
|
|
@@ -48,12 +57,11 @@ export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
|
48
57
|
*/
|
|
49
58
|
readonly name: pulumi.Output<string>;
|
|
50
59
|
/**
|
|
51
|
-
* The list of lists with on-call users (for
|
|
60
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
52
61
|
*/
|
|
53
62
|
readonly rollingUsers: pulumi.Output<string[][] | undefined>;
|
|
54
63
|
/**
|
|
55
|
-
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example
|
|
56
|
-
* "2020-09-05T08:00:00")
|
|
64
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
57
65
|
*/
|
|
58
66
|
readonly start: pulumi.Output<string>;
|
|
59
67
|
/**
|
|
@@ -61,20 +69,19 @@ export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
|
61
69
|
*/
|
|
62
70
|
readonly startRotationFromUserIndex: pulumi.Output<number | undefined>;
|
|
63
71
|
/**
|
|
64
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
65
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
72
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
66
73
|
*/
|
|
67
74
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
68
75
|
/**
|
|
69
|
-
* The shift's timezone.
|
|
76
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
70
77
|
*/
|
|
71
78
|
readonly timeZone: pulumi.Output<string | undefined>;
|
|
72
79
|
/**
|
|
73
|
-
* The shift's type. Can be
|
|
80
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
74
81
|
*/
|
|
75
82
|
readonly type: pulumi.Output<string>;
|
|
76
83
|
/**
|
|
77
|
-
* The list of on-call users (for
|
|
84
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
78
85
|
*/
|
|
79
86
|
readonly users: pulumi.Output<string[] | undefined>;
|
|
80
87
|
/**
|
|
@@ -99,7 +106,7 @@ export interface OncallOnCallShiftState {
|
|
|
99
106
|
*/
|
|
100
107
|
byDays?: pulumi.Input<pulumi.Input<string>[]>;
|
|
101
108
|
/**
|
|
102
|
-
* This parameter takes a list of days of the month.
|
|
109
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
103
110
|
*/
|
|
104
111
|
byMonthdays?: pulumi.Input<pulumi.Input<number>[]>;
|
|
105
112
|
/**
|
|
@@ -127,12 +134,11 @@ export interface OncallOnCallShiftState {
|
|
|
127
134
|
*/
|
|
128
135
|
name?: pulumi.Input<string>;
|
|
129
136
|
/**
|
|
130
|
-
* The list of lists with on-call users (for
|
|
137
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
131
138
|
*/
|
|
132
139
|
rollingUsers?: pulumi.Input<pulumi.Input<pulumi.Input<string>[]>[]>;
|
|
133
140
|
/**
|
|
134
|
-
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example
|
|
135
|
-
* "2020-09-05T08:00:00")
|
|
141
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
136
142
|
*/
|
|
137
143
|
start?: pulumi.Input<string>;
|
|
138
144
|
/**
|
|
@@ -140,20 +146,19 @@ export interface OncallOnCallShiftState {
|
|
|
140
146
|
*/
|
|
141
147
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
142
148
|
/**
|
|
143
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
144
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
149
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
145
150
|
*/
|
|
146
151
|
teamId?: pulumi.Input<string>;
|
|
147
152
|
/**
|
|
148
|
-
* The shift's timezone.
|
|
153
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
149
154
|
*/
|
|
150
155
|
timeZone?: pulumi.Input<string>;
|
|
151
156
|
/**
|
|
152
|
-
* The shift's type. Can be
|
|
157
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
153
158
|
*/
|
|
154
159
|
type?: pulumi.Input<string>;
|
|
155
160
|
/**
|
|
156
|
-
* The list of on-call users (for
|
|
161
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
157
162
|
*/
|
|
158
163
|
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
159
164
|
/**
|
|
@@ -170,7 +175,7 @@ export interface OncallOnCallShiftArgs {
|
|
|
170
175
|
*/
|
|
171
176
|
byDays?: pulumi.Input<pulumi.Input<string>[]>;
|
|
172
177
|
/**
|
|
173
|
-
* This parameter takes a list of days of the month.
|
|
178
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
174
179
|
*/
|
|
175
180
|
byMonthdays?: pulumi.Input<pulumi.Input<number>[]>;
|
|
176
181
|
/**
|
|
@@ -198,12 +203,11 @@ export interface OncallOnCallShiftArgs {
|
|
|
198
203
|
*/
|
|
199
204
|
name?: pulumi.Input<string>;
|
|
200
205
|
/**
|
|
201
|
-
* The list of lists with on-call users (for
|
|
206
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
202
207
|
*/
|
|
203
208
|
rollingUsers?: pulumi.Input<pulumi.Input<pulumi.Input<string>[]>[]>;
|
|
204
209
|
/**
|
|
205
|
-
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example
|
|
206
|
-
* "2020-09-05T08:00:00")
|
|
210
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
207
211
|
*/
|
|
208
212
|
start: pulumi.Input<string>;
|
|
209
213
|
/**
|
|
@@ -211,20 +215,19 @@ export interface OncallOnCallShiftArgs {
|
|
|
211
215
|
*/
|
|
212
216
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
213
217
|
/**
|
|
214
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
215
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
218
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
216
219
|
*/
|
|
217
220
|
teamId?: pulumi.Input<string>;
|
|
218
221
|
/**
|
|
219
|
-
* The shift's timezone.
|
|
222
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
220
223
|
*/
|
|
221
224
|
timeZone?: pulumi.Input<string>;
|
|
222
225
|
/**
|
|
223
|
-
* The shift's type. Can be
|
|
226
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
224
227
|
*/
|
|
225
228
|
type: pulumi.Input<string>;
|
|
226
229
|
/**
|
|
227
|
-
* The list of on-call users (for
|
|
230
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
228
231
|
*/
|
|
229
232
|
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
230
233
|
/**
|
package/oncallOnCallShift.js
CHANGED
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.OncallOnCallShift = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/on_call_shifts/)
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import grafana:index/oncallOnCallShift:OncallOnCallShift name "{{ id }}"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
8
17
|
class OncallOnCallShift extends pulumi.CustomResource {
|
|
9
18
|
/**
|
|
10
19
|
* Get an existing OncallOnCallShift resource's state with the given name, ID, and optional extra
|
package/oncallOnCallShift.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallOnCallShift.js","sourceRoot":"","sources":["../oncallOnCallShift.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,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;QAC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C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;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;;AAxJL,8CAyJC;AA3IG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/outgoing_webhooks/)
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
11
|
+
*
|
|
12
|
+
* const test_acc_outgoingWebhook = new grafana.OncallOutgoingWebhook("test-acc-outgoingWebhook", {url: "https://example.com/"}, {
|
|
13
|
+
* provider: grafana.oncall,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
* <!--End PulumiCodeChooser -->
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import grafana:index/oncallOutgoingWebhook:OncallOutgoingWebhook name "{{ id }}"
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
3
25
|
/**
|
|
4
26
|
* Get an existing OncallOutgoingWebhook resource's state with the given name, ID, and optional extra
|
|
@@ -32,12 +54,11 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
32
54
|
*/
|
|
33
55
|
readonly headers: pulumi.Output<string | undefined>;
|
|
34
56
|
/**
|
|
35
|
-
* The HTTP method used in the request made by the outgoing webhook.
|
|
57
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
36
58
|
*/
|
|
37
59
|
readonly httpMethod: pulumi.Output<string | undefined>;
|
|
38
60
|
/**
|
|
39
|
-
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are
|
|
40
|
-
* selected the outgoing webhook will trigger for any integration.
|
|
61
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
41
62
|
*/
|
|
42
63
|
readonly integrationFilters: pulumi.Output<string[] | undefined>;
|
|
43
64
|
/**
|
|
@@ -53,8 +74,7 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
53
74
|
*/
|
|
54
75
|
readonly password: pulumi.Output<string | undefined>;
|
|
55
76
|
/**
|
|
56
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
57
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
77
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
58
78
|
*/
|
|
59
79
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
60
80
|
/**
|
|
@@ -62,8 +82,7 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
62
82
|
*/
|
|
63
83
|
readonly triggerTemplate: pulumi.Output<string | undefined>;
|
|
64
84
|
/**
|
|
65
|
-
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert
|
|
66
|
-
* group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`.
|
|
85
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
67
86
|
*/
|
|
68
87
|
readonly triggerType: pulumi.Output<string | undefined>;
|
|
69
88
|
/**
|
|
@@ -104,12 +123,11 @@ export interface OncallOutgoingWebhookState {
|
|
|
104
123
|
*/
|
|
105
124
|
headers?: pulumi.Input<string>;
|
|
106
125
|
/**
|
|
107
|
-
* The HTTP method used in the request made by the outgoing webhook.
|
|
126
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
108
127
|
*/
|
|
109
128
|
httpMethod?: pulumi.Input<string>;
|
|
110
129
|
/**
|
|
111
|
-
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are
|
|
112
|
-
* selected the outgoing webhook will trigger for any integration.
|
|
130
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
113
131
|
*/
|
|
114
132
|
integrationFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
133
|
/**
|
|
@@ -125,8 +143,7 @@ export interface OncallOutgoingWebhookState {
|
|
|
125
143
|
*/
|
|
126
144
|
password?: pulumi.Input<string>;
|
|
127
145
|
/**
|
|
128
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
129
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
146
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
130
147
|
*/
|
|
131
148
|
teamId?: pulumi.Input<string>;
|
|
132
149
|
/**
|
|
@@ -134,8 +151,7 @@ export interface OncallOutgoingWebhookState {
|
|
|
134
151
|
*/
|
|
135
152
|
triggerTemplate?: pulumi.Input<string>;
|
|
136
153
|
/**
|
|
137
|
-
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert
|
|
138
|
-
* group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`.
|
|
154
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
139
155
|
*/
|
|
140
156
|
triggerType?: pulumi.Input<string>;
|
|
141
157
|
/**
|
|
@@ -168,12 +184,11 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
168
184
|
*/
|
|
169
185
|
headers?: pulumi.Input<string>;
|
|
170
186
|
/**
|
|
171
|
-
* The HTTP method used in the request made by the outgoing webhook.
|
|
187
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
172
188
|
*/
|
|
173
189
|
httpMethod?: pulumi.Input<string>;
|
|
174
190
|
/**
|
|
175
|
-
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are
|
|
176
|
-
* selected the outgoing webhook will trigger for any integration.
|
|
191
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
177
192
|
*/
|
|
178
193
|
integrationFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
179
194
|
/**
|
|
@@ -189,8 +204,7 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
189
204
|
*/
|
|
190
205
|
password?: pulumi.Input<string>;
|
|
191
206
|
/**
|
|
192
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
193
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
207
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
194
208
|
*/
|
|
195
209
|
teamId?: pulumi.Input<string>;
|
|
196
210
|
/**
|
|
@@ -198,8 +212,7 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
198
212
|
*/
|
|
199
213
|
triggerTemplate?: pulumi.Input<string>;
|
|
200
214
|
/**
|
|
201
|
-
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert
|
|
202
|
-
* group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`.
|
|
215
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
203
216
|
*/
|
|
204
217
|
triggerType?: pulumi.Input<string>;
|
|
205
218
|
/**
|
package/oncallOutgoingWebhook.js
CHANGED
|
@@ -5,6 +5,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.OncallOutgoingWebhook = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/outgoing_webhooks/)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
+
*
|
|
18
|
+
* const test_acc_outgoingWebhook = new grafana.OncallOutgoingWebhook("test-acc-outgoingWebhook", {url: "https://example.com/"}, {
|
|
19
|
+
* provider: grafana.oncall,
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
* <!--End PulumiCodeChooser -->
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import grafana:index/oncallOutgoingWebhook:OncallOutgoingWebhook name "{{ id }}"
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
8
30
|
class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
9
31
|
/**
|
|
10
32
|
* Get an existing OncallOutgoingWebhook resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallOutgoingWebhook.js","sourceRoot":"","sources":["../oncallOutgoingWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,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;
|
|
1
|
+
{"version":3,"file":"oncallOutgoingWebhook.js","sourceRoot":"","sources":["../oncallOutgoingWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,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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AC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,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,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAxIL,sDAyIC;AA3HG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
package/oncallRoute.d.ts
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/routes/)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as grafana from "@pulumi/grafana";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const exampleSlackChannel = grafana.getOnCallSlackChannel({
|
|
16
|
+
* name: "example_slack_channel",
|
|
17
|
+
* });
|
|
18
|
+
* const _default = new grafana.OncallEscalationChain("default", {});
|
|
19
|
+
* const exampleIntegration = new grafana.OncallIntegration("exampleIntegration", {
|
|
20
|
+
* type: "grafana",
|
|
21
|
+
* defaultRoute: {},
|
|
22
|
+
* });
|
|
23
|
+
* const exampleRoute = new grafana.OncallRoute("exampleRoute", {
|
|
24
|
+
* integrationId: exampleIntegration.id,
|
|
25
|
+
* escalationChainId: _default.id,
|
|
26
|
+
* routingRegex: "us-(east|west)",
|
|
27
|
+
* position: 0,
|
|
28
|
+
* slack: {
|
|
29
|
+
* channelId: exampleSlackChannel.then(exampleSlackChannel => exampleSlackChannel.slackId),
|
|
30
|
+
* enabled: true,
|
|
31
|
+
* },
|
|
32
|
+
* telegram: {
|
|
33
|
+
* id: "ONCALLTELEGRAMID",
|
|
34
|
+
* enabled: true,
|
|
35
|
+
* },
|
|
36
|
+
* msteams: {
|
|
37
|
+
* id: "ONCALLMSTEAMSID",
|
|
38
|
+
* enabled: false,
|
|
39
|
+
* },
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* <!--End PulumiCodeChooser -->
|
|
43
|
+
*
|
|
44
|
+
* ## Import
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import grafana:index/oncallRoute:OncallRoute name "{{ id }}"
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
4
50
|
export declare class OncallRoute extends pulumi.CustomResource {
|
|
5
51
|
/**
|
|
6
52
|
* Get an existing OncallRoute resource's state with the given name, ID, and optional extra
|
|
@@ -38,7 +84,7 @@ export declare class OncallRoute extends pulumi.CustomResource {
|
|
|
38
84
|
*/
|
|
39
85
|
readonly routingRegex: pulumi.Output<string>;
|
|
40
86
|
/**
|
|
41
|
-
* The type of route. Can be jinja2, regex
|
|
87
|
+
* The type of route. Can be jinja2, regex Defaults to `regex`.
|
|
42
88
|
*/
|
|
43
89
|
readonly routingType: pulumi.Output<string | undefined>;
|
|
44
90
|
/**
|
|
@@ -83,7 +129,7 @@ export interface OncallRouteState {
|
|
|
83
129
|
*/
|
|
84
130
|
routingRegex?: pulumi.Input<string>;
|
|
85
131
|
/**
|
|
86
|
-
* The type of route. Can be jinja2, regex
|
|
132
|
+
* The type of route. Can be jinja2, regex Defaults to `regex`.
|
|
87
133
|
*/
|
|
88
134
|
routingType?: pulumi.Input<string>;
|
|
89
135
|
/**
|
|
@@ -120,7 +166,7 @@ export interface OncallRouteArgs {
|
|
|
120
166
|
*/
|
|
121
167
|
routingRegex: pulumi.Input<string>;
|
|
122
168
|
/**
|
|
123
|
-
* The type of route. Can be jinja2, regex
|
|
169
|
+
* The type of route. Can be jinja2, regex Defaults to `regex`.
|
|
124
170
|
*/
|
|
125
171
|
routingType?: pulumi.Input<string>;
|
|
126
172
|
/**
|
package/oncallRoute.js
CHANGED
|
@@ -5,6 +5,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.OncallRoute = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/routes/)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumi/grafana";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const exampleSlackChannel = grafana.getOnCallSlackChannel({
|
|
20
|
+
* name: "example_slack_channel",
|
|
21
|
+
* });
|
|
22
|
+
* const _default = new grafana.OncallEscalationChain("default", {});
|
|
23
|
+
* const exampleIntegration = new grafana.OncallIntegration("exampleIntegration", {
|
|
24
|
+
* type: "grafana",
|
|
25
|
+
* defaultRoute: {},
|
|
26
|
+
* });
|
|
27
|
+
* const exampleRoute = new grafana.OncallRoute("exampleRoute", {
|
|
28
|
+
* integrationId: exampleIntegration.id,
|
|
29
|
+
* escalationChainId: _default.id,
|
|
30
|
+
* routingRegex: "us-(east|west)",
|
|
31
|
+
* position: 0,
|
|
32
|
+
* slack: {
|
|
33
|
+
* channelId: exampleSlackChannel.then(exampleSlackChannel => exampleSlackChannel.slackId),
|
|
34
|
+
* enabled: true,
|
|
35
|
+
* },
|
|
36
|
+
* telegram: {
|
|
37
|
+
* id: "ONCALLTELEGRAMID",
|
|
38
|
+
* enabled: true,
|
|
39
|
+
* },
|
|
40
|
+
* msteams: {
|
|
41
|
+
* id: "ONCALLMSTEAMSID",
|
|
42
|
+
* enabled: false,
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
* <!--End PulumiCodeChooser -->
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import grafana:index/oncallRoute:OncallRoute name "{{ id }}"
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
8
54
|
class OncallRoute extends pulumi.CustomResource {
|
|
9
55
|
/**
|
|
10
56
|
* Get an existing OncallRoute resource's state with the given name, ID, and optional extra
|
package/oncallRoute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallRoute.js","sourceRoot":"","sources":["../oncallRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,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,WA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C,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;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;;AA3GL,kCA4GC;AA9FG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/oncallSchedule.d.ts
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/schedules/)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as grafana from "@pulumi/grafana";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const exampleSlackChannel = grafana.getOnCallSlackChannel({
|
|
16
|
+
* name: "example_slack_channel",
|
|
17
|
+
* });
|
|
18
|
+
* const exampleUserGroup = grafana.getOncallUserGroup({
|
|
19
|
+
* slackHandle: "example_slack_handle",
|
|
20
|
+
* });
|
|
21
|
+
* // ICal based schedule
|
|
22
|
+
* const exampleScheduleOncallSchedule = new grafana.OncallSchedule("exampleScheduleOncallSchedule", {
|
|
23
|
+
* type: "ical",
|
|
24
|
+
* icalUrlPrimary: "https://example.com/example_ical.ics",
|
|
25
|
+
* icalUrlOverrides: "https://example.com/example_overrides_ical.ics",
|
|
26
|
+
* slack: {
|
|
27
|
+
* channelId: exampleSlackChannel.then(exampleSlackChannel => exampleSlackChannel.slackId),
|
|
28
|
+
* userGroupId: exampleUserGroup.then(exampleUserGroup => exampleUserGroup.slackId),
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* // Shift based schedule
|
|
32
|
+
* const exampleScheduleIndex_oncallScheduleOncallSchedule = new grafana.OncallSchedule("exampleScheduleIndex/oncallScheduleOncallSchedule", {
|
|
33
|
+
* type: "calendar",
|
|
34
|
+
* timeZone: "America/New_York",
|
|
35
|
+
* shifts: [],
|
|
36
|
+
* icalUrlOverrides: "https://example.com/example_overrides_ical.ics",
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
* <!--End PulumiCodeChooser -->
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import grafana:index/oncallSchedule:OncallSchedule name "{{ id }}"
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
4
47
|
export declare class OncallSchedule extends pulumi.CustomResource {
|
|
5
48
|
/**
|
|
6
49
|
* Get an existing OncallSchedule resource's state with the given name, ID, and optional extra
|
|
@@ -18,7 +61,7 @@ export declare class OncallSchedule extends pulumi.CustomResource {
|
|
|
18
61
|
*/
|
|
19
62
|
static isInstance(obj: any): obj is OncallSchedule;
|
|
20
63
|
/**
|
|
21
|
-
* Enable overrides via web UI (it will ignore
|
|
64
|
+
* Enable overrides via web UI (it will ignore ical*url*overrides).
|
|
22
65
|
*/
|
|
23
66
|
readonly enableWebOverrides: pulumi.Output<boolean | undefined>;
|
|
24
67
|
/**
|
|
@@ -42,8 +85,7 @@ export declare class OncallSchedule extends pulumi.CustomResource {
|
|
|
42
85
|
*/
|
|
43
86
|
readonly slack: pulumi.Output<outputs.OncallScheduleSlack | undefined>;
|
|
44
87
|
/**
|
|
45
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
46
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
88
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
47
89
|
*/
|
|
48
90
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
49
91
|
/**
|
|
@@ -68,7 +110,7 @@ export declare class OncallSchedule extends pulumi.CustomResource {
|
|
|
68
110
|
*/
|
|
69
111
|
export interface OncallScheduleState {
|
|
70
112
|
/**
|
|
71
|
-
* Enable overrides via web UI (it will ignore
|
|
113
|
+
* Enable overrides via web UI (it will ignore ical*url*overrides).
|
|
72
114
|
*/
|
|
73
115
|
enableWebOverrides?: pulumi.Input<boolean>;
|
|
74
116
|
/**
|
|
@@ -92,8 +134,7 @@ export interface OncallScheduleState {
|
|
|
92
134
|
*/
|
|
93
135
|
slack?: pulumi.Input<inputs.OncallScheduleSlack>;
|
|
94
136
|
/**
|
|
95
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
96
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
137
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
97
138
|
*/
|
|
98
139
|
teamId?: pulumi.Input<string>;
|
|
99
140
|
/**
|
|
@@ -110,7 +151,7 @@ export interface OncallScheduleState {
|
|
|
110
151
|
*/
|
|
111
152
|
export interface OncallScheduleArgs {
|
|
112
153
|
/**
|
|
113
|
-
* Enable overrides via web UI (it will ignore
|
|
154
|
+
* Enable overrides via web UI (it will ignore ical*url*overrides).
|
|
114
155
|
*/
|
|
115
156
|
enableWebOverrides?: pulumi.Input<boolean>;
|
|
116
157
|
/**
|
|
@@ -134,8 +175,7 @@ export interface OncallScheduleArgs {
|
|
|
134
175
|
*/
|
|
135
176
|
slack?: pulumi.Input<inputs.OncallScheduleSlack>;
|
|
136
177
|
/**
|
|
137
|
-
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
|
|
138
|
-
* with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
|
|
178
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
139
179
|
*/
|
|
140
180
|
teamId?: pulumi.Input<string>;
|
|
141
181
|
/**
|