@perses-dev/splunk-plugin 0.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +60 -0
  3. package/__mf/css/async/7.85c2cbf6.css +1 -0
  4. package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
  5. package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
  6. package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
  7. package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
  8. package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
  9. package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
  10. package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
  11. package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
  12. package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
  13. package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
  14. package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
  15. package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
  16. package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
  17. package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
  18. package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
  19. package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
  20. package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
  21. package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
  22. package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
  23. package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
  24. package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
  25. package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
  26. package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
  27. package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
  28. package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
  29. package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
  30. package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
  31. package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
  32. package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
  33. package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
  34. package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
  35. package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
  36. package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
  37. package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
  38. package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
  39. package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
  40. package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
  41. package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
  42. package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
  43. package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
  44. package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
  45. package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
  46. package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
  47. package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
  48. package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
  49. package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
  50. package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
  51. package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
  52. package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
  53. package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
  54. package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
  55. package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
  56. package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
  57. package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
  58. package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
  59. package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
  60. package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
  61. package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
  62. package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
  63. package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
  64. package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
  65. package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
  66. package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
  67. package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
  68. package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
  69. package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
  70. package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
  71. package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
  72. package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
  73. package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
  74. package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
  75. package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
  76. package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
  77. package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
  78. package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
  79. package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
  80. package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
  81. package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
  82. package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
  83. package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
  84. package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
  85. package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
  86. package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
  87. package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
  88. package/__mf/js/Splunk.d622dd09.js +7 -0
  89. package/__mf/js/async/121.444e1abe.js +2 -0
  90. package/__mf/js/async/121.444e1abe.js.LICENSE.txt +9 -0
  91. package/__mf/js/async/177.cfdf2ea5.js +1 -0
  92. package/__mf/js/async/181.fee3676d.js +2 -0
  93. package/__mf/js/async/181.fee3676d.js.LICENSE.txt +9 -0
  94. package/__mf/js/async/278.171d6548.js +24 -0
  95. package/__mf/js/async/278.171d6548.js.LICENSE.txt +44 -0
  96. package/__mf/js/async/386.9514a8a7.js +2 -0
  97. package/__mf/js/async/386.9514a8a7.js.LICENSE.txt +9 -0
  98. package/__mf/js/async/413.0cd939f5.js +1 -0
  99. package/__mf/js/async/470.3f481d24.js +2 -0
  100. package/__mf/js/async/470.3f481d24.js.LICENSE.txt +19 -0
  101. package/__mf/js/async/667.bb282078.js +1 -0
  102. package/__mf/js/async/7.ed3f1592.js +7 -0
  103. package/__mf/js/async/7.ed3f1592.js.LICENSE.txt +64 -0
  104. package/__mf/js/async/732.69245394.js +139 -0
  105. package/__mf/js/async/732.69245394.js.LICENSE.txt +46 -0
  106. package/__mf/js/async/941.8fe72889.js +2 -0
  107. package/__mf/js/async/941.8fe72889.js.LICENSE.txt +9 -0
  108. package/__mf/js/async/963.f1d8b579.js +1 -0
  109. package/__mf/js/async/982.8a88a864.js +10 -0
  110. package/__mf/js/async/982.8a88a864.js.LICENSE.txt +26 -0
  111. package/__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js +2 -0
  112. package/__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js.LICENSE.txt +9 -0
  113. package/__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js +2 -0
  114. package/__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js.LICENSE.txt +9 -0
  115. package/__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js +2 -0
  116. package/__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js.LICENSE.txt +9 -0
  117. package/__mf/js/async/lib-router.1acd2c34.js +2 -0
  118. package/__mf/js/async/lib-router.1acd2c34.js.LICENSE.txt +32 -0
  119. package/__mf/js/main.39e2a771.js +7 -0
  120. package/lib/bootstrap.d.ts +2 -0
  121. package/lib/bootstrap.d.ts.map +1 -0
  122. package/lib/bootstrap.js +20 -0
  123. package/lib/bootstrap.js.map +1 -0
  124. package/lib/cjs/bootstrap.js +27 -0
  125. package/lib/cjs/datasources/index.js +30 -0
  126. package/lib/cjs/datasources/splunk-datasource/SplunkDatasource.js +69 -0
  127. package/lib/cjs/datasources/splunk-datasource/SplunkDatasourceEditor.js +71 -0
  128. package/lib/cjs/datasources/splunk-datasource/index.js +32 -0
  129. package/lib/cjs/datasources/splunk-datasource/splunk-datasource-types.js +16 -0
  130. package/lib/cjs/env.d.js +14 -0
  131. package/lib/cjs/getPluginModule.js +39 -0
  132. package/lib/cjs/index-federation.js +55 -0
  133. package/lib/cjs/index.js +39 -0
  134. package/lib/cjs/model/index.js +31 -0
  135. package/lib/cjs/model/splunk-client-types.js +16 -0
  136. package/lib/cjs/model/splunk-client.js +151 -0
  137. package/lib/cjs/queries/constants.js +25 -0
  138. package/lib/cjs/queries/index.js +31 -0
  139. package/lib/cjs/queries/splunk-log-query/SplunkLogQuery.js +43 -0
  140. package/lib/cjs/queries/splunk-log-query/SplunkLogQueryEditor.js +95 -0
  141. package/lib/cjs/queries/splunk-log-query/get-splunk-log-data.js +127 -0
  142. package/lib/cjs/queries/splunk-log-query/index.js +33 -0
  143. package/lib/cjs/queries/splunk-log-query/log-query-plugin-interface.js +16 -0
  144. package/lib/cjs/queries/splunk-log-query/splunk-log-query-types.js +16 -0
  145. package/lib/cjs/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js +43 -0
  146. package/lib/cjs/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js +95 -0
  147. package/lib/cjs/queries/splunk-time-series-query/get-splunk-time-series-data.js +106 -0
  148. package/lib/cjs/queries/splunk-time-series-query/index.js +33 -0
  149. package/lib/cjs/queries/splunk-time-series-query/splunk-time-series-query-types.js +16 -0
  150. package/lib/cjs/setup-tests.js +19 -0
  151. package/lib/datasources/index.d.ts +2 -0
  152. package/lib/datasources/index.d.ts.map +1 -0
  153. package/lib/datasources/index.js +15 -0
  154. package/lib/datasources/index.js.map +1 -0
  155. package/lib/datasources/splunk-datasource/SplunkDatasource.d.ts +5 -0
  156. package/lib/datasources/splunk-datasource/SplunkDatasource.d.ts.map +1 -0
  157. package/lib/datasources/splunk-datasource/SplunkDatasource.js +61 -0
  158. package/lib/datasources/splunk-datasource/SplunkDatasource.js.map +1 -0
  159. package/lib/datasources/splunk-datasource/SplunkDatasource.test.d.ts +2 -0
  160. package/lib/datasources/splunk-datasource/SplunkDatasource.test.d.ts.map +1 -0
  161. package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.d.ts +9 -0
  162. package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.d.ts.map +1 -0
  163. package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.js +63 -0
  164. package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.js.map +1 -0
  165. package/lib/datasources/splunk-datasource/index.d.ts +4 -0
  166. package/lib/datasources/splunk-datasource/index.d.ts.map +1 -0
  167. package/lib/datasources/splunk-datasource/index.js +17 -0
  168. package/lib/datasources/splunk-datasource/index.js.map +1 -0
  169. package/lib/datasources/splunk-datasource/splunk-datasource-types.d.ts +6 -0
  170. package/lib/datasources/splunk-datasource/splunk-datasource-types.d.ts.map +1 -0
  171. package/lib/datasources/splunk-datasource/splunk-datasource-types.js +15 -0
  172. package/lib/datasources/splunk-datasource/splunk-datasource-types.js.map +1 -0
  173. package/lib/env.d.js +15 -0
  174. package/lib/env.d.js.map +1 -0
  175. package/lib/getPluginModule.d.ts +6 -0
  176. package/lib/getPluginModule.d.ts.map +1 -0
  177. package/lib/getPluginModule.js +28 -0
  178. package/lib/getPluginModule.js.map +1 -0
  179. package/lib/index-federation.d.ts +1 -0
  180. package/lib/index-federation.d.ts.map +1 -0
  181. package/lib/index-federation.js +15 -0
  182. package/lib/index-federation.js.map +1 -0
  183. package/lib/index.d.ts +5 -0
  184. package/lib/index.d.ts.map +1 -0
  185. package/lib/index.js +18 -0
  186. package/lib/index.js.map +1 -0
  187. package/lib/model/index.d.ts +3 -0
  188. package/lib/model/index.d.ts.map +1 -0
  189. package/lib/model/index.js +16 -0
  190. package/lib/model/index.js.map +1 -0
  191. package/lib/model/splunk-client-types.d.ts +50 -0
  192. package/lib/model/splunk-client-types.d.ts.map +1 -0
  193. package/lib/model/splunk-client-types.js +15 -0
  194. package/lib/model/splunk-client-types.js.map +1 -0
  195. package/lib/model/splunk-client.d.ts +40 -0
  196. package/lib/model/splunk-client.d.ts.map +1 -0
  197. package/lib/model/splunk-client.js +126 -0
  198. package/lib/model/splunk-client.js.map +1 -0
  199. package/lib/queries/constants.d.ts +4 -0
  200. package/lib/queries/constants.d.ts.map +1 -0
  201. package/lib/queries/constants.js +17 -0
  202. package/lib/queries/constants.js.map +1 -0
  203. package/lib/queries/index.d.ts +3 -0
  204. package/lib/queries/index.d.ts.map +1 -0
  205. package/lib/queries/index.js +16 -0
  206. package/lib/queries/index.js.map +1 -0
  207. package/lib/queries/splunk-log-query/SplunkLogQuery.d.ts +4 -0
  208. package/lib/queries/splunk-log-query/SplunkLogQuery.d.ts.map +1 -0
  209. package/lib/queries/splunk-log-query/SplunkLogQuery.js +35 -0
  210. package/lib/queries/splunk-log-query/SplunkLogQuery.js.map +1 -0
  211. package/lib/queries/splunk-log-query/SplunkLogQuery.test.d.ts +2 -0
  212. package/lib/queries/splunk-log-query/SplunkLogQuery.test.d.ts.map +1 -0
  213. package/lib/queries/splunk-log-query/SplunkLogQueryEditor.d.ts +7 -0
  214. package/lib/queries/splunk-log-query/SplunkLogQueryEditor.d.ts.map +1 -0
  215. package/lib/queries/splunk-log-query/SplunkLogQueryEditor.js +87 -0
  216. package/lib/queries/splunk-log-query/SplunkLogQueryEditor.js.map +1 -0
  217. package/lib/queries/splunk-log-query/get-splunk-log-data.d.ts +4 -0
  218. package/lib/queries/splunk-log-query/get-splunk-log-data.d.ts.map +1 -0
  219. package/lib/queries/splunk-log-query/get-splunk-log-data.js +119 -0
  220. package/lib/queries/splunk-log-query/get-splunk-log-data.js.map +1 -0
  221. package/lib/queries/splunk-log-query/index.d.ts +5 -0
  222. package/lib/queries/splunk-log-query/index.d.ts.map +1 -0
  223. package/lib/queries/splunk-log-query/index.js +18 -0
  224. package/lib/queries/splunk-log-query/index.js.map +1 -0
  225. package/lib/queries/splunk-log-query/log-query-plugin-interface.d.ts +23 -0
  226. package/lib/queries/splunk-log-query/log-query-plugin-interface.d.ts.map +1 -0
  227. package/lib/queries/splunk-log-query/log-query-plugin-interface.js +15 -0
  228. package/lib/queries/splunk-log-query/log-query-plugin-interface.js.map +1 -0
  229. package/lib/queries/splunk-log-query/splunk-log-query-types.d.ts +11 -0
  230. package/lib/queries/splunk-log-query/splunk-log-query-types.d.ts.map +1 -0
  231. package/lib/queries/splunk-log-query/splunk-log-query-types.js +15 -0
  232. package/lib/queries/splunk-log-query/splunk-log-query-types.js.map +1 -0
  233. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.d.ts +4 -0
  234. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.d.ts.map +1 -0
  235. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js +35 -0
  236. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js.map +1 -0
  237. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.test.d.ts +2 -0
  238. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.test.d.ts.map +1 -0
  239. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.d.ts +7 -0
  240. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.d.ts.map +1 -0
  241. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js +87 -0
  242. package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js.map +1 -0
  243. package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.d.ts +4 -0
  244. package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.d.ts.map +1 -0
  245. package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.js +98 -0
  246. package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.js.map +1 -0
  247. package/lib/queries/splunk-time-series-query/index.d.ts +5 -0
  248. package/lib/queries/splunk-time-series-query/index.d.ts.map +1 -0
  249. package/lib/queries/splunk-time-series-query/index.js +18 -0
  250. package/lib/queries/splunk-time-series-query/index.js.map +1 -0
  251. package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.d.ts +10 -0
  252. package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.d.ts.map +1 -0
  253. package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.js +15 -0
  254. package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.js.map +1 -0
  255. package/lib/setup-tests.d.ts +2 -0
  256. package/lib/setup-tests.d.ts.map +1 -0
  257. package/lib/setup-tests.js +17 -0
  258. package/lib/setup-tests.js.map +1 -0
  259. package/mf-manifest.json +198 -0
  260. package/mf-stats.json +220 -0
  261. package/package.json +74 -0
@@ -0,0 +1,98 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { replaceVariables } from '@perses-dev/plugin-system';
14
+ import { DEFAULT_DATASOURCE } from '../constants';
15
+ function convertResultsToTimeSeries(results) {
16
+ const resultsArray = Array.isArray(results) ? results : [
17
+ results
18
+ ];
19
+ if (resultsArray.length === 0) return [];
20
+ const firstResult = resultsArray[0];
21
+ if (!firstResult) return [];
22
+ const metricKeys = Object.keys(firstResult).filter((key)=>key !== '_time');
23
+ return metricKeys.map((metricKey)=>({
24
+ name: metricKey,
25
+ values: resultsArray.map((result)=>{
26
+ const timestamp = new Date(result._time).getTime() / 1000;
27
+ const value = Number(result[metricKey]) || 0;
28
+ return [
29
+ timestamp,
30
+ value
31
+ ];
32
+ }),
33
+ labels: {
34
+ metric: metricKey
35
+ }
36
+ }));
37
+ }
38
+ export const getSplunkTimeSeriesData = async (spec, context)=>{
39
+ if (!spec.query) {
40
+ return {
41
+ series: [],
42
+ timeRange: {
43
+ start: context.timeRange.start,
44
+ end: context.timeRange.end
45
+ },
46
+ stepMs: 60000
47
+ };
48
+ }
49
+ const query = replaceVariables(spec.query, context.variableState);
50
+ const client = await context.datasourceStore.getDatasourceClient(spec.datasource ?? DEFAULT_DATASOURCE);
51
+ const datasourceSpec = await context.datasourceStore.getDatasource(spec.datasource ?? DEFAULT_DATASOURCE);
52
+ const allowedEndpoints = datasourceSpec.plugin.spec?.proxy?.spec?.allowedEndpoints || [];
53
+ const hasExportEndpoint = allowedEndpoints.some((ep)=>ep.endpointPattern?.includes('/export'));
54
+ const { start, end } = context.timeRange;
55
+ const earliest_time = Math.floor(start.getTime() / 1000).toString();
56
+ const latest_time = Math.floor(end.getTime() / 1000).toString();
57
+ let resultsResponse;
58
+ if (hasExportEndpoint) {
59
+ resultsResponse = await client.exportSearch({
60
+ search: query,
61
+ earliest_time: spec.earliest || earliest_time,
62
+ latest_time: spec.latest || latest_time
63
+ });
64
+ } else {
65
+ const jobResponse = await client.createJob({
66
+ search: query,
67
+ earliest_time: spec.earliest || earliest_time,
68
+ latest_time: spec.latest || latest_time
69
+ });
70
+ const jobId = jobResponse.sid;
71
+ let jobStatus;
72
+ do {
73
+ await new Promise((resolve)=>setTimeout(resolve, 500)); // Wait 500ms between polls
74
+ jobStatus = await client.getJobStatus(jobId);
75
+ if (!jobStatus || !jobStatus.entry?.[0]?.content) {
76
+ console.warn('Failed to get job status or job status response is malformed', {
77
+ jobStatus
78
+ });
79
+ break;
80
+ }
81
+ }while (!jobStatus.entry?.[0]?.content?.isDone)
82
+ resultsResponse = await client.getJobResults(jobId);
83
+ }
84
+ const convertedSeries = convertResultsToTimeSeries(resultsResponse.results);
85
+ return {
86
+ series: convertedSeries,
87
+ timeRange: {
88
+ start,
89
+ end
90
+ },
91
+ stepMs: context.suggestedStepMs || 60000,
92
+ metadata: {
93
+ executedQueryString: query
94
+ }
95
+ };
96
+ };
97
+
98
+ //# sourceMappingURL=get-splunk-time-series-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/queries/splunk-time-series-query/get-splunk-time-series-data.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { TimeSeriesQueryPlugin, replaceVariables } from '@perses-dev/plugin-system';\nimport { HTTPAllowedEndpoint, TimeSeries } from '@perses-dev/spec';\nimport { SplunkClient } from '../../model/splunk-client';\nimport { SplunkDatasourceSpec } from '../../datasources/splunk-datasource/splunk-datasource-types';\nimport { DEFAULT_DATASOURCE } from '../constants';\nimport { SplunkJobCreateResponse, SplunkJobStatusResponse, SplunkResultsResponse } from '../../model';\nimport { SplunkTimeSeriesQuerySpec } from './splunk-time-series-query-types';\n\nfunction convertResultsToTimeSeries(\n results: Array<{ _time: string; [key: string]: string | number }> | { _time: string; [key: string]: string | number }\n): TimeSeries[] {\n const resultsArray = Array.isArray(results) ? results : [results];\n\n if (resultsArray.length === 0) return [];\n\n const firstResult = resultsArray[0];\n if (!firstResult) return [];\n\n const metricKeys = Object.keys(firstResult).filter((key) => key !== '_time');\n\n return metricKeys.map((metricKey) => ({\n name: metricKey,\n values: resultsArray.map((result) => {\n const timestamp = new Date(result._time).getTime() / 1000;\n const value = Number(result[metricKey]) || 0;\n return [timestamp, value];\n }),\n labels: { metric: metricKey },\n }));\n}\n\nexport const getSplunkTimeSeriesData: TimeSeriesQueryPlugin<SplunkTimeSeriesQuerySpec>['getTimeSeriesData'] = async (\n spec,\n context\n) => {\n if (!spec.query) {\n return {\n series: [],\n timeRange: { start: context.timeRange.start, end: context.timeRange.end },\n stepMs: 60000, // Default 1 minute\n };\n }\n\n const query = replaceVariables(spec.query, context.variableState);\n const client: SplunkClient = await context.datasourceStore.getDatasourceClient<SplunkClient>(\n spec.datasource ?? DEFAULT_DATASOURCE\n );\n\n const datasourceSpec = await context.datasourceStore.getDatasource(spec.datasource ?? DEFAULT_DATASOURCE);\n const allowedEndpoints: HTTPAllowedEndpoint[] =\n (datasourceSpec.plugin.spec as SplunkDatasourceSpec)?.proxy?.spec?.allowedEndpoints || [];\n\n const hasExportEndpoint = allowedEndpoints.some((ep: HTTPAllowedEndpoint) => ep.endpointPattern?.includes('/export'));\n\n const { start, end } = context.timeRange;\n\n const earliest_time = Math.floor(start.getTime() / 1000).toString();\n const latest_time = Math.floor(end.getTime() / 1000).toString();\n\n let resultsResponse: SplunkResultsResponse;\n\n if (hasExportEndpoint) {\n resultsResponse = await client.exportSearch({\n search: query,\n earliest_time: spec.earliest || earliest_time,\n latest_time: spec.latest || latest_time,\n });\n } else {\n const jobResponse: SplunkJobCreateResponse = await client.createJob({\n search: query,\n earliest_time: spec.earliest || earliest_time,\n latest_time: spec.latest || latest_time,\n });\n\n const jobId: string = jobResponse.sid;\n\n let jobStatus: SplunkJobStatusResponse;\n do {\n await new Promise((resolve) => setTimeout(resolve, 500)); // Wait 500ms between polls\n jobStatus = await client.getJobStatus(jobId);\n if (!jobStatus || !jobStatus.entry?.[0]?.content) {\n console.warn('Failed to get job status or job status response is malformed', { jobStatus });\n break;\n }\n } while (!jobStatus.entry?.[0]?.content?.isDone);\n\n resultsResponse = await client.getJobResults(jobId);\n }\n\n const convertedSeries: TimeSeries[] = convertResultsToTimeSeries(\n resultsResponse.results as Array<{ _time: string; [key: string]: string | number }>\n );\n\n return {\n series: convertedSeries,\n timeRange: { start, end },\n stepMs: context.suggestedStepMs || 60000, // Default 1 minute\n metadata: {\n executedQueryString: query,\n },\n };\n};\n"],"names":["replaceVariables","DEFAULT_DATASOURCE","convertResultsToTimeSeries","results","resultsArray","Array","isArray","length","firstResult","metricKeys","Object","keys","filter","key","map","metricKey","name","values","result","timestamp","Date","_time","getTime","value","Number","labels","metric","getSplunkTimeSeriesData","spec","context","query","series","timeRange","start","end","stepMs","variableState","client","datasourceStore","getDatasourceClient","datasource","datasourceSpec","getDatasource","allowedEndpoints","plugin","proxy","hasExportEndpoint","some","ep","endpointPattern","includes","earliest_time","Math","floor","toString","latest_time","resultsResponse","exportSearch","search","earliest","latest","jobResponse","createJob","jobId","sid","jobStatus","Promise","resolve","setTimeout","getJobStatus","entry","content","console","warn","isDone","getJobResults","convertedSeries","suggestedStepMs","metadata","executedQueryString"],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ export * from './get-splunk-time-series-data';
2
+ export * from './SplunkTimeSeriesQuery';
3
+ export * from './SplunkTimeSeriesQueryEditor';
4
+ export * from './splunk-time-series-query-types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/queries/splunk-time-series-query/index.ts"],"names":[],"mappings":"AAaA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,18 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export * from './get-splunk-time-series-data';
14
+ export * from './SplunkTimeSeriesQuery';
15
+ export * from './SplunkTimeSeriesQueryEditor';
16
+ export * from './splunk-time-series-query-types';
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/queries/splunk-time-series-query/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './get-splunk-time-series-data';\nexport * from './SplunkTimeSeriesQuery';\nexport * from './SplunkTimeSeriesQueryEditor';\nexport * from './splunk-time-series-query-types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,gCAAgC;AAC9C,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,mCAAmC"}
@@ -0,0 +1,10 @@
1
+ import { DatasourceSelector } from '@perses-dev/spec';
2
+ import { SplunkTimeSeriesResults } from '../../model/splunk-client-types';
3
+ export interface SplunkTimeSeriesQuerySpec {
4
+ query: string;
5
+ datasource?: DatasourceSelector;
6
+ earliest?: string;
7
+ latest?: string;
8
+ }
9
+ export type SplunkTimeSeriesQueryResponse = SplunkTimeSeriesResults;
10
+ //# sourceMappingURL=splunk-time-series-query-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splunk-time-series-query-types.d.ts","sourceRoot":"","sources":["../../../../src/queries/splunk-time-series-query/splunk-time-series-query-types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,15 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export { };
14
+
15
+ //# sourceMappingURL=splunk-time-series-query-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/queries/splunk-time-series-query/splunk-time-series-query-types.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceSelector } from '@perses-dev/spec';\nimport { SplunkTimeSeriesResults } from '../../model/splunk-client-types';\n\nexport interface SplunkTimeSeriesQuerySpec {\n query: string;\n datasource?: DatasourceSelector;\n earliest?: string;\n latest?: string;\n}\n\nexport type SplunkTimeSeriesQueryResponse = SplunkTimeSeriesResults;\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAYjC,WAAoE"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=setup-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,17 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import '@testing-library/jest-dom';
14
+ // Always mock e-charts during tests since we don't have a proper canvas in jsdom
15
+ jest.mock('echarts/core');
16
+
17
+ //# sourceMappingURL=setup-tests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport '@testing-library/jest-dom';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\njest.mock('echarts/core');\n"],"names":["jest","mock"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,4BAA4B;AAEnC,iFAAiF;AACjFA,KAAKC,IAAI,CAAC"}
@@ -0,0 +1,198 @@
1
+ {
2
+ "id": "Splunk",
3
+ "name": "Splunk",
4
+ "metaData": {
5
+ "name": "Splunk",
6
+ "type": "app",
7
+ "buildInfo": {
8
+ "buildVersion": "0.1.0-beta.0",
9
+ "buildName": "@perses-dev/splunk-plugin"
10
+ },
11
+ "remoteEntry": {
12
+ "name": "__mf/js/Splunk.d622dd09.js",
13
+ "path": "",
14
+ "type": "global"
15
+ },
16
+ "types": {
17
+ "path": "",
18
+ "name": "",
19
+ "zip": "",
20
+ "api": ""
21
+ },
22
+ "globalName": "Splunk",
23
+ "pluginVersion": "2.4.0",
24
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Splunk/\"; }"
25
+ },
26
+ "shared": [
27
+ {
28
+ "id": "Splunk:@perses-dev/components",
29
+ "name": "@perses-dev/components",
30
+ "version": "0.54.0-beta.3",
31
+ "singleton": true,
32
+ "requiredVersion": "^0.54.0-beta.3",
33
+ "assets": {
34
+ "js": {
35
+ "async": [],
36
+ "sync": [
37
+ "__mf/js/async/7.ed3f1592.js"
38
+ ]
39
+ },
40
+ "css": {
41
+ "async": [],
42
+ "sync": [
43
+ "__mf/css/async/7.85c2cbf6.css"
44
+ ]
45
+ }
46
+ },
47
+ "fallback": ""
48
+ },
49
+ {
50
+ "id": "Splunk:@perses-dev/plugin-system",
51
+ "name": "@perses-dev/plugin-system",
52
+ "version": "0.54.0-beta.3",
53
+ "singleton": true,
54
+ "requiredVersion": "^0.54.0-beta.3",
55
+ "assets": {
56
+ "js": {
57
+ "async": [],
58
+ "sync": [
59
+ "__mf/js/async/278.171d6548.js"
60
+ ]
61
+ },
62
+ "css": {
63
+ "async": [],
64
+ "sync": []
65
+ }
66
+ },
67
+ "fallback": ""
68
+ },
69
+ {
70
+ "id": "Splunk:immer",
71
+ "name": "immer",
72
+ "version": "10.2.0",
73
+ "singleton": true,
74
+ "requiredVersion": "^10.2.0",
75
+ "assets": {
76
+ "js": {
77
+ "async": [],
78
+ "sync": [
79
+ "__mf/js/async/963.f1d8b579.js"
80
+ ]
81
+ },
82
+ "css": {
83
+ "async": [],
84
+ "sync": []
85
+ }
86
+ },
87
+ "fallback": ""
88
+ },
89
+ {
90
+ "id": "Splunk:react",
91
+ "name": "react",
92
+ "version": "18.3.1",
93
+ "singleton": true,
94
+ "requiredVersion": "18.2.0",
95
+ "assets": {
96
+ "js": {
97
+ "async": [],
98
+ "sync": [
99
+ "__mf/js/async/121.444e1abe.js"
100
+ ]
101
+ },
102
+ "css": {
103
+ "async": [],
104
+ "sync": []
105
+ }
106
+ },
107
+ "fallback": ""
108
+ }
109
+ ],
110
+ "remotes": [],
111
+ "exposes": [
112
+ {
113
+ "id": "Splunk:SplunkDatasource",
114
+ "name": "SplunkDatasource",
115
+ "assets": {
116
+ "js": {
117
+ "sync": [
118
+ "__mf/js/async/413.0cd939f5.js",
119
+ "__mf/js/async/667.bb282078.js",
120
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js"
121
+ ],
122
+ "async": [
123
+ "__mf/js/async/lib-router.1acd2c34.js",
124
+ "__mf/js/async/470.3f481d24.js",
125
+ "__mf/js/async/982.8a88a864.js",
126
+ "__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js",
127
+ "__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js",
128
+ "__mf/js/async/732.69245394.js",
129
+ "__mf/js/async/177.cfdf2ea5.js"
130
+ ]
131
+ },
132
+ "css": {
133
+ "sync": [],
134
+ "async": [
135
+ "__mf/css/async/7.85c2cbf6.css"
136
+ ]
137
+ }
138
+ },
139
+ "path": "./SplunkDatasource"
140
+ },
141
+ {
142
+ "id": "Splunk:SplunkTimeSeriesQuery",
143
+ "name": "SplunkTimeSeriesQuery",
144
+ "assets": {
145
+ "js": {
146
+ "sync": [
147
+ "__mf/js/async/470.3f481d24.js",
148
+ "__mf/js/async/982.8a88a864.js",
149
+ "__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js"
150
+ ],
151
+ "async": [
152
+ "__mf/js/async/lib-router.1acd2c34.js",
153
+ "__mf/js/async/413.0cd939f5.js",
154
+ "__mf/js/async/667.bb282078.js",
155
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js",
156
+ "__mf/js/async/732.69245394.js",
157
+ "__mf/js/async/177.cfdf2ea5.js"
158
+ ]
159
+ },
160
+ "css": {
161
+ "sync": [],
162
+ "async": [
163
+ "__mf/css/async/7.85c2cbf6.css"
164
+ ]
165
+ }
166
+ },
167
+ "path": "./SplunkTimeSeriesQuery"
168
+ },
169
+ {
170
+ "id": "Splunk:SplunkLogQuery",
171
+ "name": "SplunkLogQuery",
172
+ "assets": {
173
+ "js": {
174
+ "sync": [
175
+ "__mf/js/async/470.3f481d24.js",
176
+ "__mf/js/async/982.8a88a864.js",
177
+ "__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js"
178
+ ],
179
+ "async": [
180
+ "__mf/js/async/lib-router.1acd2c34.js",
181
+ "__mf/js/async/413.0cd939f5.js",
182
+ "__mf/js/async/667.bb282078.js",
183
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js",
184
+ "__mf/js/async/732.69245394.js",
185
+ "__mf/js/async/177.cfdf2ea5.js"
186
+ ]
187
+ },
188
+ "css": {
189
+ "sync": [],
190
+ "async": [
191
+ "__mf/css/async/7.85c2cbf6.css"
192
+ ]
193
+ }
194
+ },
195
+ "path": "./SplunkLogQuery"
196
+ }
197
+ ]
198
+ }
package/mf-stats.json ADDED
@@ -0,0 +1,220 @@
1
+ {
2
+ "id": "Splunk",
3
+ "name": "Splunk",
4
+ "metaData": {
5
+ "name": "Splunk",
6
+ "type": "app",
7
+ "buildInfo": {
8
+ "buildVersion": "0.1.0-beta.0",
9
+ "buildName": "@perses-dev/splunk-plugin"
10
+ },
11
+ "remoteEntry": {
12
+ "name": "__mf/js/Splunk.d622dd09.js",
13
+ "path": "",
14
+ "type": "global"
15
+ },
16
+ "types": {
17
+ "path": "",
18
+ "name": "",
19
+ "zip": "",
20
+ "api": ""
21
+ },
22
+ "globalName": "Splunk",
23
+ "pluginVersion": "2.4.0",
24
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Splunk/\"; }"
25
+ },
26
+ "shared": [
27
+ {
28
+ "singleton": true,
29
+ "requiredVersion": "^0.54.0-beta.3",
30
+ "shareScope": "default",
31
+ "name": "@perses-dev/components",
32
+ "version": "0.54.0-beta.3",
33
+ "eager": false,
34
+ "id": "Splunk:@perses-dev/components",
35
+ "assets": {
36
+ "js": {
37
+ "async": [],
38
+ "sync": [
39
+ "__mf/js/async/7.ed3f1592.js"
40
+ ]
41
+ },
42
+ "css": {
43
+ "async": [],
44
+ "sync": [
45
+ "__mf/css/async/7.85c2cbf6.css"
46
+ ]
47
+ }
48
+ },
49
+ "usedIn": [],
50
+ "usedExports": [],
51
+ "fallback": ""
52
+ },
53
+ {
54
+ "singleton": true,
55
+ "requiredVersion": "^0.54.0-beta.3",
56
+ "shareScope": "default",
57
+ "name": "@perses-dev/plugin-system",
58
+ "version": "0.54.0-beta.3",
59
+ "eager": false,
60
+ "id": "Splunk:@perses-dev/plugin-system",
61
+ "assets": {
62
+ "js": {
63
+ "async": [],
64
+ "sync": [
65
+ "__mf/js/async/278.171d6548.js"
66
+ ]
67
+ },
68
+ "css": {
69
+ "async": [],
70
+ "sync": []
71
+ }
72
+ },
73
+ "usedIn": [],
74
+ "usedExports": [],
75
+ "fallback": ""
76
+ },
77
+ {
78
+ "singleton": true,
79
+ "requiredVersion": "^10.2.0",
80
+ "shareScope": "default",
81
+ "name": "immer",
82
+ "version": "10.2.0",
83
+ "eager": false,
84
+ "id": "Splunk:immer",
85
+ "assets": {
86
+ "js": {
87
+ "async": [],
88
+ "sync": [
89
+ "__mf/js/async/963.f1d8b579.js"
90
+ ]
91
+ },
92
+ "css": {
93
+ "async": [],
94
+ "sync": []
95
+ }
96
+ },
97
+ "usedIn": [],
98
+ "usedExports": [],
99
+ "fallback": ""
100
+ },
101
+ {
102
+ "singleton": true,
103
+ "requiredVersion": "18.2.0",
104
+ "shareScope": "default",
105
+ "name": "react",
106
+ "version": "18.3.1",
107
+ "eager": false,
108
+ "id": "Splunk:react",
109
+ "assets": {
110
+ "js": {
111
+ "async": [],
112
+ "sync": [
113
+ "__mf/js/async/121.444e1abe.js"
114
+ ]
115
+ },
116
+ "css": {
117
+ "async": [],
118
+ "sync": []
119
+ }
120
+ },
121
+ "usedIn": [],
122
+ "usedExports": [],
123
+ "fallback": ""
124
+ }
125
+ ],
126
+ "remotes": [],
127
+ "exposes": [
128
+ {
129
+ "path": "./SplunkDatasource",
130
+ "id": "Splunk:SplunkDatasource",
131
+ "name": "SplunkDatasource",
132
+ "requires": [],
133
+ "file": "src/datasources/splunk-datasource",
134
+ "assets": {
135
+ "js": {
136
+ "sync": [
137
+ "__mf/js/async/413.0cd939f5.js",
138
+ "__mf/js/async/667.bb282078.js",
139
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js"
140
+ ],
141
+ "async": [
142
+ "__mf/js/async/lib-router.1acd2c34.js",
143
+ "__mf/js/async/470.3f481d24.js",
144
+ "__mf/js/async/982.8a88a864.js",
145
+ "__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js",
146
+ "__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js",
147
+ "__mf/js/async/732.69245394.js",
148
+ "__mf/js/async/177.cfdf2ea5.js"
149
+ ]
150
+ },
151
+ "css": {
152
+ "sync": [],
153
+ "async": [
154
+ "__mf/css/async/7.85c2cbf6.css"
155
+ ]
156
+ }
157
+ }
158
+ },
159
+ {
160
+ "path": "./SplunkTimeSeriesQuery",
161
+ "id": "Splunk:SplunkTimeSeriesQuery",
162
+ "name": "SplunkTimeSeriesQuery",
163
+ "requires": [],
164
+ "file": "src/queries/splunk-time-series-query",
165
+ "assets": {
166
+ "js": {
167
+ "sync": [
168
+ "__mf/js/async/470.3f481d24.js",
169
+ "__mf/js/async/982.8a88a864.js",
170
+ "__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.fa50234a.js"
171
+ ],
172
+ "async": [
173
+ "__mf/js/async/lib-router.1acd2c34.js",
174
+ "__mf/js/async/413.0cd939f5.js",
175
+ "__mf/js/async/667.bb282078.js",
176
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js",
177
+ "__mf/js/async/732.69245394.js",
178
+ "__mf/js/async/177.cfdf2ea5.js"
179
+ ]
180
+ },
181
+ "css": {
182
+ "sync": [],
183
+ "async": [
184
+ "__mf/css/async/7.85c2cbf6.css"
185
+ ]
186
+ }
187
+ }
188
+ },
189
+ {
190
+ "path": "./SplunkLogQuery",
191
+ "id": "Splunk:SplunkLogQuery",
192
+ "name": "SplunkLogQuery",
193
+ "requires": [],
194
+ "file": "src/queries/splunk-log-query",
195
+ "assets": {
196
+ "js": {
197
+ "sync": [
198
+ "__mf/js/async/470.3f481d24.js",
199
+ "__mf/js/async/982.8a88a864.js",
200
+ "__mf/js/async/__federation_expose_SplunkLogQuery.df0414d6.js"
201
+ ],
202
+ "async": [
203
+ "__mf/js/async/lib-router.1acd2c34.js",
204
+ "__mf/js/async/413.0cd939f5.js",
205
+ "__mf/js/async/667.bb282078.js",
206
+ "__mf/js/async/__federation_expose_SplunkDatasource.f30e66ce.js",
207
+ "__mf/js/async/732.69245394.js",
208
+ "__mf/js/async/177.cfdf2ea5.js"
209
+ ]
210
+ },
211
+ "css": {
212
+ "sync": [],
213
+ "async": [
214
+ "__mf/css/async/7.85c2cbf6.css"
215
+ ]
216
+ }
217
+ }
218
+ }
219
+ ]
220
+ }