@perses-dev/victorialogs-plugin 0.4.0 → 0.5.0-beta.2

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 (273) hide show
  1. package/__mf/js/{VictoriaLogs.db5cc46b.js → VictoriaLogs.a8769935.js} +3 -3
  2. package/__mf/js/async/1522.952455c8.js +22 -0
  3. package/__mf/js/async/1616.5bfbc6c9.js +1 -0
  4. package/__mf/js/async/198.0747c3c4.js +2 -0
  5. package/__mf/js/async/2043.15dfcaf2.js +2 -0
  6. package/__mf/js/async/2377.becaacc4.js +1 -0
  7. package/__mf/js/async/2650.a7bdaf49.js +3 -0
  8. package/__mf/js/async/2786.f183253f.js +2 -0
  9. package/__mf/js/async/2901.d2d83345.js +1 -0
  10. package/__mf/js/async/392.e0ccad9b.js +2 -0
  11. package/__mf/js/async/4077.5440638f.js +1 -0
  12. package/__mf/js/async/4121.e0b41fa2.js +2 -0
  13. package/__mf/js/async/4248.2c62b66c.js +1 -0
  14. package/__mf/js/async/4496.46c01862.js +1 -0
  15. package/__mf/js/async/4960.fd41e601.js +2 -0
  16. package/__mf/js/async/5019.6f35fcfe.js +1 -0
  17. package/__mf/js/async/5071.dbccdae6.js +1 -0
  18. package/__mf/js/async/5440.5a93fae0.js +2 -0
  19. package/__mf/js/async/5587.5e3cc249.js +1 -0
  20. package/__mf/js/async/560.56b83614.js +37 -0
  21. package/__mf/js/async/5623.f2841bc8.js +1 -0
  22. package/__mf/js/async/5650.8e02c19d.js +7 -0
  23. package/__mf/js/async/{5405.004a286a.js.LICENSE.txt → 5650.8e02c19d.js.LICENSE.txt} +41 -1
  24. package/__mf/js/async/5706.4665b04a.js +1 -0
  25. package/__mf/js/async/6274.05a0c6f1.js +2 -0
  26. package/__mf/js/async/6854.88725ad0.js +1 -0
  27. package/__mf/js/async/7192.34127278.js +1 -0
  28. package/__mf/js/async/7740.802c9257.js +101 -0
  29. package/__mf/js/async/7817.63122fff.js +2 -0
  30. package/__mf/js/async/7862.5530d38c.js +2 -0
  31. package/__mf/js/async/7873.1ef3480e.js +2 -0
  32. package/__mf/js/async/7968.960f80da.js +1 -0
  33. package/__mf/js/async/7978.1899f369.js +1 -0
  34. package/__mf/js/async/8356.21af7a90.js +1 -0
  35. package/__mf/js/async/8470.b2bd6ab1.js +2 -0
  36. package/__mf/js/async/873.42d5c5c0.js +1 -0
  37. package/__mf/js/async/9207.f6612692.js +1 -0
  38. package/__mf/js/async/9235.2e62d2f5.js +1 -0
  39. package/__mf/js/async/941.3d0f5a01.js +2 -0
  40. package/__mf/js/async/9440.ddd37afc.js +10 -0
  41. package/__mf/js/async/9588.96579f82.js +1 -0
  42. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.03128f7e.js +2 -0
  43. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.0ceb2243.js +2 -0
  44. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.72183be9.js +2 -0
  45. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.916adf8b.js +1 -0
  46. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.1f986674.js +1 -0
  47. package/__mf/js/{main.0d99a16b.js → main.7c22713c.js} +2 -2
  48. package/lib/bootstrap.js +2 -2
  49. package/lib/components/index.js +1 -1
  50. package/lib/components/index.js.map +1 -1
  51. package/lib/components/logsql-editor.d.ts +2 -2
  52. package/lib/components/logsql-editor.d.ts.map +1 -1
  53. package/lib/components/logsql-editor.js +4 -4
  54. package/lib/components/logsql-editor.js.map +1 -1
  55. package/lib/components/logsql-extension.d.ts +1 -1
  56. package/lib/components/logsql-extension.d.ts.map +1 -1
  57. package/lib/components/logsql-extension.js +3 -3
  58. package/lib/components/logsql-extension.js.map +1 -1
  59. package/lib/components/logsql-highlight.js +1 -1
  60. package/lib/datasources/index.js +1 -1
  61. package/lib/datasources/index.js.map +1 -1
  62. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts +3 -3
  63. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
  64. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +2 -2
  65. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
  66. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts +2 -2
  67. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts.map +1 -1
  68. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
  69. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
  70. package/lib/datasources/victorialogs-datasource/index.js +3 -3
  71. package/lib/datasources/victorialogs-datasource/index.js.map +1 -1
  72. package/lib/datasources/victorialogs-datasource/types.d.ts +1 -1
  73. package/lib/datasources/victorialogs-datasource/types.d.ts.map +1 -1
  74. package/lib/datasources/victorialogs-datasource/types.js.map +1 -1
  75. package/lib/getPluginModule.d.ts +1 -1
  76. package/lib/getPluginModule.d.ts.map +1 -1
  77. package/lib/getPluginModule.js +3 -1
  78. package/lib/getPluginModule.js.map +1 -1
  79. package/lib/index-federation.js +1 -1
  80. package/lib/index.js +4 -4
  81. package/lib/index.js.map +1 -1
  82. package/lib/model/client.d.ts +1 -1
  83. package/lib/model/client.d.ts.map +1 -1
  84. package/lib/model/client.js.map +1 -1
  85. package/lib/model/index.js +3 -3
  86. package/lib/model/index.js.map +1 -1
  87. package/lib/model/selectors.d.ts +2 -2
  88. package/lib/model/selectors.d.ts.map +1 -1
  89. package/lib/model/selectors.js +1 -1
  90. package/lib/model/selectors.js.map +1 -1
  91. package/lib/queries/index.js +2 -2
  92. package/lib/queries/index.js.map +1 -1
  93. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts +2 -2
  94. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -1
  95. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +4 -6
  96. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -1
  97. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts +3 -3
  98. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
  99. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +7 -7
  100. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
  101. package/lib/queries/victorialogs-log-query/index.js +4 -4
  102. package/lib/queries/victorialogs-log-query/index.js.map +1 -1
  103. package/lib/queries/victorialogs-log-query/query.d.ts +2 -2
  104. package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -1
  105. package/lib/queries/victorialogs-log-query/query.js +2 -2
  106. package/lib/queries/victorialogs-log-query/query.js.map +1 -1
  107. package/lib/queries/victorialogs-log-query/types.d.ts +1 -1
  108. package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -1
  109. package/lib/queries/victorialogs-log-query/types.js.map +1 -1
  110. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts +2 -2
  111. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts.map +1 -1
  112. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +4 -6
  113. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -1
  114. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts +3 -3
  115. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts.map +1 -1
  116. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +7 -7
  117. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
  118. package/lib/queries/victorialogs-time-series-query/index.js +4 -4
  119. package/lib/queries/victorialogs-time-series-query/index.js.map +1 -1
  120. package/lib/queries/victorialogs-time-series-query/query.d.ts +2 -2
  121. package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -1
  122. package/lib/queries/victorialogs-time-series-query/query.js +4 -4
  123. package/lib/queries/victorialogs-time-series-query/query.js.map +1 -1
  124. package/lib/queries/victorialogs-time-series-query/types.d.ts +1 -1
  125. package/lib/queries/victorialogs-time-series-query/types.d.ts.map +1 -1
  126. package/lib/queries/victorialogs-time-series-query/types.js.map +1 -1
  127. package/lib/setup-tests.d.ts +1 -1
  128. package/lib/setup-tests.d.ts.map +1 -1
  129. package/lib/setup-tests.js +2 -2
  130. package/lib/setup-tests.js.map +1 -1
  131. package/lib/variables/index.js +2 -2
  132. package/lib/variables/index.js.map +1 -1
  133. package/lib/variables/types.d.ts +2 -2
  134. package/lib/variables/types.d.ts.map +1 -1
  135. package/lib/variables/types.js.map +1 -1
  136. package/lib/variables/utils.d.ts +5 -5
  137. package/lib/variables/utils.d.ts.map +1 -1
  138. package/lib/variables/utils.js +2 -2
  139. package/lib/variables/utils.js.map +1 -1
  140. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts +2 -2
  141. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -1
  142. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +4 -4
  143. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -1
  144. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts +3 -3
  145. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts.map +1 -1
  146. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +5 -5
  147. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
  148. package/lib/variables/victorialogs-field-names/index.js +1 -1
  149. package/lib/variables/victorialogs-field-names/index.js.map +1 -1
  150. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts +2 -2
  151. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -1
  152. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +4 -4
  153. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -1
  154. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts +3 -3
  155. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts.map +1 -1
  156. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +6 -6
  157. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
  158. package/lib/variables/victorialogs-field-values/index.js +1 -1
  159. package/lib/variables/victorialogs-field-values/index.js.map +1 -1
  160. package/mf-manifest.json +140 -192
  161. package/mf-stats.json +140 -196
  162. package/package.json +20 -12
  163. package/__mf/js/async/1170.532d9fb3.js +0 -101
  164. package/__mf/js/async/1616.5a6b8ab3.js +0 -1
  165. package/__mf/js/async/1728.b01c38aa.js +0 -1
  166. package/__mf/js/async/1969.fc35e1b4.js +0 -1
  167. package/__mf/js/async/198.fbb67f8a.js +0 -2
  168. package/__mf/js/async/2043.b149adfd.js +0 -2
  169. package/__mf/js/async/2377.9265b0a7.js +0 -1
  170. package/__mf/js/async/2728.fd6779e6.js +0 -1
  171. package/__mf/js/async/2749.71c38fe0.js +0 -2
  172. package/__mf/js/async/2842.3740ca9b.js +0 -1
  173. package/__mf/js/async/3059.fe1cdfc3.js +0 -1
  174. package/__mf/js/async/392.c6e57bd8.js +0 -2
  175. package/__mf/js/async/3981.02c66856.js +0 -3
  176. package/__mf/js/async/3998.e9a3cf1a.js +0 -2
  177. package/__mf/js/async/4121.5468ac01.js +0 -2
  178. package/__mf/js/async/4225.744952e9.js +0 -10
  179. package/__mf/js/async/4248.9b99209c.js +0 -1
  180. package/__mf/js/async/5019.51d94aab.js +0 -1
  181. package/__mf/js/async/5071.6ac86637.js +0 -1
  182. package/__mf/js/async/5405.004a286a.js +0 -2
  183. package/__mf/js/async/5440.7765ad14.js +0 -2
  184. package/__mf/js/async/5481.b7b48b8f.js +0 -2
  185. package/__mf/js/async/5587.12959dbf.js +0 -1
  186. package/__mf/js/async/5706.55b9ef2f.js +0 -1
  187. package/__mf/js/async/6274.0634d636.js +0 -2
  188. package/__mf/js/async/6408.2bc7e8f4.js +0 -7
  189. package/__mf/js/async/6408.2bc7e8f4.js.LICENSE.txt +0 -39
  190. package/__mf/js/async/6410.63a88be6.js +0 -1
  191. package/__mf/js/async/6592.24e266ac.js +0 -1
  192. package/__mf/js/async/6854.21ddded3.js +0 -1
  193. package/__mf/js/async/6864.66bc6315.js +0 -2
  194. package/__mf/js/async/7177.dfbac40a.js +0 -1
  195. package/__mf/js/async/7192.339adba2.js +0 -1
  196. package/__mf/js/async/7793.43841fdc.js +0 -1
  197. package/__mf/js/async/7817.5e96b0dd.js +0 -2
  198. package/__mf/js/async/7968.d586d9f8.js +0 -1
  199. package/__mf/js/async/7978.895bbb5f.js +0 -1
  200. package/__mf/js/async/7984.194982d6.js +0 -22
  201. package/__mf/js/async/8356.053c21d0.js +0 -1
  202. package/__mf/js/async/8470.cb89de3b.js +0 -2
  203. package/__mf/js/async/873.4df0ea19.js +0 -1
  204. package/__mf/js/async/8787.c3298397.js +0 -2
  205. package/__mf/js/async/9235.3e1de7b9.js +0 -1
  206. package/__mf/js/async/941.a44f722e.js +0 -2
  207. package/__mf/js/async/9588.c379dd44.js +0 -1
  208. package/__mf/js/async/9836.fd9de3af.js +0 -1
  209. package/__mf/js/async/9877.8b83de3c.js +0 -38
  210. package/__mf/js/async/9944.4d41cb7b.js +0 -1
  211. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.807ae747.js +0 -2
  212. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.ccafeb36.js +0 -1
  213. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.5e29c327.js +0 -1
  214. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.6e607640.js +0 -1
  215. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.91a8ad9d.js +0 -1
  216. package/lib/cjs/bootstrap.js +0 -26
  217. package/lib/cjs/components/index.js +0 -23
  218. package/lib/cjs/components/logsql-editor.js +0 -110
  219. package/lib/cjs/components/logsql-extension.js +0 -55
  220. package/lib/cjs/components/logsql-highlight.js +0 -40
  221. package/lib/cjs/datasources/index.js +0 -30
  222. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +0 -61
  223. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +0 -95
  224. package/lib/cjs/datasources/victorialogs-datasource/index.js +0 -32
  225. package/lib/cjs/datasources/victorialogs-datasource/types.js +0 -16
  226. package/lib/cjs/env.d.js +0 -14
  227. package/lib/cjs/getPluginModule.js +0 -39
  228. package/lib/cjs/index-federation.js +0 -55
  229. package/lib/cjs/index.js +0 -39
  230. package/lib/cjs/model/client.js +0 -156
  231. package/lib/cjs/model/index.js +0 -32
  232. package/lib/cjs/model/selectors.js +0 -47
  233. package/lib/cjs/model/types.js +0 -16
  234. package/lib/cjs/queries/constants.js +0 -34
  235. package/lib/cjs/queries/index.js +0 -31
  236. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +0 -63
  237. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +0 -114
  238. package/lib/cjs/queries/victorialogs-log-query/index.js +0 -33
  239. package/lib/cjs/queries/victorialogs-log-query/query.js +0 -73
  240. package/lib/cjs/queries/victorialogs-log-query/types.js +0 -16
  241. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +0 -43
  242. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +0 -112
  243. package/lib/cjs/queries/victorialogs-time-series-query/index.js +0 -33
  244. package/lib/cjs/queries/victorialogs-time-series-query/query.js +0 -126
  245. package/lib/cjs/queries/victorialogs-time-series-query/types.js +0 -16
  246. package/lib/cjs/setup-tests.js +0 -19
  247. package/lib/cjs/variables/index.js +0 -31
  248. package/lib/cjs/variables/types.js +0 -16
  249. package/lib/cjs/variables/utils.js +0 -97
  250. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +0 -57
  251. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +0 -80
  252. package/lib/cjs/variables/victorialogs-field-names/index.js +0 -30
  253. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +0 -61
  254. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +0 -113
  255. package/lib/cjs/variables/victorialogs-field-values/index.js +0 -30
  256. /package/__mf/css/async/{6408.85c2cbf6.css → 5650.85c2cbf6.css} +0 -0
  257. /package/__mf/js/async/{7984.194982d6.js.LICENSE.txt → 1522.952455c8.js.LICENSE.txt} +0 -0
  258. /package/__mf/js/async/{198.fbb67f8a.js.LICENSE.txt → 198.0747c3c4.js.LICENSE.txt} +0 -0
  259. /package/__mf/js/async/{2043.b149adfd.js.LICENSE.txt → 2043.15dfcaf2.js.LICENSE.txt} +0 -0
  260. /package/__mf/js/async/{2749.71c38fe0.js.LICENSE.txt → 2786.f183253f.js.LICENSE.txt} +0 -0
  261. /package/__mf/js/async/{392.c6e57bd8.js.LICENSE.txt → 392.e0ccad9b.js.LICENSE.txt} +0 -0
  262. /package/__mf/js/async/{4121.5468ac01.js.LICENSE.txt → 4121.e0b41fa2.js.LICENSE.txt} +0 -0
  263. /package/__mf/js/async/{3998.e9a3cf1a.js.LICENSE.txt → 4960.fd41e601.js.LICENSE.txt} +0 -0
  264. /package/__mf/js/async/{5440.7765ad14.js.LICENSE.txt → 5440.5a93fae0.js.LICENSE.txt} +0 -0
  265. /package/__mf/js/async/{6274.0634d636.js.LICENSE.txt → 6274.05a0c6f1.js.LICENSE.txt} +0 -0
  266. /package/__mf/js/async/{6864.66bc6315.js.LICENSE.txt → 7817.63122fff.js.LICENSE.txt} +0 -0
  267. /package/__mf/js/async/{5481.b7b48b8f.js.LICENSE.txt → 7862.5530d38c.js.LICENSE.txt} +0 -0
  268. /package/__mf/js/async/{8470.cb89de3b.js.LICENSE.txt → 8470.b2bd6ab1.js.LICENSE.txt} +0 -0
  269. /package/__mf/js/async/{7817.5e96b0dd.js.LICENSE.txt → 941.3d0f5a01.js.LICENSE.txt} +0 -0
  270. /package/__mf/js/async/{4225.744952e9.js.LICENSE.txt → 9440.ddd37afc.js.LICENSE.txt} +0 -0
  271. /package/__mf/js/async/{8787.c3298397.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.03128f7e.js.LICENSE.txt} +0 -0
  272. /package/__mf/js/async/{941.a44f722e.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.0ceb2243.js.LICENSE.txt} +0 -0
  273. /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.807ae747.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.72183be9.js.LICENSE.txt} +0 -0
@@ -1,156 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: Object.getOwnPropertyDescriptor(all, name).get
21
- });
22
- }
23
- _export(exports, {
24
- get fieldNames () {
25
- return fieldNames;
26
- },
27
- get fieldValues () {
28
- return fieldValues;
29
- },
30
- get statsQueryRange () {
31
- return statsQueryRange;
32
- },
33
- get streamQueryRange () {
34
- return streamQueryRange;
35
- }
36
- });
37
- function buildUrl(path, datasourceUrl) {
38
- if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {
39
- return new URL(path, datasourceUrl);
40
- }
41
- let fullPath = datasourceUrl;
42
- // Assume relative path, ensure no double slashes
43
- if (datasourceUrl.endsWith('/') && path.startsWith('/')) {
44
- fullPath = datasourceUrl + path.slice(1);
45
- } else if (!datasourceUrl.endsWith('/') && !path.startsWith('/')) {
46
- fullPath = datasourceUrl + '/' + path;
47
- } else {
48
- fullPath = datasourceUrl + path;
49
- }
50
- return new URL(fullPath, window.location.origin);
51
- }
52
- async function streamQueryRange(params, options) {
53
- const url = buildUrl('/select/logsql/query', options.datasourceUrl);
54
- const postData = {
55
- query: params.query,
56
- start: params.start,
57
- end: params.end
58
- };
59
- if (params?.limit) postData['limit'] = params.limit.toString();
60
- if (params?.offset) postData['offset'] = params.offset.toString();
61
- const data = new URLSearchParams(postData).toString();
62
- const response = await fetch(url.toString(), {
63
- method: 'POST',
64
- headers: {
65
- 'Content-Type': 'application/x-www-form-urlencoded',
66
- Accept: 'application/stream+json',
67
- ...options.headers
68
- },
69
- body: data
70
- });
71
- if (response.status !== 200) {
72
- throw new Error(await response.text());
73
- }
74
- const output = [];
75
- if (!response?.body) return output;
76
- const reader = response.body.getReader();
77
- const decoder = new TextDecoder('utf-8');
78
- let buffer = '';
79
- let result = await reader.read();
80
- while(!result.done){
81
- buffer += decoder.decode(result.value, {
82
- stream: true
83
- });
84
- let boundary = buffer.indexOf('\n');
85
- while(boundary !== -1){
86
- const line = buffer.slice(0, boundary);
87
- buffer = buffer.slice(boundary + 1);
88
- output.push(JSON.parse(line));
89
- boundary = buffer.indexOf('\n');
90
- }
91
- result = await reader.read();
92
- }
93
- if (buffer.trim().length > 0) {
94
- output.push(JSON.parse(buffer));
95
- }
96
- return output;
97
- }
98
- async function statsQueryRange(params, options) {
99
- const url = buildUrl('/select/logsql/stats_query_range', options.datasourceUrl);
100
- const postData = {
101
- query: params.query,
102
- start: params.start,
103
- end: params.end
104
- };
105
- if (params?.step) postData['step'] = params.step.toString();
106
- const data = new URLSearchParams(postData).toString();
107
- const response = await fetch(url.toString(), {
108
- method: 'POST',
109
- headers: {
110
- 'Content-Type': 'application/x-www-form-urlencoded',
111
- Accept: 'application/json',
112
- ...options.headers
113
- },
114
- body: data
115
- });
116
- return await response.json();
117
- }
118
- async function fieldNames(params, options) {
119
- const url = buildUrl('/select/logsql/field_names', options.datasourceUrl);
120
- const postData = {
121
- query: params.query
122
- };
123
- if (params.start) postData['start'] = params.start;
124
- if (params.end) postData['end'] = params.end;
125
- const data = new URLSearchParams(postData).toString();
126
- const response = await fetch(url.toString(), {
127
- method: 'POST',
128
- headers: {
129
- 'Content-Type': 'application/x-www-form-urlencoded',
130
- Accept: 'application/json',
131
- ...options.headers
132
- },
133
- body: data
134
- });
135
- return await response.json();
136
- }
137
- async function fieldValues(params, options) {
138
- const url = buildUrl(`/select/logsql/field_values`, options.datasourceUrl);
139
- const postData = {
140
- query: params.query,
141
- field: params.field
142
- };
143
- if (params.start) postData['start'] = params.start;
144
- if (params.end) postData['end'] = params.end;
145
- const data = new URLSearchParams(postData).toString();
146
- const response = await fetch(url.toString(), {
147
- method: 'POST',
148
- headers: {
149
- 'Content-Type': 'application/x-www-form-urlencoded',
150
- Accept: 'application/json',
151
- ...options.headers
152
- },
153
- body: data
154
- });
155
- return await response.json();
156
- }
@@ -1,32 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- _export_star(require("./client"), exports);
18
- _export_star(require("./selectors"), exports);
19
- _export_star(require("./types"), exports);
20
- function _export_star(from, to) {
21
- Object.keys(from).forEach(function(k) {
22
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
23
- Object.defineProperty(to, k, {
24
- enumerable: true,
25
- get: function() {
26
- return from[k];
27
- }
28
- });
29
- }
30
- });
31
- return from;
32
- }
@@ -1,47 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: Object.getOwnPropertyDescriptor(all, name).get
21
- });
22
- }
23
- _export(exports, {
24
- get DEFAULT_VICTORIALOGS () {
25
- return DEFAULT_VICTORIALOGS;
26
- },
27
- get VICTORIALOGS_DATASOURCE_KIND () {
28
- return VICTORIALOGS_DATASOURCE_KIND;
29
- },
30
- get isDefaultVictoriaLogsSelector () {
31
- return isDefaultVictoriaLogsSelector;
32
- },
33
- get isVictoriaLogsDatasourceSelector () {
34
- return isVictoriaLogsDatasourceSelector;
35
- }
36
- });
37
- const _pluginsystem = require("@perses-dev/plugin-system");
38
- const VICTORIALOGS_DATASOURCE_KIND = 'VictoriaLogsDatasource';
39
- const DEFAULT_VICTORIALOGS = {
40
- kind: VICTORIALOGS_DATASOURCE_KIND
41
- };
42
- function isDefaultVictoriaLogsSelector(datasourceSelectValue) {
43
- return !(0, _pluginsystem.isVariableDatasource)(datasourceSelectValue) && datasourceSelectValue.name === undefined;
44
- }
45
- function isVictoriaLogsDatasourceSelector(datasourceSelectValue) {
46
- return (0, _pluginsystem.isVariableDatasource)(datasourceSelectValue) || datasourceSelectValue.kind === VICTORIALOGS_DATASOURCE_KIND;
47
- }
@@ -1,16 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
@@ -1,34 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: Object.getOwnPropertyDescriptor(all, name).get
21
- });
22
- }
23
- _export(exports, {
24
- get DATASOURCE_KIND () {
25
- return DATASOURCE_KIND;
26
- },
27
- get DEFAULT_DATASOURCE () {
28
- return DEFAULT_DATASOURCE;
29
- }
30
- });
31
- const DATASOURCE_KIND = 'VictoriaLogsDatasource';
32
- const DEFAULT_DATASOURCE = {
33
- kind: DATASOURCE_KIND
34
- };
@@ -1,31 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- _export_star(require("./victorialogs-time-series-query"), exports);
18
- _export_star(require("./victorialogs-log-query"), exports);
19
- function _export_star(from, to) {
20
- Object.keys(from).forEach(function(k) {
21
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
22
- Object.defineProperty(to, k, {
23
- enumerable: true,
24
- get: function() {
25
- return from[k];
26
- }
27
- });
28
- }
29
- });
30
- return from;
31
- }
@@ -1,63 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "VictoriaLogsLogQuery", {
18
- enumerable: true,
19
- get: function() {
20
- return VictoriaLogsLogQuery;
21
- }
22
- });
23
- const _pluginsystem = require("@perses-dev/plugin-system");
24
- const _query = require("./query");
25
- const _VictoriaLogsLogQueryEditor = require("./VictoriaLogsLogQueryEditor");
26
- const VictoriaLogsLogQuery = {
27
- getLogData: _query.getVictoriaLogsLogData,
28
- OptionsEditorComponent: _VictoriaLogsLogQueryEditor.VictoriaLogsLogQueryEditor,
29
- createInitialOptions: ()=>({
30
- query: ''
31
- }),
32
- dependsOn: (spec)=>{
33
- const queryVariables = (0, _pluginsystem.parseVariables)(spec.query);
34
- const allVariables = [
35
- ...new Set([
36
- ...queryVariables
37
- ])
38
- ];
39
- return {
40
- variables: allVariables
41
- };
42
- },
43
- createVolumeQuery: (spec, ctx)=>{
44
- if (!spec.query || !spec.query.trim()) {
45
- return null;
46
- }
47
- const interval = (0, _pluginsystem.calculateVolumeInterval)(ctx.timeRange.end.getTime() - ctx.timeRange.start.getTime());
48
- const volumeQuery = `${spec.query} | stats by (_time:${interval}, _stream) count() as volume`;
49
- return {
50
- kind: 'TimeSeriesQuery',
51
- spec: {
52
- plugin: {
53
- kind: 'VictoriaLogsTimeSeriesQuery',
54
- spec: {
55
- query: volumeQuery,
56
- datasource: spec.datasource,
57
- step: interval
58
- }
59
- }
60
- }
61
- };
62
- }
63
- };
@@ -1,114 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "VictoriaLogsLogQueryEditor", {
18
- enumerable: true,
19
- get: function() {
20
- return VictoriaLogsLogQueryEditor;
21
- }
22
- });
23
- const _jsxruntime = require("react/jsx-runtime");
24
- const _pluginsystem = require("@perses-dev/plugin-system");
25
- const _material = require("@mui/material");
26
- const _react = require("react");
27
- const _dashboards = require("@perses-dev/dashboards");
28
- const _logsqleditor = require("../../components/logsql-editor");
29
- const _model = require("../../model");
30
- const _constants = require("../constants");
31
- function VictoriaLogsLogQueryEditor(props) {
32
- const { onChange, value } = props;
33
- const { datasource } = value;
34
- const datasourceSelectValue = datasource ?? _constants.DEFAULT_DATASOURCE;
35
- const selectedDatasource = (0, _pluginsystem.useDatasourceSelectValueToSelector)(datasourceSelectValue, _model.VICTORIALOGS_DATASOURCE_KIND);
36
- // const { data: client } = useDatasourceClient<VictoriaLogsClient>(selectedDatasource);
37
- // const victorialogsURL = client?.options.datasourceUrl;
38
- // Local state for editor value to prevent query_range calls on every keystroke
39
- const [localQuery, setLocalQuery] = (0, _react.useState)(value.query);
40
- // Update local state when prop changes
41
- (0, _react.useEffect)(()=>{
42
- setLocalQuery(value.query);
43
- }, [
44
- value.query
45
- ]);
46
- const handleDatasourceChange = (newDatasourceSelection)=>{
47
- if (!(0, _pluginsystem.isVariableDatasource)(newDatasourceSelection) && newDatasourceSelection.kind === _constants.DATASOURCE_KIND) {
48
- onChange({
49
- ...value,
50
- datasource: newDatasourceSelection
51
- });
52
- return;
53
- }
54
- throw new Error('Got unexpected non VictoriaLogsQuery datasource selection');
55
- };
56
- // Debounced query change handler to prevent excessive query_range calls
57
- const handleQueryChange = (0, _react.useCallback)((newQuery)=>{
58
- setLocalQuery(newQuery);
59
- }, []);
60
- // Immediate query execution on Enter or blur
61
- const handleQueryExecute = (0, _react.useCallback)((query)=>{
62
- onChange({
63
- ...value,
64
- query
65
- });
66
- }, [
67
- onChange,
68
- value
69
- ]);
70
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
71
- spacing: 1.5,
72
- paddingBottom: 1,
73
- children: [
74
- /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
75
- children: [
76
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
77
- sx: {
78
- display: 'block',
79
- marginBottom: '4px',
80
- fontWeight: 500
81
- },
82
- children: "Datasource"
83
- }),
84
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.DatasourceSelect, {
85
- datasourcePluginKind: _constants.DATASOURCE_KIND,
86
- value: selectedDatasource,
87
- onChange: handleDatasourceChange,
88
- label: "VictoriaLogs Datasource",
89
- notched: true
90
- })
91
- ]
92
- }),
93
- /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
94
- children: [
95
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
96
- sx: {
97
- display: 'block',
98
- marginBottom: '4px',
99
- fontWeight: 500
100
- },
101
- children: "LogsQL Query"
102
- }),
103
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_logsqleditor.LogsQLEditor, {
104
- value: localQuery,
105
- onChange: handleQueryChange,
106
- onBlur: ()=>handleQueryExecute(localQuery),
107
- onKeyDown: (0, _dashboards.createModEnterHandler)(()=>handleQueryExecute(localQuery)),
108
- placeholder: 'Enter LogsQL query (e.g. {job="mysql"} |= "error")'
109
- })
110
- ]
111
- })
112
- ]
113
- });
114
- }
@@ -1,33 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- _export_star(require("./query"), exports);
18
- _export_star(require("./VictoriaLogsLogQuery"), exports);
19
- _export_star(require("./VictoriaLogsLogQueryEditor"), exports);
20
- _export_star(require("./types"), exports);
21
- function _export_star(from, to) {
22
- Object.keys(from).forEach(function(k) {
23
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
24
- Object.defineProperty(to, k, {
25
- enumerable: true,
26
- get: function() {
27
- return from[k];
28
- }
29
- });
30
- }
31
- });
32
- return from;
33
- }
@@ -1,73 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "getVictoriaLogsLogData", {
18
- enumerable: true,
19
- get: function() {
20
- return getVictoriaLogsLogData;
21
- }
22
- });
23
- const _pluginsystem = require("@perses-dev/plugin-system");
24
- const _constants = require("../constants");
25
- function convertStreamToLogs(data, defaultTime) {
26
- const entries = [];
27
- data.forEach((entry)=>{
28
- const { _msg, _time, ...labels } = entry;
29
- const time = !_time && !_msg ? defaultTime : Date.parse(_time);
30
- entries.push({
31
- timestamp: Number(time) / 1000,
32
- line: _msg || '',
33
- labels: labels
34
- });
35
- });
36
- return {
37
- entries,
38
- totalCount: entries.length
39
- };
40
- }
41
- const getVictoriaLogsLogData = async (spec, context)=>{
42
- if (!spec.query) {
43
- return {
44
- logs: {
45
- entries: [],
46
- totalCount: 0
47
- },
48
- timeRange: {
49
- start: context.timeRange.start,
50
- end: context.timeRange.end
51
- }
52
- };
53
- }
54
- const query = (0, _pluginsystem.replaceVariables)(spec.query, context.variableState);
55
- const client = await context.datasourceStore.getDatasourceClient(spec.datasource ?? _constants.DEFAULT_DATASOURCE);
56
- const { start, end } = context.timeRange;
57
- const response = await client.streamQueryRange({
58
- query,
59
- start: start.toISOString(),
60
- end: end.toISOString()
61
- });
62
- const logs = convertStreamToLogs(response, end.getTime().toString());
63
- return {
64
- logs,
65
- timeRange: {
66
- start,
67
- end
68
- },
69
- metadata: {
70
- executedQueryString: query
71
- }
72
- };
73
- };
@@ -1,16 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
@@ -1,43 +0,0 @@
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
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "VictoriaLogsTimeSeriesQuery", {
18
- enumerable: true,
19
- get: function() {
20
- return VictoriaLogsTimeSeriesQuery;
21
- }
22
- });
23
- const _pluginsystem = require("@perses-dev/plugin-system");
24
- const _query = require("./query");
25
- const _VictoriaLogsTimeSeriesQueryEditor = require("./VictoriaLogsTimeSeriesQueryEditor");
26
- const VictoriaLogsTimeSeriesQuery = {
27
- getTimeSeriesData: _query.getVictoriaLogsTimeSeriesData,
28
- OptionsEditorComponent: _VictoriaLogsTimeSeriesQueryEditor.VictoriaLogsQueryEditor,
29
- createInitialOptions: ()=>({
30
- query: ''
31
- }),
32
- dependsOn: (spec)=>{
33
- const queryVariables = (0, _pluginsystem.parseVariables)(spec.query);
34
- const allVariables = [
35
- ...new Set([
36
- ...queryVariables
37
- ])
38
- ];
39
- return {
40
- variables: allVariables
41
- };
42
- }
43
- };