@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,37 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getCloudOrganization(args?: GetCloudOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetCloudOrganizationResult>;
3
+ /**
4
+ * A collection of arguments for invoking getCloudOrganization.
5
+ */
6
+ export interface GetCloudOrganizationArgs {
7
+ /**
8
+ * The ID of this resource.
9
+ */
10
+ id?: string;
11
+ slug?: string;
12
+ }
13
+ /**
14
+ * A collection of values returned by getCloudOrganization.
15
+ */
16
+ export interface GetCloudOrganizationResult {
17
+ readonly createdAt: string;
18
+ /**
19
+ * The ID of this resource.
20
+ */
21
+ readonly id: string;
22
+ readonly name: string;
23
+ readonly slug: string;
24
+ readonly updatedAt: string;
25
+ readonly url: string;
26
+ }
27
+ export declare function getCloudOrganizationOutput(args?: GetCloudOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCloudOrganizationResult>;
28
+ /**
29
+ * A collection of arguments for invoking getCloudOrganization.
30
+ */
31
+ export interface GetCloudOrganizationOutputArgs {
32
+ /**
33
+ * The ID of this resource.
34
+ */
35
+ id?: pulumi.Input<string>;
36
+ slug?: pulumi.Input<string>;
37
+ }
@@ -0,0 +1,21 @@
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.getCloudOrganizationOutput = exports.getCloudOrganization = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getCloudOrganization(args, opts) {
9
+ args = args || {};
10
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
11
+ return pulumi.runtime.invoke("grafana:index/getCloudOrganization:getCloudOrganization", {
12
+ "id": args.id,
13
+ "slug": args.slug,
14
+ }, opts);
15
+ }
16
+ exports.getCloudOrganization = getCloudOrganization;
17
+ function getCloudOrganizationOutput(args, opts) {
18
+ return pulumi.output(args).apply((a) => getCloudOrganization(a, opts));
19
+ }
20
+ exports.getCloudOrganizationOutput = getCloudOrganizationOutput;
21
+ //# sourceMappingURL=getCloudOrganization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCloudOrganization.js","sourceRoot":"","sources":["../getCloudOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yDAAyD,EAAE;QACpF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC;AA2BD,SAAgB,0BAA0B,CAAC,IAAqC,EAAE,IAA2B;IACzG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,gEAEC"}
@@ -0,0 +1,130 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Data source for Grafana Stack
4
+ */
5
+ export declare function getCloudStack(args: GetCloudStackArgs, opts?: pulumi.InvokeOptions): Promise<GetCloudStackResult>;
6
+ /**
7
+ * A collection of arguments for invoking getCloudStack.
8
+ */
9
+ export interface GetCloudStackArgs {
10
+ /**
11
+ * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
12
+ * available at “https://\n\n.grafana.net".
13
+ */
14
+ slug: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getCloudStack.
18
+ */
19
+ export interface GetCloudStackResult {
20
+ /**
21
+ * Name of the Alertmanager instance configured for this stack.
22
+ */
23
+ readonly alertmanagerName: string;
24
+ /**
25
+ * Status of the Alertmanager instance configured for this stack.
26
+ */
27
+ readonly alertmanagerStatus: string;
28
+ /**
29
+ * Base URL of the Alertmanager instance configured for this stack.
30
+ */
31
+ readonly alertmanagerUrl: string;
32
+ /**
33
+ * User ID of the Alertmanager instance configured for this stack.
34
+ */
35
+ readonly alertmanagerUserId: number;
36
+ /**
37
+ * Description of stack.
38
+ */
39
+ readonly description: string;
40
+ readonly graphiteName: string;
41
+ readonly graphiteStatus: string;
42
+ readonly graphiteUrl: string;
43
+ readonly graphiteUserId: number;
44
+ /**
45
+ * The stack id assigned to this stack by Grafana.
46
+ */
47
+ readonly id: string;
48
+ readonly logsName: string;
49
+ readonly logsStatus: string;
50
+ readonly logsUrl: string;
51
+ readonly logsUserId: number;
52
+ /**
53
+ * Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”).
54
+ */
55
+ readonly name: string;
56
+ /**
57
+ * Organization id to assign to this stack.
58
+ */
59
+ readonly orgId: number;
60
+ /**
61
+ * Organization name to assign to this stack.
62
+ */
63
+ readonly orgName: string;
64
+ /**
65
+ * Organization slug to assign to this stack.
66
+ */
67
+ readonly orgSlug: string;
68
+ /**
69
+ * Prometheus name for this instance.
70
+ */
71
+ readonly prometheusName: string;
72
+ /**
73
+ * Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
74
+ */
75
+ readonly prometheusRemoteEndpoint: string;
76
+ /**
77
+ * Use this URL to send prometheus metrics to Grafana cloud
78
+ */
79
+ readonly prometheusRemoteWriteEndpoint: string;
80
+ /**
81
+ * Prometheus status for this instance.
82
+ */
83
+ readonly prometheusStatus: string;
84
+ /**
85
+ * Prometheus url for this instance.
86
+ */
87
+ readonly prometheusUrl: string;
88
+ /**
89
+ * Prometheus user ID. Used for e.g. remote_write.
90
+ */
91
+ readonly prometheusUserId: number;
92
+ /**
93
+ * The region this stack is deployed to.
94
+ */
95
+ readonly regionSlug: string;
96
+ /**
97
+ * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
98
+ * available at “https://\n\n.grafana.net".
99
+ */
100
+ readonly slug: string;
101
+ /**
102
+ * Status of the stack.
103
+ */
104
+ readonly status: string;
105
+ readonly tracesName: string;
106
+ readonly tracesStatus: string;
107
+ /**
108
+ * Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
109
+ */
110
+ readonly tracesUrl: string;
111
+ readonly tracesUserId: number;
112
+ /**
113
+ * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
114
+ */
115
+ readonly url: string;
116
+ }
117
+ /**
118
+ * Data source for Grafana Stack
119
+ */
120
+ export declare function getCloudStackOutput(args: GetCloudStackOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCloudStackResult>;
121
+ /**
122
+ * A collection of arguments for invoking getCloudStack.
123
+ */
124
+ export interface GetCloudStackOutputArgs {
125
+ /**
126
+ * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
127
+ * available at “https://\n\n.grafana.net".
128
+ */
129
+ slug: pulumi.Input<string>;
130
+ }
@@ -0,0 +1,25 @@
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.getCloudStackOutput = exports.getCloudStack = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Data source for Grafana Stack
10
+ */
11
+ function getCloudStack(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("grafana:index/getCloudStack:getCloudStack", {
14
+ "slug": args.slug,
15
+ }, opts);
16
+ }
17
+ exports.getCloudStack = getCloudStack;
18
+ /**
19
+ * Data source for Grafana Stack
20
+ */
21
+ function getCloudStackOutput(args, opts) {
22
+ return pulumi.output(args).apply((a) => getCloudStack(a, opts));
23
+ }
24
+ exports.getCloudStackOutput = getCloudStackOutput;
25
+ //# sourceMappingURL=getCloudStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCloudStack.js","sourceRoot":"","sources":["../getCloudStack.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAkHD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,134 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
4
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
5
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
6
+ *
7
+ * ## Example Usage
8
+ *
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 test = new grafana.Dashboard("test", {configJson: JSON.stringify({
15
+ * id: 12345,
16
+ * uid: "test-ds-dashboard-uid",
17
+ * title: "Production Overview",
18
+ * tags: ["templated"],
19
+ * timezone: "browser",
20
+ * schemaVersion: 16,
21
+ * version: 0,
22
+ * refresh: "25s",
23
+ * })});
24
+ * const fromId = grafana.getDashboardOutput({
25
+ * dashboardId: test.dashboardId,
26
+ * });
27
+ * const fromUid = grafana.getDashboard({
28
+ * uid: "test-ds-dashboard-uid",
29
+ * });
30
+ * ```
31
+ */
32
+ export declare function getDashboard(args?: GetDashboardArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardResult>;
33
+ /**
34
+ * A collection of arguments for invoking getDashboard.
35
+ */
36
+ export interface GetDashboardArgs {
37
+ /**
38
+ * The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
39
+ */
40
+ dashboardId?: number;
41
+ /**
42
+ * The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
43
+ */
44
+ uid?: string;
45
+ }
46
+ /**
47
+ * A collection of values returned by getDashboard.
48
+ */
49
+ export interface GetDashboardResult {
50
+ /**
51
+ * The complete dashboard model JSON.
52
+ */
53
+ readonly configJson: string;
54
+ /**
55
+ * The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
56
+ */
57
+ readonly dashboardId?: number;
58
+ /**
59
+ * The numerical ID of the folder where the Grafana dashboard is found.
60
+ */
61
+ readonly folder: number;
62
+ /**
63
+ * The provider-assigned unique ID for this managed resource.
64
+ */
65
+ readonly id: string;
66
+ /**
67
+ * Whether or not the Grafana dashboard is starred. Starred Dashboards will show up on your own Home Dashboard by default, and are a convenient way to mark Dashboards that you’re interested in.
68
+ */
69
+ readonly isStarred: boolean;
70
+ /**
71
+ * URL slug of the dashboard (deprecated).
72
+ */
73
+ readonly slug: string;
74
+ /**
75
+ * The title of the Grafana dashboard.
76
+ */
77
+ readonly title: string;
78
+ /**
79
+ * The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
80
+ */
81
+ readonly uid?: string;
82
+ /**
83
+ * The full URL of the dashboard.
84
+ */
85
+ readonly url: string;
86
+ /**
87
+ * The numerical version of the Grafana dashboard.
88
+ */
89
+ readonly version: number;
90
+ }
91
+ /**
92
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
93
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
94
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
95
+ *
96
+ * ## Example Usage
97
+ *
98
+ * ```typescript
99
+ * import * as pulumi from "@pulumi/pulumi";
100
+ * import * as grafana from "@pulumi/grafana";
101
+ * import * as grafana from "@pulumiverse/grafana";
102
+ *
103
+ * const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
104
+ * id: 12345,
105
+ * uid: "test-ds-dashboard-uid",
106
+ * title: "Production Overview",
107
+ * tags: ["templated"],
108
+ * timezone: "browser",
109
+ * schemaVersion: 16,
110
+ * version: 0,
111
+ * refresh: "25s",
112
+ * })});
113
+ * const fromId = grafana.getDashboardOutput({
114
+ * dashboardId: test.dashboardId,
115
+ * });
116
+ * const fromUid = grafana.getDashboard({
117
+ * uid: "test-ds-dashboard-uid",
118
+ * });
119
+ * ```
120
+ */
121
+ export declare function getDashboardOutput(args?: GetDashboardOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDashboardResult>;
122
+ /**
123
+ * A collection of arguments for invoking getDashboard.
124
+ */
125
+ export interface GetDashboardOutputArgs {
126
+ /**
127
+ * The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
128
+ */
129
+ dashboardId?: pulumi.Input<number>;
130
+ /**
131
+ * The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
132
+ */
133
+ uid?: pulumi.Input<string>;
134
+ }
@@ -0,0 +1,81 @@
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.getDashboardOutput = exports.getDashboard = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
10
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
11
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
12
+ *
13
+ * ## Example Usage
14
+ *
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 test = new grafana.Dashboard("test", {configJson: JSON.stringify({
21
+ * id: 12345,
22
+ * uid: "test-ds-dashboard-uid",
23
+ * title: "Production Overview",
24
+ * tags: ["templated"],
25
+ * timezone: "browser",
26
+ * schemaVersion: 16,
27
+ * version: 0,
28
+ * refresh: "25s",
29
+ * })});
30
+ * const fromId = grafana.getDashboardOutput({
31
+ * dashboardId: test.dashboardId,
32
+ * });
33
+ * const fromUid = grafana.getDashboard({
34
+ * uid: "test-ds-dashboard-uid",
35
+ * });
36
+ * ```
37
+ */
38
+ function getDashboard(args, opts) {
39
+ args = args || {};
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
41
+ return pulumi.runtime.invoke("grafana:index/getDashboard:getDashboard", {
42
+ "dashboardId": args.dashboardId,
43
+ "uid": args.uid,
44
+ }, opts);
45
+ }
46
+ exports.getDashboard = getDashboard;
47
+ /**
48
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
49
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
50
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
51
+ *
52
+ * ## Example Usage
53
+ *
54
+ * ```typescript
55
+ * import * as pulumi from "@pulumi/pulumi";
56
+ * import * as grafana from "@pulumi/grafana";
57
+ * import * as grafana from "@pulumiverse/grafana";
58
+ *
59
+ * const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
60
+ * id: 12345,
61
+ * uid: "test-ds-dashboard-uid",
62
+ * title: "Production Overview",
63
+ * tags: ["templated"],
64
+ * timezone: "browser",
65
+ * schemaVersion: 16,
66
+ * version: 0,
67
+ * refresh: "25s",
68
+ * })});
69
+ * const fromId = grafana.getDashboardOutput({
70
+ * dashboardId: test.dashboardId,
71
+ * });
72
+ * const fromUid = grafana.getDashboard({
73
+ * uid: "test-ds-dashboard-uid",
74
+ * });
75
+ * ```
76
+ */
77
+ function getDashboardOutput(args, opts) {
78
+ return pulumi.output(args).apply((a) => getDashboard(a, opts));
79
+ }
80
+ exports.getDashboardOutput = getDashboardOutput;
81
+ //# sourceMappingURL=getDashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDashboard.js","sourceRoot":"","sources":["../getDashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,74 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
5
+ *
6
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
7
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
8
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
9
+ */
10
+ export declare function getDashboards(args?: GetDashboardsArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardsResult>;
11
+ /**
12
+ * A collection of arguments for invoking getDashboards.
13
+ */
14
+ export interface GetDashboardsArgs {
15
+ /**
16
+ * Numerical IDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[0]` for General folder), or leave blank to get all dashboards in all folders.
17
+ */
18
+ folderIds?: number[];
19
+ /**
20
+ * Maximum number of dashboard search results to return. Defaults to `5000`.
21
+ */
22
+ limit?: number;
23
+ /**
24
+ * List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
25
+ */
26
+ tags?: string[];
27
+ }
28
+ /**
29
+ * A collection of values returned by getDashboards.
30
+ */
31
+ export interface GetDashboardsResult {
32
+ readonly dashboards: outputs.GetDashboardsDashboard[];
33
+ /**
34
+ * Numerical IDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[0]` for General folder), or leave blank to get all dashboards in all folders.
35
+ */
36
+ readonly folderIds?: number[];
37
+ /**
38
+ * The provider-assigned unique ID for this managed resource.
39
+ */
40
+ readonly id: string;
41
+ /**
42
+ * Maximum number of dashboard search results to return. Defaults to `5000`.
43
+ */
44
+ readonly limit?: number;
45
+ /**
46
+ * List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
47
+ */
48
+ readonly tags?: string[];
49
+ }
50
+ /**
51
+ * Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
52
+ *
53
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
54
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
55
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
56
+ */
57
+ export declare function getDashboardsOutput(args?: GetDashboardsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDashboardsResult>;
58
+ /**
59
+ * A collection of arguments for invoking getDashboards.
60
+ */
61
+ export interface GetDashboardsOutputArgs {
62
+ /**
63
+ * Numerical IDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[0]` for General folder), or leave blank to get all dashboards in all folders.
64
+ */
65
+ folderIds?: pulumi.Input<pulumi.Input<number>[]>;
66
+ /**
67
+ * Maximum number of dashboard search results to return. Defaults to `5000`.
68
+ */
69
+ limit?: pulumi.Input<number>;
70
+ /**
71
+ * List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
72
+ */
73
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
74
+ }
@@ -0,0 +1,36 @@
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.getDashboardsOutput = exports.getDashboards = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
10
+ *
11
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
12
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
13
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
14
+ */
15
+ function getDashboards(args, opts) {
16
+ args = args || {};
17
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
18
+ return pulumi.runtime.invoke("grafana:index/getDashboards:getDashboards", {
19
+ "folderIds": args.folderIds,
20
+ "limit": args.limit,
21
+ "tags": args.tags,
22
+ }, opts);
23
+ }
24
+ exports.getDashboards = getDashboards;
25
+ /**
26
+ * Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
27
+ *
28
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
29
+ * * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
30
+ * * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
31
+ */
32
+ function getDashboardsOutput(args, opts) {
33
+ return pulumi.output(args).apply((a) => getDashboards(a, opts));
34
+ }
35
+ exports.getDashboardsOutput = getDashboardsOutput;
36
+ //# sourceMappingURL=getDashboards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDashboards.js","sourceRoot":"","sources":["../getDashboards.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sCASC;AA0CD;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}