@pulumiverse/grafana 0.2.1-alpha.1709570924

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 (252) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +54 -0
  3. package/annotation.d.ts +151 -0
  4. package/annotation.js +79 -0
  5. package/annotation.js.map +1 -0
  6. package/apiKey.d.ts +77 -0
  7. package/apiKey.js +80 -0
  8. package/apiKey.js.map +1 -0
  9. package/cloudAccessPolicy.d.ts +156 -0
  10. package/cloudAccessPolicy.js +115 -0
  11. package/cloudAccessPolicy.js.map +1 -0
  12. package/cloudAccessPolicyToken.d.ts +151 -0
  13. package/cloudAccessPolicyToken.js +108 -0
  14. package/cloudAccessPolicyToken.js.map +1 -0
  15. package/cloudApiKey.d.ts +102 -0
  16. package/cloudApiKey.js +85 -0
  17. package/cloudApiKey.js.map +1 -0
  18. package/cloudPluginInstallation.d.ts +96 -0
  19. package/cloudPluginInstallation.js +86 -0
  20. package/cloudPluginInstallation.js.map +1 -0
  21. package/cloudStack.d.ts +291 -0
  22. package/cloudStack.js +142 -0
  23. package/cloudStack.js.map +1 -0
  24. package/cloudStackApiKey.d.ts +52 -0
  25. package/cloudStackApiKey.js +67 -0
  26. package/cloudStackApiKey.js.map +1 -0
  27. package/cloudStackServiceAccount.d.ts +97 -0
  28. package/cloudStackServiceAccount.js +80 -0
  29. package/cloudStackServiceAccount.js.map +1 -0
  30. package/cloudStackServiceAccountToken.d.ts +78 -0
  31. package/cloudStackServiceAccountToken.js +93 -0
  32. package/cloudStackServiceAccountToken.js.map +1 -0
  33. package/config/index.d.ts +1 -0
  34. package/config/index.js +21 -0
  35. package/config/index.js.map +1 -0
  36. package/config/vars.d.ts +89 -0
  37. package/config/vars.js +131 -0
  38. package/config/vars.js.map +1 -0
  39. package/contactPoint.d.ts +310 -0
  40. package/contactPoint.js +119 -0
  41. package/contactPoint.js.map +1 -0
  42. package/dashboard.d.ts +154 -0
  43. package/dashboard.js +94 -0
  44. package/dashboard.js.map +1 -0
  45. package/dashboardPermission.d.ts +131 -0
  46. package/dashboardPermission.js +97 -0
  47. package/dashboardPermission.js.map +1 -0
  48. package/dataSource.d.ts +294 -0
  49. package/dataSource.js +164 -0
  50. package/dataSource.js.map +1 -0
  51. package/dataSourcePermission.d.ts +124 -0
  52. package/dataSourcePermission.js +109 -0
  53. package/dataSourcePermission.js.map +1 -0
  54. package/folder.d.ts +127 -0
  55. package/folder.js +95 -0
  56. package/folder.js.map +1 -0
  57. package/folderPermission.d.ts +106 -0
  58. package/folderPermission.js +91 -0
  59. package/folderPermission.js.map +1 -0
  60. package/getCloudIps.d.ts +56 -0
  61. package/getCloudIps.js +41 -0
  62. package/getCloudIps.js.map +1 -0
  63. package/getCloudOrganization.d.ts +37 -0
  64. package/getCloudOrganization.js +21 -0
  65. package/getCloudOrganization.js.map +1 -0
  66. package/getCloudStack.d.ts +130 -0
  67. package/getCloudStack.js +25 -0
  68. package/getCloudStack.js.map +1 -0
  69. package/getDashboard.d.ts +134 -0
  70. package/getDashboard.js +81 -0
  71. package/getDashboard.js.map +1 -0
  72. package/getDashboards.d.ts +74 -0
  73. package/getDashboards.js +36 -0
  74. package/getDashboards.js.map +1 -0
  75. package/getDataSource.d.ts +156 -0
  76. package/getDataSource.js +95 -0
  77. package/getDataSource.js.map +1 -0
  78. package/getFolder.d.ts +82 -0
  79. package/getFolder.js +59 -0
  80. package/getFolder.js.map +1 -0
  81. package/getFolders.d.ts +61 -0
  82. package/getFolders.js +61 -0
  83. package/getFolders.js.map +1 -0
  84. package/getLibraryPanel.d.ts +108 -0
  85. package/getLibraryPanel.js +28 -0
  86. package/getLibraryPanel.js.map +1 -0
  87. package/getOnCallSlackChannel.d.ts +66 -0
  88. package/getOnCallSlackChannel.js +47 -0
  89. package/getOnCallSlackChannel.js.map +1 -0
  90. package/getOncallAction.d.ts +46 -0
  91. package/getOncallAction.js +31 -0
  92. package/getOncallAction.js.map +1 -0
  93. package/getOncallEscalationChain.d.ts +62 -0
  94. package/getOncallEscalationChain.js +47 -0
  95. package/getOncallEscalationChain.js.map +1 -0
  96. package/getOncallOutgoingWebhook.d.ts +62 -0
  97. package/getOncallOutgoingWebhook.js +47 -0
  98. package/getOncallOutgoingWebhook.js.map +1 -0
  99. package/getOncallSchedule.d.ts +68 -0
  100. package/getOncallSchedule.js +49 -0
  101. package/getOncallSchedule.js.map +1 -0
  102. package/getOncallTeam.d.ts +60 -0
  103. package/getOncallTeam.js +43 -0
  104. package/getOncallTeam.js.map +1 -0
  105. package/getOncallUser.d.ts +70 -0
  106. package/getOncallUser.js +47 -0
  107. package/getOncallUser.js.map +1 -0
  108. package/getOncallUserGroup.d.ts +54 -0
  109. package/getOncallUserGroup.js +47 -0
  110. package/getOncallUserGroup.js.map +1 -0
  111. package/getOrganization.d.ts +94 -0
  112. package/getOrganization.js +67 -0
  113. package/getOrganization.js.map +1 -0
  114. package/getOrganizationPreferences.d.ts +62 -0
  115. package/getOrganizationPreferences.js +43 -0
  116. package/getOrganizationPreferences.js.map +1 -0
  117. package/getRole.d.ts +147 -0
  118. package/getRole.js +95 -0
  119. package/getRole.js.map +1 -0
  120. package/getSlos.d.ts +31 -0
  121. package/getSlos.js +31 -0
  122. package/getSlos.js.map +1 -0
  123. package/getSyntheticMonitoringProbe.d.ts +88 -0
  124. package/getSyntheticMonitoringProbe.js +47 -0
  125. package/getSyntheticMonitoringProbe.js.map +1 -0
  126. package/getSyntheticMonitoringProbes.d.ts +64 -0
  127. package/getSyntheticMonitoringProbes.js +44 -0
  128. package/getSyntheticMonitoringProbes.js.map +1 -0
  129. package/getTeam.d.ts +83 -0
  130. package/getTeam.js +67 -0
  131. package/getTeam.js.map +1 -0
  132. package/getUser.d.ts +128 -0
  133. package/getUser.js +84 -0
  134. package/getUser.js.map +1 -0
  135. package/getUsers.d.ts +61 -0
  136. package/getUsers.js +61 -0
  137. package/getUsers.js.map +1 -0
  138. package/index.d.ts +228 -0
  139. package/index.js +353 -0
  140. package/index.js.map +1 -0
  141. package/libraryPanel.d.ts +193 -0
  142. package/libraryPanel.js +103 -0
  143. package/libraryPanel.js.map +1 -0
  144. package/machineLearningHoliday.d.ts +103 -0
  145. package/machineLearningHoliday.js +62 -0
  146. package/machineLearningHoliday.js.map +1 -0
  147. package/machineLearningJob.d.ts +201 -0
  148. package/machineLearningJob.js +83 -0
  149. package/machineLearningJob.js.map +1 -0
  150. package/machineLearningOutlierDetector.d.ts +159 -0
  151. package/machineLearningOutlierDetector.js +84 -0
  152. package/machineLearningOutlierDetector.js.map +1 -0
  153. package/messageTemplate.d.ts +86 -0
  154. package/messageTemplate.js +80 -0
  155. package/messageTemplate.js.map +1 -0
  156. package/muteTiming.d.ts +106 -0
  157. package/muteTiming.js +95 -0
  158. package/muteTiming.js.map +1 -0
  159. package/notificationPolicy.d.ts +186 -0
  160. package/notificationPolicy.js +141 -0
  161. package/notificationPolicy.js.map +1 -0
  162. package/oncallEscalation.d.ts +227 -0
  163. package/oncallEscalation.js +124 -0
  164. package/oncallEscalation.js.map +1 -0
  165. package/oncallEscalationChain.d.ts +80 -0
  166. package/oncallEscalationChain.js +71 -0
  167. package/oncallEscalationChain.js.map +1 -0
  168. package/oncallIntegration.d.ts +116 -0
  169. package/oncallIntegration.js +75 -0
  170. package/oncallIntegration.js.map +1 -0
  171. package/oncallOnCallShift.d.ts +237 -0
  172. package/oncallOnCallShift.js +97 -0
  173. package/oncallOnCallShift.js.map +1 -0
  174. package/oncallOutgoingWebhook.d.ts +152 -0
  175. package/oncallOutgoingWebhook.js +88 -0
  176. package/oncallOutgoingWebhook.js.map +1 -0
  177. package/oncallRoute.d.ts +175 -0
  178. package/oncallRoute.js +116 -0
  179. package/oncallRoute.js.map +1 -0
  180. package/oncallSchedule.d.ts +187 -0
  181. package/oncallSchedule.js +109 -0
  182. package/oncallSchedule.js.map +1 -0
  183. package/organization.d.ts +193 -0
  184. package/organization.js +96 -0
  185. package/organization.js.map +1 -0
  186. package/organizationPreference.d.ts +125 -0
  187. package/organizationPreference.js +76 -0
  188. package/organizationPreference.js.map +1 -0
  189. package/package.json +30 -0
  190. package/package.json.bak +29 -0
  191. package/package.json.dev +29 -0
  192. package/playlist.d.ts +72 -0
  193. package/playlist.js +65 -0
  194. package/playlist.js.map +1 -0
  195. package/provider.d.ts +166 -0
  196. package/provider.js +64 -0
  197. package/provider.js.map +1 -0
  198. package/report.d.ts +241 -0
  199. package/report.js +110 -0
  200. package/report.js.map +1 -0
  201. package/role.d.ts +210 -0
  202. package/role.js +109 -0
  203. package/role.js.map +1 -0
  204. package/roleAssignment.d.ts +131 -0
  205. package/roleAssignment.js +95 -0
  206. package/roleAssignment.js.map +1 -0
  207. package/ruleGroup.d.ts +203 -0
  208. package/ruleGroup.js +174 -0
  209. package/ruleGroup.js.map +1 -0
  210. package/scripts/install-pulumi-plugin.js +21 -0
  211. package/serviceAccount.d.ts +102 -0
  212. package/serviceAccount.js +73 -0
  213. package/serviceAccount.js.map +1 -0
  214. package/serviceAccountPermission.d.ts +110 -0
  215. package/serviceAccountPermission.js +95 -0
  216. package/serviceAccountPermission.js.map +1 -0
  217. package/serviceAccountToken.d.ts +72 -0
  218. package/serviceAccountToken.js +85 -0
  219. package/serviceAccountToken.js.map +1 -0
  220. package/slo.d.ts +131 -0
  221. package/slo.js +77 -0
  222. package/slo.js.map +1 -0
  223. package/syntheticMonitoringCheck.d.ts +555 -0
  224. package/syntheticMonitoringCheck.js +464 -0
  225. package/syntheticMonitoringCheck.js.map +1 -0
  226. package/syntheticMonitoringInstallation.d.ts +112 -0
  227. package/syntheticMonitoringInstallation.js +95 -0
  228. package/syntheticMonitoringInstallation.js.map +1 -0
  229. package/syntheticMonitoringProbe.d.ts +164 -0
  230. package/syntheticMonitoringProbe.js +108 -0
  231. package/syntheticMonitoringProbe.js.map +1 -0
  232. package/team.d.ts +165 -0
  233. package/team.js +89 -0
  234. package/team.js.map +1 -0
  235. package/teamExternalGroup.d.ts +84 -0
  236. package/teamExternalGroup.js +81 -0
  237. package/teamExternalGroup.js.map +1 -0
  238. package/types/index.d.ts +3 -0
  239. package/types/index.js +11 -0
  240. package/types/index.js.map +1 -0
  241. package/types/input.d.ts +1914 -0
  242. package/types/input.js +5 -0
  243. package/types/input.js.map +1 -0
  244. package/types/output.d.ts +2011 -0
  245. package/types/output.js +5 -0
  246. package/types/output.js.map +1 -0
  247. package/user.d.ts +132 -0
  248. package/user.js +95 -0
  249. package/user.js.map +1 -0
  250. package/utilities.d.ts +4 -0
  251. package/utilities.js +69 -0
  252. package/utilities.js.map +1 -0
@@ -0,0 +1,159 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * An outlier detector monitors the results of a query and reports when its values are outside normal bands.
6
+ *
7
+ * The normal band is configured by choice of algorithm, its sensitivity and other configuration.
8
+ *
9
+ * Visit https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for more details.
10
+ */
11
+ export declare class MachineLearningOutlierDetector extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing MachineLearningOutlierDetector resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MachineLearningOutlierDetectorState, opts?: pulumi.CustomResourceOptions): MachineLearningOutlierDetector;
22
+ /**
23
+ * Returns true if the given object is an instance of MachineLearningOutlierDetector. This is designed to work even
24
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
25
+ */
26
+ static isInstance(obj: any): obj is MachineLearningOutlierDetector;
27
+ /**
28
+ * The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
29
+ */
30
+ readonly algorithm: pulumi.Output<outputs.MachineLearningOutlierDetectorAlgorithm>;
31
+ /**
32
+ * The id of the datasource to query.
33
+ */
34
+ readonly datasourceId: pulumi.Output<number | undefined>;
35
+ /**
36
+ * The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
37
+ */
38
+ readonly datasourceType: pulumi.Output<string>;
39
+ /**
40
+ * The uid of the datasource to query.
41
+ */
42
+ readonly datasourceUid: pulumi.Output<string | undefined>;
43
+ /**
44
+ * A description of the outlier detector.
45
+ */
46
+ readonly description: pulumi.Output<string | undefined>;
47
+ /**
48
+ * The data interval in seconds to monitor. Defaults to `300`.
49
+ */
50
+ readonly interval: pulumi.Output<number | undefined>;
51
+ /**
52
+ * The metric used to query the outlier detector results.
53
+ */
54
+ readonly metric: pulumi.Output<string>;
55
+ /**
56
+ * The name of the algorithm to use ('mad' or 'dbscan').
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * An object representing the query params to query Grafana with.
61
+ */
62
+ readonly queryParams: pulumi.Output<{
63
+ [key: string]: any;
64
+ }>;
65
+ /**
66
+ * Create a MachineLearningOutlierDetector resource with the given unique name, arguments, and options.
67
+ *
68
+ * @param name The _unique_ name of the resource.
69
+ * @param args The arguments to use to populate this resource's properties.
70
+ * @param opts A bag of options that control this resource's behavior.
71
+ */
72
+ constructor(name: string, args: MachineLearningOutlierDetectorArgs, opts?: pulumi.CustomResourceOptions);
73
+ }
74
+ /**
75
+ * Input properties used for looking up and filtering MachineLearningOutlierDetector resources.
76
+ */
77
+ export interface MachineLearningOutlierDetectorState {
78
+ /**
79
+ * The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
80
+ */
81
+ algorithm?: pulumi.Input<inputs.MachineLearningOutlierDetectorAlgorithm>;
82
+ /**
83
+ * The id of the datasource to query.
84
+ */
85
+ datasourceId?: pulumi.Input<number>;
86
+ /**
87
+ * The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
88
+ */
89
+ datasourceType?: pulumi.Input<string>;
90
+ /**
91
+ * The uid of the datasource to query.
92
+ */
93
+ datasourceUid?: pulumi.Input<string>;
94
+ /**
95
+ * A description of the outlier detector.
96
+ */
97
+ description?: pulumi.Input<string>;
98
+ /**
99
+ * The data interval in seconds to monitor. Defaults to `300`.
100
+ */
101
+ interval?: pulumi.Input<number>;
102
+ /**
103
+ * The metric used to query the outlier detector results.
104
+ */
105
+ metric?: pulumi.Input<string>;
106
+ /**
107
+ * The name of the algorithm to use ('mad' or 'dbscan').
108
+ */
109
+ name?: pulumi.Input<string>;
110
+ /**
111
+ * An object representing the query params to query Grafana with.
112
+ */
113
+ queryParams?: pulumi.Input<{
114
+ [key: string]: any;
115
+ }>;
116
+ }
117
+ /**
118
+ * The set of arguments for constructing a MachineLearningOutlierDetector resource.
119
+ */
120
+ export interface MachineLearningOutlierDetectorArgs {
121
+ /**
122
+ * The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
123
+ */
124
+ algorithm: pulumi.Input<inputs.MachineLearningOutlierDetectorAlgorithm>;
125
+ /**
126
+ * The id of the datasource to query.
127
+ */
128
+ datasourceId?: pulumi.Input<number>;
129
+ /**
130
+ * The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
131
+ */
132
+ datasourceType: pulumi.Input<string>;
133
+ /**
134
+ * The uid of the datasource to query.
135
+ */
136
+ datasourceUid?: pulumi.Input<string>;
137
+ /**
138
+ * A description of the outlier detector.
139
+ */
140
+ description?: pulumi.Input<string>;
141
+ /**
142
+ * The data interval in seconds to monitor. Defaults to `300`.
143
+ */
144
+ interval?: pulumi.Input<number>;
145
+ /**
146
+ * The metric used to query the outlier detector results.
147
+ */
148
+ metric: pulumi.Input<string>;
149
+ /**
150
+ * The name of the algorithm to use ('mad' or 'dbscan').
151
+ */
152
+ name?: pulumi.Input<string>;
153
+ /**
154
+ * An object representing the query params to query Grafana with.
155
+ */
156
+ queryParams: pulumi.Input<{
157
+ [key: string]: any;
158
+ }>;
159
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.MachineLearningOutlierDetector = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * An outlier detector monitors the results of a query and reports when its values are outside normal bands.
10
+ *
11
+ * The normal band is configured by choice of algorithm, its sensitivity and other configuration.
12
+ *
13
+ * Visit https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for more details.
14
+ */
15
+ class MachineLearningOutlierDetector extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing MachineLearningOutlierDetector resource's state with the given name, ID, and optional extra
18
+ * properties used to qualify the lookup.
19
+ *
20
+ * @param name The _unique_ name of the resulting resource.
21
+ * @param id The _unique_ provider ID of the resource to lookup.
22
+ * @param state Any extra arguments used during the lookup.
23
+ * @param opts Optional settings to control the behavior of the CustomResource.
24
+ */
25
+ static get(name, id, state, opts) {
26
+ return new MachineLearningOutlierDetector(name, state, Object.assign(Object.assign({}, opts), { id: id }));
27
+ }
28
+ /**
29
+ * Returns true if the given object is an instance of MachineLearningOutlierDetector. This is designed to work even
30
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
31
+ */
32
+ static isInstance(obj) {
33
+ if (obj === undefined || obj === null) {
34
+ return false;
35
+ }
36
+ return obj['__pulumiType'] === MachineLearningOutlierDetector.__pulumiType;
37
+ }
38
+ constructor(name, argsOrState, opts) {
39
+ let resourceInputs = {};
40
+ opts = opts || {};
41
+ if (opts.id) {
42
+ const state = argsOrState;
43
+ resourceInputs["algorithm"] = state ? state.algorithm : undefined;
44
+ resourceInputs["datasourceId"] = state ? state.datasourceId : undefined;
45
+ resourceInputs["datasourceType"] = state ? state.datasourceType : undefined;
46
+ resourceInputs["datasourceUid"] = state ? state.datasourceUid : undefined;
47
+ resourceInputs["description"] = state ? state.description : undefined;
48
+ resourceInputs["interval"] = state ? state.interval : undefined;
49
+ resourceInputs["metric"] = state ? state.metric : undefined;
50
+ resourceInputs["name"] = state ? state.name : undefined;
51
+ resourceInputs["queryParams"] = state ? state.queryParams : undefined;
52
+ }
53
+ else {
54
+ const args = argsOrState;
55
+ if ((!args || args.algorithm === undefined) && !opts.urn) {
56
+ throw new Error("Missing required property 'algorithm'");
57
+ }
58
+ if ((!args || args.datasourceType === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'datasourceType'");
60
+ }
61
+ if ((!args || args.metric === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'metric'");
63
+ }
64
+ if ((!args || args.queryParams === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'queryParams'");
66
+ }
67
+ resourceInputs["algorithm"] = args ? args.algorithm : undefined;
68
+ resourceInputs["datasourceId"] = args ? args.datasourceId : undefined;
69
+ resourceInputs["datasourceType"] = args ? args.datasourceType : undefined;
70
+ resourceInputs["datasourceUid"] = args ? args.datasourceUid : undefined;
71
+ resourceInputs["description"] = args ? args.description : undefined;
72
+ resourceInputs["interval"] = args ? args.interval : undefined;
73
+ resourceInputs["metric"] = args ? args.metric : undefined;
74
+ resourceInputs["name"] = args ? args.name : undefined;
75
+ resourceInputs["queryParams"] = args ? args.queryParams : undefined;
76
+ }
77
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
78
+ super(MachineLearningOutlierDetector.__pulumiType, name, resourceInputs, opts);
79
+ }
80
+ }
81
+ exports.MachineLearningOutlierDetector = MachineLearningOutlierDetector;
82
+ /** @internal */
83
+ MachineLearningOutlierDetector.__pulumiType = 'grafana:index/machineLearningOutlierDetector:MachineLearningOutlierDetector';
84
+ //# sourceMappingURL=machineLearningOutlierDetector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machineLearningOutlierDetector.js","sourceRoot":"","sources":["../machineLearningOutlierDetector.ts"],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A6E,CAAC"}
@@ -0,0 +1,86 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages Grafana Alerting message templates.
4
+ *
5
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/template-notifications/create-notification-templates/)
6
+ * * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#templates)
7
+ *
8
+ * This resource requires Grafana 9.1.0 or later.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as grafana from "@pulumiverse/grafana";
15
+ *
16
+ * const myTemplate = new grafana.MessageTemplate("myTemplate", {template: `{{define "My Reusable Template" }}
17
+ * template content
18
+ * {{ end }}
19
+ * `});
20
+ * ```
21
+ *
22
+ * ## Import
23
+ *
24
+ * ```sh
25
+ * $ pulumi import grafana:index/messageTemplate:MessageTemplate message_template_name {{message_template_name}}
26
+ * ```
27
+ */
28
+ export declare class MessageTemplate extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing MessageTemplate resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MessageTemplateState, opts?: pulumi.CustomResourceOptions): MessageTemplate;
39
+ /**
40
+ * Returns true if the given object is an instance of MessageTemplate. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is MessageTemplate;
44
+ /**
45
+ * The name of the message template.
46
+ */
47
+ readonly name: pulumi.Output<string>;
48
+ /**
49
+ * The content of the message template.
50
+ */
51
+ readonly template: pulumi.Output<string>;
52
+ /**
53
+ * Create a MessageTemplate resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: MessageTemplateArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * Input properties used for looking up and filtering MessageTemplate resources.
63
+ */
64
+ export interface MessageTemplateState {
65
+ /**
66
+ * The name of the message template.
67
+ */
68
+ name?: pulumi.Input<string>;
69
+ /**
70
+ * The content of the message template.
71
+ */
72
+ template?: pulumi.Input<string>;
73
+ }
74
+ /**
75
+ * The set of arguments for constructing a MessageTemplate resource.
76
+ */
77
+ export interface MessageTemplateArgs {
78
+ /**
79
+ * The name of the message template.
80
+ */
81
+ name?: pulumi.Input<string>;
82
+ /**
83
+ * The content of the message template.
84
+ */
85
+ template: pulumi.Input<string>;
86
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.MessageTemplate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages Grafana Alerting message templates.
10
+ *
11
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/template-notifications/create-notification-templates/)
12
+ * * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#templates)
13
+ *
14
+ * This resource requires Grafana 9.1.0 or later.
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as grafana from "@pulumiverse/grafana";
21
+ *
22
+ * const myTemplate = new grafana.MessageTemplate("myTemplate", {template: `{{define "My Reusable Template" }}
23
+ * template content
24
+ * {{ end }}
25
+ * `});
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * ```sh
31
+ * $ pulumi import grafana:index/messageTemplate:MessageTemplate message_template_name {{message_template_name}}
32
+ * ```
33
+ */
34
+ class MessageTemplate extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing MessageTemplate resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new MessageTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
46
+ }
47
+ /**
48
+ * Returns true if the given object is an instance of MessageTemplate. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj) {
52
+ if (obj === undefined || obj === null) {
53
+ return false;
54
+ }
55
+ return obj['__pulumiType'] === MessageTemplate.__pulumiType;
56
+ }
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["name"] = state ? state.name : undefined;
63
+ resourceInputs["template"] = state ? state.template : undefined;
64
+ }
65
+ else {
66
+ const args = argsOrState;
67
+ if ((!args || args.template === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'template'");
69
+ }
70
+ resourceInputs["name"] = args ? args.name : undefined;
71
+ resourceInputs["template"] = args ? args.template : undefined;
72
+ }
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
74
+ super(MessageTemplate.__pulumiType, name, resourceInputs, opts);
75
+ }
76
+ }
77
+ exports.MessageTemplate = MessageTemplate;
78
+ /** @internal */
79
+ MessageTemplate.__pulumiType = 'grafana:index/messageTemplate:MessageTemplate';
80
+ //# sourceMappingURL=messageTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageTemplate.js","sourceRoot":"","sources":["../messageTemplate.ts"],"names":[],"mappings":";AAAA,wFA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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA9DL,0CA+DC;AAjDG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
@@ -0,0 +1,106 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages Grafana Alerting mute timings.
6
+ *
7
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/mute-timings/)
8
+ * * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings)
9
+ *
10
+ * This resource requires Grafana 9.1.0 or later.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as grafana from "@pulumiverse/grafana";
17
+ *
18
+ * const myMuteTiming = new grafana.MuteTiming("myMuteTiming", {intervals: [{
19
+ * daysOfMonths: [
20
+ * "1:7",
21
+ * "-1",
22
+ * ],
23
+ * months: [
24
+ * "1:3",
25
+ * "december",
26
+ * ],
27
+ * times: [{
28
+ * end: "14:17",
29
+ * start: "04:56",
30
+ * }],
31
+ * weekdays: [
32
+ * "monday",
33
+ * "tuesday:thursday",
34
+ * ],
35
+ * years: [
36
+ * "2030",
37
+ * "2025:2026",
38
+ * ],
39
+ * }]});
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * ```sh
45
+ * $ pulumi import grafana:index/muteTiming:MuteTiming mute_timing_name {{mute_timing_name}}
46
+ * ```
47
+ */
48
+ export declare class MuteTiming extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing MuteTiming resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MuteTimingState, opts?: pulumi.CustomResourceOptions): MuteTiming;
59
+ /**
60
+ * Returns true if the given object is an instance of MuteTiming. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj: any): obj is MuteTiming;
64
+ /**
65
+ * The time intervals at which to mute notifications.
66
+ */
67
+ readonly intervals: pulumi.Output<outputs.MuteTimingInterval[] | undefined>;
68
+ /**
69
+ * The name of the mute timing.
70
+ */
71
+ readonly name: pulumi.Output<string>;
72
+ /**
73
+ * Create a MuteTiming resource with the given unique name, arguments, and options.
74
+ *
75
+ * @param name The _unique_ name of the resource.
76
+ * @param args The arguments to use to populate this resource's properties.
77
+ * @param opts A bag of options that control this resource's behavior.
78
+ */
79
+ constructor(name: string, args?: MuteTimingArgs, opts?: pulumi.CustomResourceOptions);
80
+ }
81
+ /**
82
+ * Input properties used for looking up and filtering MuteTiming resources.
83
+ */
84
+ export interface MuteTimingState {
85
+ /**
86
+ * The time intervals at which to mute notifications.
87
+ */
88
+ intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
89
+ /**
90
+ * The name of the mute timing.
91
+ */
92
+ name?: pulumi.Input<string>;
93
+ }
94
+ /**
95
+ * The set of arguments for constructing a MuteTiming resource.
96
+ */
97
+ export interface MuteTimingArgs {
98
+ /**
99
+ * The time intervals at which to mute notifications.
100
+ */
101
+ intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
102
+ /**
103
+ * The name of the mute timing.
104
+ */
105
+ name?: pulumi.Input<string>;
106
+ }
package/muteTiming.js ADDED
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.MuteTiming = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages Grafana Alerting mute timings.
10
+ *
11
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/mute-timings/)
12
+ * * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings)
13
+ *
14
+ * This resource requires Grafana 9.1.0 or later.
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as grafana from "@pulumiverse/grafana";
21
+ *
22
+ * const myMuteTiming = new grafana.MuteTiming("myMuteTiming", {intervals: [{
23
+ * daysOfMonths: [
24
+ * "1:7",
25
+ * "-1",
26
+ * ],
27
+ * months: [
28
+ * "1:3",
29
+ * "december",
30
+ * ],
31
+ * times: [{
32
+ * end: "14:17",
33
+ * start: "04:56",
34
+ * }],
35
+ * weekdays: [
36
+ * "monday",
37
+ * "tuesday:thursday",
38
+ * ],
39
+ * years: [
40
+ * "2030",
41
+ * "2025:2026",
42
+ * ],
43
+ * }]});
44
+ * ```
45
+ *
46
+ * ## Import
47
+ *
48
+ * ```sh
49
+ * $ pulumi import grafana:index/muteTiming:MuteTiming mute_timing_name {{mute_timing_name}}
50
+ * ```
51
+ */
52
+ class MuteTiming extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing MuteTiming resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name, id, state, opts) {
63
+ return new MuteTiming(name, state, Object.assign(Object.assign({}, opts), { id: id }));
64
+ }
65
+ /**
66
+ * Returns true if the given object is an instance of MuteTiming. This is designed to work even
67
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
+ */
69
+ static isInstance(obj) {
70
+ if (obj === undefined || obj === null) {
71
+ return false;
72
+ }
73
+ return obj['__pulumiType'] === MuteTiming.__pulumiType;
74
+ }
75
+ constructor(name, argsOrState, opts) {
76
+ let resourceInputs = {};
77
+ opts = opts || {};
78
+ if (opts.id) {
79
+ const state = argsOrState;
80
+ resourceInputs["intervals"] = state ? state.intervals : undefined;
81
+ resourceInputs["name"] = state ? state.name : undefined;
82
+ }
83
+ else {
84
+ const args = argsOrState;
85
+ resourceInputs["intervals"] = args ? args.intervals : undefined;
86
+ resourceInputs["name"] = args ? args.name : undefined;
87
+ }
88
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
89
+ super(MuteTiming.__pulumiType, name, resourceInputs, opts);
90
+ }
91
+ }
92
+ exports.MuteTiming = MuteTiming;
93
+ /** @internal */
94
+ MuteTiming.__pulumiType = 'grafana:index/muteTiming:MuteTiming';
95
+ //# sourceMappingURL=muteTiming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"muteTiming.js","sourceRoot":"","sources":["../muteTiming.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,U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