@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.
Files changed (256) hide show
  1. package/annotation.d.ts +28 -3
  2. package/annotation.js +25 -0
  3. package/annotation.js.map +1 -1
  4. package/apiKey.d.ts +18 -0
  5. package/apiKey.js +18 -0
  6. package/apiKey.js.map +1 -1
  7. package/cloudAccessPolicy.d.ts +57 -15
  8. package/cloudAccessPolicy.js +51 -0
  9. package/cloudAccessPolicy.js.map +1 -1
  10. package/cloudAccessPolicyToken.d.ts +54 -9
  11. package/cloudAccessPolicyToken.js +51 -0
  12. package/cloudAccessPolicyToken.js.map +1 -1
  13. package/cloudApiKey.d.ts +35 -6
  14. package/cloudApiKey.js +32 -0
  15. package/cloudApiKey.js.map +1 -1
  16. package/cloudOrgMember.d.ts +9 -0
  17. package/cloudOrgMember.js +9 -0
  18. package/cloudOrgMember.js.map +1 -1
  19. package/cloudPluginInstallation.d.ts +32 -0
  20. package/cloudPluginInstallation.js +32 -0
  21. package/cloudPluginInstallation.js.map +1 -1
  22. package/cloudStack.d.ts +49 -38
  23. package/cloudStack.js +30 -0
  24. package/cloudStack.js.map +1 -1
  25. package/cloudStackServiceAccount.d.ts +36 -3
  26. package/cloudStackServiceAccount.js +33 -0
  27. package/cloudStackServiceAccount.js.map +1 -1
  28. package/cloudStackServiceAccountToken.d.ts +28 -0
  29. package/cloudStackServiceAccountToken.js +28 -0
  30. package/cloudStackServiceAccountToken.js.map +1 -1
  31. package/contactPoint.d.ts +44 -9
  32. package/contactPoint.js +38 -0
  33. package/contactPoint.js.map +1 -1
  34. package/dashboard.d.ts +44 -16
  35. package/dashboard.js +37 -0
  36. package/dashboard.js.map +1 -1
  37. package/dashboardPermission.d.ts +55 -3
  38. package/dashboardPermission.js +52 -0
  39. package/dashboardPermission.js.map +1 -1
  40. package/dashboardPermissionItem.d.ts +48 -0
  41. package/dashboardPermissionItem.js +48 -0
  42. package/dashboardPermissionItem.js.map +1 -1
  43. package/dashboardPublic.d.ts +73 -12
  44. package/dashboardPublic.js +67 -0
  45. package/dashboardPublic.js.map +1 -1
  46. package/dataSource.d.ts +102 -36
  47. package/dataSource.js +78 -0
  48. package/dataSource.js.map +1 -1
  49. package/dataSourceConfig.d.ts +69 -18
  50. package/dataSourceConfig.js +63 -0
  51. package/dataSourceConfig.js.map +1 -1
  52. package/dataSourcePermission.d.ts +66 -3
  53. package/dataSourcePermission.js +63 -0
  54. package/dataSourcePermission.js.map +1 -1
  55. package/dataSourcePermissionItem.d.ts +61 -0
  56. package/dataSourcePermissionItem.js +61 -0
  57. package/dataSourcePermissionItem.js.map +1 -1
  58. package/folder.d.ts +43 -9
  59. package/folder.js +37 -0
  60. package/folder.js.map +1 -1
  61. package/folderPermission.d.ts +49 -0
  62. package/folderPermission.js +49 -0
  63. package/folderPermission.js.map +1 -1
  64. package/folderPermissionItem.d.ts +47 -0
  65. package/folderPermissionItem.js +47 -0
  66. package/folderPermissionItem.js.map +1 -1
  67. package/getCloudIps.d.ts +43 -0
  68. package/getCloudIps.js +28 -0
  69. package/getCloudIps.js.map +1 -1
  70. package/getCloudOrganization.d.ts +37 -0
  71. package/getCloudOrganization.js +28 -0
  72. package/getCloudOrganization.js.map +1 -1
  73. package/getCloudStack.d.ts +84 -0
  74. package/getCloudStack.js +6 -0
  75. package/getCloudStack.js.map +1 -1
  76. package/getDashboard.d.ts +114 -0
  77. package/getDashboard.js +64 -0
  78. package/getDashboard.js.map +1 -1
  79. package/getDashboards.d.ts +56 -0
  80. package/getDashboards.js +14 -0
  81. package/getDashboards.js.map +1 -1
  82. package/getDataSource.d.ts +118 -0
  83. package/getDataSource.js +76 -0
  84. package/getDataSource.js.map +1 -1
  85. package/getFolder.d.ts +71 -0
  86. package/getFolder.js +44 -0
  87. package/getFolder.js.map +1 -1
  88. package/getFolders.d.ts +60 -0
  89. package/getFolders.js +48 -0
  90. package/getFolders.js.map +1 -1
  91. package/getLibraryPanel.d.ts +65 -0
  92. package/getLibraryPanel.js +6 -0
  93. package/getLibraryPanel.js.map +1 -1
  94. package/getOnCallSlackChannel.d.ts +44 -0
  95. package/getOnCallSlackChannel.js +32 -0
  96. package/getOnCallSlackChannel.js.map +1 -1
  97. package/getOncallAction.d.ts +21 -0
  98. package/getOncallAction.js +12 -0
  99. package/getOncallAction.js.map +1 -1
  100. package/getOncallEscalationChain.d.ts +41 -0
  101. package/getOncallEscalationChain.js +32 -0
  102. package/getOncallEscalationChain.js.map +1 -1
  103. package/getOncallIntegration.d.ts +44 -0
  104. package/getOncallIntegration.js +32 -0
  105. package/getOncallIntegration.js.map +1 -1
  106. package/getOncallOutgoingWebhook.d.ts +41 -0
  107. package/getOncallOutgoingWebhook.js +32 -0
  108. package/getOncallOutgoingWebhook.js.map +1 -1
  109. package/getOncallSchedule.d.ts +46 -0
  110. package/getOncallSchedule.js +34 -0
  111. package/getOncallSchedule.js.map +1 -1
  112. package/getOncallTeam.d.ts +37 -0
  113. package/getOncallTeam.js +28 -0
  114. package/getOncallTeam.js.map +1 -1
  115. package/getOncallUser.d.ts +47 -0
  116. package/getOncallUser.js +32 -0
  117. package/getOncallUser.js.map +1 -1
  118. package/getOncallUserGroup.d.ts +32 -0
  119. package/getOncallUserGroup.js +32 -0
  120. package/getOncallUserGroup.js.map +1 -1
  121. package/getOrganization.d.ts +70 -0
  122. package/getOrganization.js +52 -0
  123. package/getOrganization.js.map +1 -1
  124. package/getOrganizationPreferences.d.ts +53 -0
  125. package/getOrganizationPreferences.js +30 -0
  126. package/getOrganizationPreferences.js.map +1 -1
  127. package/getRole.d.ts +118 -0
  128. package/getRole.js +82 -0
  129. package/getRole.js.map +1 -1
  130. package/getServiceAccount.d.ts +32 -0
  131. package/getServiceAccount.js +8 -0
  132. package/getServiceAccount.js.map +1 -1
  133. package/getSlos.d.ts +17 -0
  134. package/getSlos.js +14 -0
  135. package/getSlos.js.map +1 -1
  136. package/getSyntheticMonitoringProbe.d.ts +62 -0
  137. package/getSyntheticMonitoringProbe.js +32 -0
  138. package/getSyntheticMonitoringProbe.js.map +1 -1
  139. package/getSyntheticMonitoringProbes.d.ts +40 -0
  140. package/getSyntheticMonitoringProbes.js +28 -0
  141. package/getSyntheticMonitoringProbes.js.map +1 -1
  142. package/getTeam.d.ts +50 -0
  143. package/getTeam.js +50 -0
  144. package/getTeam.js.map +1 -1
  145. package/getUser.d.ts +99 -0
  146. package/getUser.js +66 -0
  147. package/getUser.js.map +1 -1
  148. package/getUsers.d.ts +51 -0
  149. package/getUsers.js +48 -0
  150. package/getUsers.js.map +1 -1
  151. package/libraryPanel.d.ts +43 -12
  152. package/libraryPanel.js +37 -0
  153. package/libraryPanel.js.map +1 -1
  154. package/machineLearningHoliday.d.ts +14 -3
  155. package/machineLearningHoliday.js +11 -0
  156. package/machineLearningHoliday.js.map +1 -1
  157. package/machineLearningJob.d.ts +18 -12
  158. package/machineLearningJob.js +9 -0
  159. package/machineLearningJob.js.map +1 -1
  160. package/machineLearningOutlierDetector.d.ts +22 -12
  161. package/machineLearningOutlierDetector.js +13 -0
  162. package/machineLearningOutlierDetector.js.map +1 -1
  163. package/messageTemplate.d.ts +32 -0
  164. package/messageTemplate.js +32 -0
  165. package/messageTemplate.js.map +1 -1
  166. package/muteTiming.d.ts +51 -0
  167. package/muteTiming.js +51 -0
  168. package/muteTiming.js.map +1 -1
  169. package/notificationPolicy.d.ts +98 -9
  170. package/notificationPolicy.js +92 -0
  171. package/notificationPolicy.js.map +1 -1
  172. package/oncallEscalation.d.ts +81 -41
  173. package/oncallEscalation.js +52 -0
  174. package/oncallEscalation.js.map +1 -1
  175. package/oncallEscalationChain.d.ts +25 -6
  176. package/oncallEscalationChain.js +22 -0
  177. package/oncallEscalationChain.js.map +1 -1
  178. package/oncallIntegration.d.ts +16 -15
  179. package/oncallIntegration.js +10 -0
  180. package/oncallIntegration.js.map +1 -1
  181. package/oncallOnCallShift.d.ts +30 -27
  182. package/oncallOnCallShift.js +9 -0
  183. package/oncallOnCallShift.js.map +1 -1
  184. package/oncallOutgoingWebhook.d.ts +34 -21
  185. package/oncallOutgoingWebhook.js +22 -0
  186. package/oncallOutgoingWebhook.js.map +1 -1
  187. package/oncallRoute.d.ts +49 -3
  188. package/oncallRoute.js +46 -0
  189. package/oncallRoute.js.map +1 -1
  190. package/oncallSchedule.d.ts +49 -9
  191. package/oncallSchedule.js +43 -0
  192. package/oncallSchedule.js.map +1 -1
  193. package/organization.d.ts +94 -39
  194. package/organization.js +37 -0
  195. package/organization.js.map +1 -1
  196. package/organizationPreference.d.ts +31 -9
  197. package/organizationPreference.js +25 -0
  198. package/organizationPreference.js.map +1 -1
  199. package/package.json +2 -2
  200. package/package.json.dev +1 -1
  201. package/playlist.d.ts +41 -0
  202. package/playlist.js +41 -0
  203. package/playlist.js.map +1 -1
  204. package/report.d.ts +56 -15
  205. package/report.js +41 -0
  206. package/report.js.map +1 -1
  207. package/role.d.ts +58 -15
  208. package/role.js +46 -0
  209. package/role.js.map +1 -1
  210. package/roleAssignment.d.ts +48 -0
  211. package/roleAssignment.js +48 -0
  212. package/roleAssignment.js.map +1 -1
  213. package/roleAssignmentItem.d.ts +51 -0
  214. package/roleAssignmentItem.js +51 -0
  215. package/roleAssignmentItem.js.map +1 -1
  216. package/ruleGroup.d.ts +117 -9
  217. package/ruleGroup.js +111 -0
  218. package/ruleGroup.js.map +1 -1
  219. package/serviceAccount.d.ts +33 -3
  220. package/serviceAccount.js +30 -0
  221. package/serviceAccount.js.map +1 -1
  222. package/serviceAccountPermission.d.ts +50 -0
  223. package/serviceAccountPermission.js +50 -0
  224. package/serviceAccountPermission.js.map +1 -1
  225. package/serviceAccountPermissionItem.d.ts +44 -0
  226. package/serviceAccountPermissionItem.js +44 -0
  227. package/serviceAccountPermissionItem.js.map +1 -1
  228. package/serviceAccountToken.d.ts +27 -9
  229. package/serviceAccountToken.js +24 -0
  230. package/serviceAccountToken.js.map +1 -1
  231. package/slo.d.ts +39 -27
  232. package/slo.js +15 -0
  233. package/slo.js.map +1 -1
  234. package/ssoSettings.d.ts +75 -3
  235. package/ssoSettings.js +72 -0
  236. package/ssoSettings.js.map +1 -1
  237. package/syntheticMonitoringCheck.d.ts +431 -36
  238. package/syntheticMonitoringCheck.js +413 -0
  239. package/syntheticMonitoringCheck.js.map +1 -1
  240. package/syntheticMonitoringInstallation.d.ts +75 -24
  241. package/syntheticMonitoringInstallation.js +69 -0
  242. package/syntheticMonitoringInstallation.js.map +1 -1
  243. package/syntheticMonitoringProbe.d.ts +39 -6
  244. package/syntheticMonitoringProbe.js +36 -0
  245. package/syntheticMonitoringProbe.js.map +1 -1
  246. package/team.d.ts +33 -0
  247. package/team.js +33 -0
  248. package/team.js.map +1 -1
  249. package/teamExternalGroup.d.ts +31 -0
  250. package/teamExternalGroup.js +31 -0
  251. package/teamExternalGroup.js.map +1 -1
  252. package/types/input.d.ts +123 -123
  253. package/types/output.d.ts +123 -123
  254. package/user.d.ts +33 -3
  255. package/user.js +30 -0
  256. package/user.js.map +1 -1
@@ -5,6 +5,98 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.NotificationPolicy = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Sets the global notification policy for Grafana.
10
+ *
11
+ * !> This resource manages the entire notification policy tree, and will overwrite any existing policies.
12
+ *
13
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/)
14
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/)
15
+ *
16
+ * This resource requires Grafana 9.1.0 or later.
17
+ *
18
+ * ## Example Usage
19
+ *
20
+ * <!--Start PulumiCodeChooser -->
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as grafana from "@pulumiverse/grafana";
24
+ *
25
+ * const aContactPoint = new grafana.ContactPoint("aContactPoint", {emails: [{
26
+ * addresses: [
27
+ * "one@company.org",
28
+ * "two@company.org",
29
+ * ],
30
+ * message: "{{ len .Alerts.Firing }} firing.",
31
+ * }]});
32
+ * const aMuteTiming = new grafana.MuteTiming("aMuteTiming", {intervals: [{
33
+ * weekdays: ["monday"],
34
+ * }]});
35
+ * const myNotificationPolicy = new grafana.NotificationPolicy("myNotificationPolicy", {
36
+ * groupBies: ["..."],
37
+ * contactPoint: aContactPoint.name,
38
+ * groupWait: "45s",
39
+ * groupInterval: "6m",
40
+ * repeatInterval: "3h",
41
+ * policies: [
42
+ * {
43
+ * matchers: [
44
+ * {
45
+ * label: "mylabel",
46
+ * match: "=",
47
+ * value: "myvalue",
48
+ * },
49
+ * {
50
+ * label: "alertname",
51
+ * match: "=",
52
+ * value: "CPU Usage",
53
+ * },
54
+ * {
55
+ * label: "Name",
56
+ * match: "=~",
57
+ * value: "host.*|host-b.*",
58
+ * },
59
+ * ],
60
+ * contactPoint: aContactPoint.name,
61
+ * "continue": true,
62
+ * muteTimings: [aMuteTiming.name],
63
+ * groupWait: "45s",
64
+ * groupInterval: "6m",
65
+ * repeatInterval: "3h",
66
+ * policies: [{
67
+ * matchers: [{
68
+ * label: "sublabel",
69
+ * match: "=",
70
+ * value: "subvalue",
71
+ * }],
72
+ * contactPoint: aContactPoint.name,
73
+ * groupBies: ["..."],
74
+ * }],
75
+ * },
76
+ * {
77
+ * matchers: [{
78
+ * label: "anotherlabel",
79
+ * match: "=~",
80
+ * value: "another value.*",
81
+ * }],
82
+ * contactPoint: aContactPoint.name,
83
+ * groupBies: ["..."],
84
+ * },
85
+ * ],
86
+ * });
87
+ * ```
88
+ * <!--End PulumiCodeChooser -->
89
+ *
90
+ * ## Import
91
+ *
92
+ * ```sh
93
+ * $ pulumi import grafana:index/notificationPolicy:NotificationPolicy name "{{ anyString }}"
94
+ * ```
95
+ *
96
+ * ```sh
97
+ * $ pulumi import grafana:index/notificationPolicy:NotificationPolicy name "{{ orgID }}:{{ anyString }}"
98
+ * ```
99
+ */
8
100
  class NotificationPolicy extends pulumi.CustomResource {
9
101
  /**
10
102
  * Get an existing NotificationPolicy resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA4CD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,eAAe,CA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I,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AArGL,gDAsGC;AAxFG,gBAAgB;AACO,+BAAY,GAAG,qDAAqD,CAAC"}
@@ -1,4 +1,53 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [Official documentation](https://grafana.com/docs/oncall/latest/configure/escalation-chains-and-routes/)
4
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_policies/)
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * <!--Start PulumiCodeChooser -->
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as grafana from "@pulumi/grafana";
12
+ * import * as grafana from "@pulumiverse/grafana";
13
+ *
14
+ * const _default = new grafana.OncallEscalationChain("default", {}, {
15
+ * provider: grafana.oncall,
16
+ * });
17
+ * const alex = grafana.getOncallUser({
18
+ * username: "alex",
19
+ * });
20
+ * // Notify step
21
+ * const exampleNotifyStepOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepOncallEscalation", {
22
+ * escalationChainId: _default.id,
23
+ * type: "notify_persons",
24
+ * personsToNotifies: [alex.then(alex => alex.id)],
25
+ * position: 0,
26
+ * });
27
+ * // Wait step
28
+ * const exampleNotifyStepIndex_oncallEscalationOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepIndex/oncallEscalationOncallEscalation", {
29
+ * escalationChainId: _default.id,
30
+ * type: "wait",
31
+ * duration: 300,
32
+ * position: 1,
33
+ * });
34
+ * // Important step
35
+ * const exampleNotifyStepGrafanaIndex_oncallEscalationOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepGrafanaIndex/oncallEscalationOncallEscalation", {
36
+ * escalationChainId: _default.id,
37
+ * type: "notify_persons",
38
+ * important: true,
39
+ * personsToNotifies: [alex.then(alex => alex.id)],
40
+ * position: 0,
41
+ * });
42
+ * ```
43
+ * <!--End PulumiCodeChooser -->
44
+ *
45
+ * ## Import
46
+ *
47
+ * ```sh
48
+ * $ pulumi import grafana:index/oncallEscalation:OncallEscalation name "{{ id }}"
49
+ * ```
50
+ */
2
51
  export declare class OncallEscalation extends pulumi.CustomResource {
3
52
  /**
4
53
  * Get an existing OncallEscalation resource's state with the given name, ID, and optional extra
@@ -16,7 +65,7 @@ export declare class OncallEscalation extends pulumi.CustomResource {
16
65
  */
17
66
  static isInstance(obj: any): obj is OncallEscalation;
18
67
  /**
19
- * The ID of an Action for trigger_webhook type step.
68
+ * The ID of an Action for triggerWebhook type step.
20
69
  */
21
70
  readonly actionToTrigger: pulumi.Output<string | undefined>;
22
71
  /**
@@ -28,36 +77,35 @@ export declare class OncallEscalation extends pulumi.CustomResource {
28
77
  */
29
78
  readonly escalationChainId: pulumi.Output<string>;
30
79
  /**
31
- * The ID of a User Group for notify_user_group type step.
80
+ * The ID of a User Group for notify*user*group type step.
32
81
  */
33
82
  readonly groupToNotify: pulumi.Output<string | undefined>;
34
83
  /**
35
- * Will activate "important" personal notification rules. Actual for steps: notify_persons, notify_on_call_from_schedule
36
- * and notify_user_group,notify_team_members
84
+ * Will activate "important" personal notification rules. Actual for steps: notify*persons, notify*on*call*from*schedule and notify*user*group,notify*team_members
37
85
  */
38
86
  readonly important: pulumi.Output<boolean | undefined>;
39
87
  /**
40
- * The beginning of the time interval for notify_if_time_from_to type step in UTC (for example 08:00:00Z).
88
+ * The beginning of the time interval for notify*if*time*from*to type step in UTC (for example 08:00:00Z).
41
89
  */
42
90
  readonly notifyIfTimeFrom: pulumi.Output<string | undefined>;
43
91
  /**
44
- * The end of the time interval for notify_if_time_from_to type step in UTC (for example 18:00:00Z).
92
+ * The end of the time interval for notify*if*time*from*to type step in UTC (for example 18:00:00Z).
45
93
  */
46
94
  readonly notifyIfTimeTo: pulumi.Output<string | undefined>;
47
95
  /**
48
- * ID of a Schedule for notify_on_call_from_schedule type step.
96
+ * ID of a Schedule for notify*on*call*from*schedule type step.
49
97
  */
50
98
  readonly notifyOnCallFromSchedule: pulumi.Output<string | undefined>;
51
99
  /**
52
- * The ID of a Team for a notify_team_members type step.
100
+ * The ID of a Team for a notify*team*members type step.
53
101
  */
54
102
  readonly notifyToTeamMembers: pulumi.Output<string | undefined>;
55
103
  /**
56
- * The list of ID's of users for notify_persons type step.
104
+ * The list of ID's of users for notifyPersons type step.
57
105
  */
58
106
  readonly personsToNotifies: pulumi.Output<string[] | undefined>;
59
107
  /**
60
- * The list of ID's of users for notify_person_next_each_time type step.
108
+ * The list of ID's of users for notify*person*next*each*time type step.
61
109
  */
62
110
  readonly personsToNotifyNextEachTimes: pulumi.Output<string[] | undefined>;
63
111
  /**
@@ -65,11 +113,9 @@ export declare class OncallEscalation extends pulumi.CustomResource {
65
113
  */
66
114
  readonly position: pulumi.Output<number>;
67
115
  /**
68
- * The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule,
69
- * trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation,
70
- * notify_team_members
116
+ * The type of escalation policy. Can be wait, notify*persons, notify*person*next*each*time, notify*on*call*from*schedule, trigger*webhook, notify*user*group, resolve, notify*whole*channel, notify*if*time*from*to, repeat*escalation, notify*team_members
71
117
  */
72
- readonly type: pulumi.Output<string | undefined>;
118
+ readonly type: pulumi.Output<string>;
73
119
  /**
74
120
  * Create a OncallEscalation resource with the given unique name, arguments, and options.
75
121
  *
@@ -84,7 +130,7 @@ export declare class OncallEscalation extends pulumi.CustomResource {
84
130
  */
85
131
  export interface OncallEscalationState {
86
132
  /**
87
- * The ID of an Action for trigger_webhook type step.
133
+ * The ID of an Action for triggerWebhook type step.
88
134
  */
89
135
  actionToTrigger?: pulumi.Input<string>;
90
136
  /**
@@ -96,36 +142,35 @@ export interface OncallEscalationState {
96
142
  */
97
143
  escalationChainId?: pulumi.Input<string>;
98
144
  /**
99
- * The ID of a User Group for notify_user_group type step.
145
+ * The ID of a User Group for notify*user*group type step.
100
146
  */
101
147
  groupToNotify?: pulumi.Input<string>;
102
148
  /**
103
- * Will activate "important" personal notification rules. Actual for steps: notify_persons, notify_on_call_from_schedule
104
- * and notify_user_group,notify_team_members
149
+ * Will activate "important" personal notification rules. Actual for steps: notify*persons, notify*on*call*from*schedule and notify*user*group,notify*team_members
105
150
  */
106
151
  important?: pulumi.Input<boolean>;
107
152
  /**
108
- * The beginning of the time interval for notify_if_time_from_to type step in UTC (for example 08:00:00Z).
153
+ * The beginning of the time interval for notify*if*time*from*to type step in UTC (for example 08:00:00Z).
109
154
  */
110
155
  notifyIfTimeFrom?: pulumi.Input<string>;
111
156
  /**
112
- * The end of the time interval for notify_if_time_from_to type step in UTC (for example 18:00:00Z).
157
+ * The end of the time interval for notify*if*time*from*to type step in UTC (for example 18:00:00Z).
113
158
  */
114
159
  notifyIfTimeTo?: pulumi.Input<string>;
115
160
  /**
116
- * ID of a Schedule for notify_on_call_from_schedule type step.
161
+ * ID of a Schedule for notify*on*call*from*schedule type step.
117
162
  */
118
163
  notifyOnCallFromSchedule?: pulumi.Input<string>;
119
164
  /**
120
- * The ID of a Team for a notify_team_members type step.
165
+ * The ID of a Team for a notify*team*members type step.
121
166
  */
122
167
  notifyToTeamMembers?: pulumi.Input<string>;
123
168
  /**
124
- * The list of ID's of users for notify_persons type step.
169
+ * The list of ID's of users for notifyPersons type step.
125
170
  */
126
171
  personsToNotifies?: pulumi.Input<pulumi.Input<string>[]>;
127
172
  /**
128
- * The list of ID's of users for notify_person_next_each_time type step.
173
+ * The list of ID's of users for notify*person*next*each*time type step.
129
174
  */
130
175
  personsToNotifyNextEachTimes?: pulumi.Input<pulumi.Input<string>[]>;
131
176
  /**
@@ -133,9 +178,7 @@ export interface OncallEscalationState {
133
178
  */
134
179
  position?: pulumi.Input<number>;
135
180
  /**
136
- * The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule,
137
- * trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation,
138
- * notify_team_members
181
+ * The type of escalation policy. Can be wait, notify*persons, notify*person*next*each*time, notify*on*call*from*schedule, trigger*webhook, notify*user*group, resolve, notify*whole*channel, notify*if*time*from*to, repeat*escalation, notify*team_members
139
182
  */
140
183
  type?: pulumi.Input<string>;
141
184
  }
@@ -144,7 +187,7 @@ export interface OncallEscalationState {
144
187
  */
145
188
  export interface OncallEscalationArgs {
146
189
  /**
147
- * The ID of an Action for trigger_webhook type step.
190
+ * The ID of an Action for triggerWebhook type step.
148
191
  */
149
192
  actionToTrigger?: pulumi.Input<string>;
150
193
  /**
@@ -156,36 +199,35 @@ export interface OncallEscalationArgs {
156
199
  */
157
200
  escalationChainId: pulumi.Input<string>;
158
201
  /**
159
- * The ID of a User Group for notify_user_group type step.
202
+ * The ID of a User Group for notify*user*group type step.
160
203
  */
161
204
  groupToNotify?: pulumi.Input<string>;
162
205
  /**
163
- * Will activate "important" personal notification rules. Actual for steps: notify_persons, notify_on_call_from_schedule
164
- * and notify_user_group,notify_team_members
206
+ * Will activate "important" personal notification rules. Actual for steps: notify*persons, notify*on*call*from*schedule and notify*user*group,notify*team_members
165
207
  */
166
208
  important?: pulumi.Input<boolean>;
167
209
  /**
168
- * The beginning of the time interval for notify_if_time_from_to type step in UTC (for example 08:00:00Z).
210
+ * The beginning of the time interval for notify*if*time*from*to type step in UTC (for example 08:00:00Z).
169
211
  */
170
212
  notifyIfTimeFrom?: pulumi.Input<string>;
171
213
  /**
172
- * The end of the time interval for notify_if_time_from_to type step in UTC (for example 18:00:00Z).
214
+ * The end of the time interval for notify*if*time*from*to type step in UTC (for example 18:00:00Z).
173
215
  */
174
216
  notifyIfTimeTo?: pulumi.Input<string>;
175
217
  /**
176
- * ID of a Schedule for notify_on_call_from_schedule type step.
218
+ * ID of a Schedule for notify*on*call*from*schedule type step.
177
219
  */
178
220
  notifyOnCallFromSchedule?: pulumi.Input<string>;
179
221
  /**
180
- * The ID of a Team for a notify_team_members type step.
222
+ * The ID of a Team for a notify*team*members type step.
181
223
  */
182
224
  notifyToTeamMembers?: pulumi.Input<string>;
183
225
  /**
184
- * The list of ID's of users for notify_persons type step.
226
+ * The list of ID's of users for notifyPersons type step.
185
227
  */
186
228
  personsToNotifies?: pulumi.Input<pulumi.Input<string>[]>;
187
229
  /**
188
- * The list of ID's of users for notify_person_next_each_time type step.
230
+ * The list of ID's of users for notify*person*next*each*time type step.
189
231
  */
190
232
  personsToNotifyNextEachTimes?: pulumi.Input<pulumi.Input<string>[]>;
191
233
  /**
@@ -193,9 +235,7 @@ export interface OncallEscalationArgs {
193
235
  */
194
236
  position: pulumi.Input<number>;
195
237
  /**
196
- * The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule,
197
- * trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation,
198
- * notify_team_members
238
+ * The type of escalation policy. Can be wait, notify*persons, notify*person*next*each*time, notify*on*call*from*schedule, trigger*webhook, notify*user*group, resolve, notify*whole*channel, notify*if*time*from*to, repeat*escalation, notify*team_members
199
239
  */
200
- type?: pulumi.Input<string>;
240
+ type: pulumi.Input<string>;
201
241
  }
@@ -5,6 +5,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.OncallEscalation = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * * [Official documentation](https://grafana.com/docs/oncall/latest/configure/escalation-chains-and-routes/)
10
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_policies/)
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * <!--Start PulumiCodeChooser -->
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as grafana from "@pulumi/grafana";
18
+ * import * as grafana from "@pulumiverse/grafana";
19
+ *
20
+ * const _default = new grafana.OncallEscalationChain("default", {}, {
21
+ * provider: grafana.oncall,
22
+ * });
23
+ * const alex = grafana.getOncallUser({
24
+ * username: "alex",
25
+ * });
26
+ * // Notify step
27
+ * const exampleNotifyStepOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepOncallEscalation", {
28
+ * escalationChainId: _default.id,
29
+ * type: "notify_persons",
30
+ * personsToNotifies: [alex.then(alex => alex.id)],
31
+ * position: 0,
32
+ * });
33
+ * // Wait step
34
+ * const exampleNotifyStepIndex_oncallEscalationOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepIndex/oncallEscalationOncallEscalation", {
35
+ * escalationChainId: _default.id,
36
+ * type: "wait",
37
+ * duration: 300,
38
+ * position: 1,
39
+ * });
40
+ * // Important step
41
+ * const exampleNotifyStepGrafanaIndex_oncallEscalationOncallEscalation = new grafana.OncallEscalation("exampleNotifyStepGrafanaIndex/oncallEscalationOncallEscalation", {
42
+ * escalationChainId: _default.id,
43
+ * type: "notify_persons",
44
+ * important: true,
45
+ * personsToNotifies: [alex.then(alex => alex.id)],
46
+ * position: 0,
47
+ * });
48
+ * ```
49
+ * <!--End PulumiCodeChooser -->
50
+ *
51
+ * ## Import
52
+ *
53
+ * ```sh
54
+ * $ pulumi import grafana:index/oncallEscalation:OncallEscalation name "{{ id }}"
55
+ * ```
56
+ */
8
57
  class OncallEscalation extends pulumi.CustomResource {
9
58
  /**
10
59
  * Get an existing OncallEscalation resource's state with the given name, ID, and optional extra
@@ -55,6 +104,9 @@ class OncallEscalation extends pulumi.CustomResource {
55
104
  if ((!args || args.position === undefined) && !opts.urn) {
56
105
  throw new Error("Missing required property 'position'");
57
106
  }
107
+ if ((!args || args.type === undefined) && !opts.urn) {
108
+ throw new Error("Missing required property 'type'");
109
+ }
58
110
  resourceInputs["actionToTrigger"] = args ? args.actionToTrigger : undefined;
59
111
  resourceInputs["duration"] = args ? args.duration : undefined;
60
112
  resourceInputs["escalationChainId"] = args ? args.escalationChainId : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"oncallEscalation.js","sourceRoot":"","sources":["../oncallEscalation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAkED,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CA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I,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,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,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAtIL,4CAuIC;AAzHG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,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/escalation_chains/)
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 _default = new grafana.OncallEscalationChain("default", {}, {
13
+ * provider: grafana.oncall,
14
+ * });
15
+ * ```
16
+ * <!--End PulumiCodeChooser -->
17
+ *
18
+ * ## Import
19
+ *
20
+ * ```sh
21
+ * $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain name "{{ id }}"
22
+ * ```
23
+ */
2
24
  export declare class OncallEscalationChain extends pulumi.CustomResource {
3
25
  /**
4
26
  * Get an existing OncallEscalationChain resource's state with the given name, ID, and optional extra
@@ -20,8 +42,7 @@ export declare class OncallEscalationChain extends pulumi.CustomResource {
20
42
  */
21
43
  readonly name: pulumi.Output<string>;
22
44
  /**
23
- * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
24
- * with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
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 with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
25
46
  */
26
47
  readonly teamId: pulumi.Output<string | undefined>;
27
48
  /**
@@ -42,8 +63,7 @@ export interface OncallEscalationChainState {
42
63
  */
43
64
  name?: pulumi.Input<string>;
44
65
  /**
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.
66
+ * 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
67
  */
48
68
  teamId?: pulumi.Input<string>;
49
69
  }
@@ -56,8 +76,7 @@ export interface OncallEscalationChainArgs {
56
76
  */
57
77
  name?: pulumi.Input<string>;
58
78
  /**
59
- * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
60
- * with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
79
+ * 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.
61
80
  */
62
81
  teamId?: pulumi.Input<string>;
63
82
  }
@@ -5,6 +5,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.OncallEscalationChain = 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/escalation_chains/)
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 _default = new grafana.OncallEscalationChain("default", {}, {
19
+ * provider: grafana.oncall,
20
+ * });
21
+ * ```
22
+ * <!--End PulumiCodeChooser -->
23
+ *
24
+ * ## Import
25
+ *
26
+ * ```sh
27
+ * $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain name "{{ id }}"
28
+ * ```
29
+ */
8
30
  class OncallEscalationChain extends pulumi.CustomResource {
9
31
  /**
10
32
  * Get an existing OncallEscalationChain resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"oncallEscalationChain.js","sourceRoot":"","sources":["../oncallEscalationChain.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;IAoBD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,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,GAA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AAC,YAAY,CAAC;IACtE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,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;;AA3DL,sDA4DC;AA9CG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
@@ -1,6 +1,16 @@
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
+ * * [Official documentation](https://grafana.com/docs/oncall/latest/integrations/)
6
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
7
+ *
8
+ * ## Import
9
+ *
10
+ * ```sh
11
+ * $ pulumi import grafana:index/oncallIntegration:OncallIntegration name "{{ id }}"
12
+ * ```
13
+ */
4
14
  export declare class OncallIntegration extends pulumi.CustomResource {
5
15
  /**
6
16
  * Get an existing OncallIntegration resource's state with the given name, ID, and optional extra
@@ -30,8 +40,7 @@ export declare class OncallIntegration extends pulumi.CustomResource {
30
40
  */
31
41
  readonly name: pulumi.Output<string>;
32
42
  /**
33
- * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
34
- * with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
43
+ * 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.
35
44
  */
36
45
  readonly teamId: pulumi.Output<string | undefined>;
37
46
  /**
@@ -39,9 +48,7 @@ export declare class OncallIntegration extends pulumi.CustomResource {
39
48
  */
40
49
  readonly templates: pulumi.Output<outputs.OncallIntegrationTemplates | undefined>;
41
50
  /**
42
- * The type of integration. Can be grafana, grafana_alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog,
43
- * pagerduty, pingdom, elastalert, amazon_sns, curler, sentry, formatted_webhook, heartbeat, demo, manual, stackdriver,
44
- * uptimerobot, sentry_platform, zabbix, prtg, slack_channel, inbound_email, direct_paging, jira.
51
+ * The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
45
52
  */
46
53
  readonly type: pulumi.Output<string>;
47
54
  /**
@@ -70,8 +77,7 @@ export interface OncallIntegrationState {
70
77
  */
71
78
  name?: pulumi.Input<string>;
72
79
  /**
73
- * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
74
- * with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
80
+ * 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.
75
81
  */
76
82
  teamId?: pulumi.Input<string>;
77
83
  /**
@@ -79,9 +85,7 @@ export interface OncallIntegrationState {
79
85
  */
80
86
  templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
81
87
  /**
82
- * The type of integration. Can be grafana, grafana_alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog,
83
- * pagerduty, pingdom, elastalert, amazon_sns, curler, sentry, formatted_webhook, heartbeat, demo, manual, stackdriver,
84
- * uptimerobot, sentry_platform, zabbix, prtg, slack_channel, inbound_email, direct_paging, jira.
88
+ * The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
85
89
  */
86
90
  type?: pulumi.Input<string>;
87
91
  }
@@ -98,8 +102,7 @@ export interface OncallIntegrationArgs {
98
102
  */
99
103
  name?: pulumi.Input<string>;
100
104
  /**
101
- * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team
102
- * with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
105
+ * 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.
103
106
  */
104
107
  teamId?: pulumi.Input<string>;
105
108
  /**
@@ -107,9 +110,7 @@ export interface OncallIntegrationArgs {
107
110
  */
108
111
  templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
109
112
  /**
110
- * The type of integration. Can be grafana, grafana_alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog,
111
- * pagerduty, pingdom, elastalert, amazon_sns, curler, sentry, formatted_webhook, heartbeat, demo, manual, stackdriver,
112
- * uptimerobot, sentry_platform, zabbix, prtg, slack_channel, inbound_email, direct_paging, jira.
113
+ * The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
113
114
  */
114
115
  type: pulumi.Input<string>;
115
116
  }
@@ -5,6 +5,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.OncallIntegration = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * * [Official documentation](https://grafana.com/docs/oncall/latest/integrations/)
10
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
11
+ *
12
+ * ## Import
13
+ *
14
+ * ```sh
15
+ * $ pulumi import grafana:index/oncallIntegration:OncallIntegration name "{{ id }}"
16
+ * ```
17
+ */
8
18
  class OncallIntegration extends pulumi.CustomResource {
9
19
  /**
10
20
  * Get an existing OncallIntegration resource's state with the given name, ID, and optional extra