@perses-dev/splunk-plugin 0.1.0 → 0.2.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.
- package/__mf/js/{Splunk.6f71e9ce.js → Splunk.98b2d5ad.js} +4 -4
- package/__mf/js/async/121.cd990f2a.js +2 -0
- package/__mf/js/async/181.45639ce7.js +2 -0
- package/__mf/js/async/230.28ff3a01.js +1 -0
- package/__mf/js/async/392.54d1105e.js +2 -0
- package/__mf/js/async/392.54d1105e.js.LICENSE.txt +8 -0
- package/__mf/js/async/43.c13dea67.js +2 -0
- package/__mf/js/async/{116.9f39e2dc.js.LICENSE.txt → 43.c13dea67.js.LICENSE.txt} +1 -41
- package/__mf/js/async/470.39364cc9.js +2 -0
- package/__mf/js/async/496.5533cf13.js +1 -0
- package/__mf/js/async/562.faedd192.js +2 -0
- package/__mf/js/async/77.d9722d64.js +1 -0
- package/__mf/js/async/788.e519d52f.js +43 -0
- package/__mf/js/async/{332.fc51c4d5.js.LICENSE.txt → 788.e519d52f.js.LICENSE.txt} +39 -8
- package/__mf/js/async/873.84546c86.js +1 -0
- package/__mf/js/async/874.496bb61a.js +4 -0
- package/__mf/js/async/874.496bb61a.js.LICENSE.txt +9 -0
- package/__mf/js/async/879.ab41564d.js +102 -0
- package/__mf/js/async/882.0bb195b0.js +1 -0
- package/__mf/js/async/941.049134e9.js +2 -0
- package/__mf/js/async/963.4c102cc8.js +1 -0
- package/__mf/js/async/967.49cac6cc.js +1 -0
- package/__mf/js/async/978.1b184143.js +1 -0
- package/__mf/js/async/982.8181aade.js +10 -0
- package/__mf/js/async/__federation_expose_SplunkDatasource.5b9ca25b.js +2 -0
- package/__mf/js/async/__federation_expose_SplunkLogQuery.5e35f21f.js +2 -0
- package/__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.62f3d6f2.js +2 -0
- package/__mf/js/async/lib-router.02ac6b0e.js +2 -0
- package/__mf/js/{main.ccd342d6.js → main.4223bafa.js} +3 -3
- package/lib/bootstrap.js +2 -2
- package/lib/datasources/index.js +1 -1
- package/lib/datasources/index.js.map +1 -1
- package/lib/datasources/splunk-datasource/SplunkDatasource.d.ts +3 -3
- package/lib/datasources/splunk-datasource/SplunkDatasource.d.ts.map +1 -1
- package/lib/datasources/splunk-datasource/SplunkDatasource.js +2 -2
- package/lib/datasources/splunk-datasource/SplunkDatasource.js.map +1 -1
- package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.d.ts +2 -2
- package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.d.ts.map +1 -1
- package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.js +1 -1
- package/lib/datasources/splunk-datasource/SplunkDatasourceEditor.js.map +1 -1
- package/lib/datasources/splunk-datasource/index.js +3 -3
- package/lib/datasources/splunk-datasource/index.js.map +1 -1
- package/lib/datasources/splunk-datasource/splunk-datasource-types.d.ts +1 -1
- package/lib/datasources/splunk-datasource/splunk-datasource-types.d.ts.map +1 -1
- package/lib/datasources/splunk-datasource/splunk-datasource-types.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/model/index.js +2 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/splunk-client.d.ts +1 -1
- package/lib/model/splunk-client.d.ts.map +1 -1
- package/lib/model/splunk-client.js +1 -1
- package/lib/model/splunk-client.js.map +1 -1
- package/lib/queries/index.js +2 -2
- package/lib/queries/index.js.map +1 -1
- package/lib/queries/splunk-log-query/SplunkLogQuery.d.ts +2 -2
- package/lib/queries/splunk-log-query/SplunkLogQuery.d.ts.map +1 -1
- package/lib/queries/splunk-log-query/SplunkLogQuery.js +4 -6
- package/lib/queries/splunk-log-query/SplunkLogQuery.js.map +1 -1
- package/lib/queries/splunk-log-query/SplunkLogQueryEditor.d.ts +3 -3
- package/lib/queries/splunk-log-query/SplunkLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/splunk-log-query/SplunkLogQueryEditor.js +3 -3
- package/lib/queries/splunk-log-query/SplunkLogQueryEditor.js.map +1 -1
- package/lib/queries/splunk-log-query/get-splunk-log-data.d.ts +2 -2
- package/lib/queries/splunk-log-query/get-splunk-log-data.d.ts.map +1 -1
- package/lib/queries/splunk-log-query/get-splunk-log-data.js +2 -2
- package/lib/queries/splunk-log-query/get-splunk-log-data.js.map +1 -1
- package/lib/queries/splunk-log-query/index.js +4 -4
- package/lib/queries/splunk-log-query/index.js.map +1 -1
- package/lib/queries/splunk-log-query/log-query-plugin-interface.d.ts +2 -2
- package/lib/queries/splunk-log-query/log-query-plugin-interface.d.ts.map +1 -1
- package/lib/queries/splunk-log-query/log-query-plugin-interface.js.map +1 -1
- package/lib/queries/splunk-log-query/splunk-log-query-types.d.ts +2 -2
- package/lib/queries/splunk-log-query/splunk-log-query-types.d.ts.map +1 -1
- package/lib/queries/splunk-log-query/splunk-log-query-types.js.map +1 -1
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.d.ts +2 -2
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.d.ts.map +1 -1
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js +4 -6
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js.map +1 -1
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.d.ts +3 -3
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js +3 -3
- package/lib/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js.map +1 -1
- package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.d.ts +2 -2
- package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.d.ts.map +1 -1
- package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.js +2 -2
- package/lib/queries/splunk-time-series-query/get-splunk-time-series-data.js.map +1 -1
- package/lib/queries/splunk-time-series-query/index.js +4 -4
- package/lib/queries/splunk-time-series-query/index.js.map +1 -1
- package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.d.ts +2 -2
- package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.d.ts.map +1 -1
- package/lib/queries/splunk-time-series-query/splunk-time-series-query-types.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/mf-manifest.json +60 -44
- package/mf-stats.json +60 -44
- package/package.json +10 -9
- package/__mf/js/async/116.9f39e2dc.js +0 -7
- package/__mf/js/async/121.0ceb8113.js +0 -2
- package/__mf/js/async/181.4d01713c.js +0 -2
- package/__mf/js/async/332.fc51c4d5.js +0 -139
- package/__mf/js/async/386.da241588.js +0 -2
- package/__mf/js/async/470.e7f915b7.js +0 -2
- package/__mf/js/async/537.880623e7.js +0 -1
- package/__mf/js/async/558.db2f2486.js +0 -1
- package/__mf/js/async/756.8162c322.js +0 -24
- package/__mf/js/async/756.8162c322.js.LICENSE.txt +0 -44
- package/__mf/js/async/842.601cf14f.js +0 -1
- package/__mf/js/async/941.693e183d.js +0 -2
- package/__mf/js/async/963.0f837958.js +0 -1
- package/__mf/js/async/982.e5647ac8.js +0 -10
- package/__mf/js/async/__federation_expose_SplunkDatasource.b9438a9e.js +0 -2
- package/__mf/js/async/__federation_expose_SplunkLogQuery.8d011abe.js +0 -2
- package/__mf/js/async/__federation_expose_SplunkTimeSeriesQuery.264a58b9.js +0 -2
- package/__mf/js/async/lib-router.31611676.js +0 -2
- package/lib/cjs/bootstrap.js +0 -27
- package/lib/cjs/datasources/index.js +0 -30
- package/lib/cjs/datasources/splunk-datasource/SplunkDatasource.js +0 -69
- package/lib/cjs/datasources/splunk-datasource/SplunkDatasourceEditor.js +0 -71
- package/lib/cjs/datasources/splunk-datasource/index.js +0 -32
- package/lib/cjs/datasources/splunk-datasource/splunk-datasource-types.js +0 -16
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -39
- package/lib/cjs/model/index.js +0 -31
- package/lib/cjs/model/splunk-client-types.js +0 -16
- package/lib/cjs/model/splunk-client.js +0 -151
- package/lib/cjs/queries/constants.js +0 -25
- package/lib/cjs/queries/index.js +0 -31
- package/lib/cjs/queries/splunk-log-query/SplunkLogQuery.js +0 -43
- package/lib/cjs/queries/splunk-log-query/SplunkLogQueryEditor.js +0 -95
- package/lib/cjs/queries/splunk-log-query/get-splunk-log-data.js +0 -127
- package/lib/cjs/queries/splunk-log-query/index.js +0 -33
- package/lib/cjs/queries/splunk-log-query/log-query-plugin-interface.js +0 -16
- package/lib/cjs/queries/splunk-log-query/splunk-log-query-types.js +0 -16
- package/lib/cjs/queries/splunk-time-series-query/SplunkTimeSeriesQuery.js +0 -43
- package/lib/cjs/queries/splunk-time-series-query/SplunkTimeSeriesQueryEditor.js +0 -95
- package/lib/cjs/queries/splunk-time-series-query/get-splunk-time-series-data.js +0 -106
- package/lib/cjs/queries/splunk-time-series-query/index.js +0 -33
- package/lib/cjs/queries/splunk-time-series-query/splunk-time-series-query-types.js +0 -16
- package/lib/cjs/setup-tests.js +0 -19
- /package/__mf/css/async/{116.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.0ceb8113.js.LICENSE.txt → 121.cd990f2a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{181.4d01713c.js.LICENSE.txt → 181.45639ce7.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.e7f915b7.js.LICENSE.txt → 470.39364cc9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{386.da241588.js.LICENSE.txt → 562.faedd192.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.693e183d.js.LICENSE.txt → 941.049134e9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{982.e5647ac8.js.LICENSE.txt → 982.8181aade.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_SplunkDatasource.b9438a9e.js.LICENSE.txt → __federation_expose_SplunkDatasource.5b9ca25b.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_SplunkLogQuery.8d011abe.js.LICENSE.txt → __federation_expose_SplunkLogQuery.5e35f21f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_SplunkTimeSeriesQuery.264a58b9.js.LICENSE.txt → __federation_expose_SplunkTimeSeriesQuery.62f3d6f2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.31611676.js.LICENSE.txt → lib-router.02ac6b0e.js.LICENSE.txt} +0 -0
|
@@ -1,95 +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, "SplunkTimeSeriesQueryEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return SplunkTimeSeriesQueryEditor;
|
|
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 _immer = require("immer");
|
|
27
|
-
const DATASOURCE_KIND = 'SplunkDatasource';
|
|
28
|
-
const DEFAULT_DATASOURCE = {
|
|
29
|
-
kind: DATASOURCE_KIND
|
|
30
|
-
};
|
|
31
|
-
function SplunkTimeSeriesQueryEditor(props) {
|
|
32
|
-
const { onChange, value } = props;
|
|
33
|
-
const { datasource, query } = value;
|
|
34
|
-
const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;
|
|
35
|
-
const selectedDatasource = (0, _pluginsystem.useDatasourceSelectValueToSelector)(datasourceSelectValue, DATASOURCE_KIND);
|
|
36
|
-
const handleDatasourceChange = (newDatasourceSelection)=>{
|
|
37
|
-
if (!(0, _pluginsystem.isVariableDatasource)(newDatasourceSelection) && newDatasourceSelection.kind === DATASOURCE_KIND) {
|
|
38
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
39
|
-
draft.datasource = newDatasourceSelection;
|
|
40
|
-
}));
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
throw new Error('Got unexpected non SplunkQuery datasource selection');
|
|
44
|
-
};
|
|
45
|
-
const handleQueryChange = (newQuery)=>{
|
|
46
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
47
|
-
draft.query = newQuery;
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
51
|
-
spacing: 1.5,
|
|
52
|
-
paddingBottom: 1,
|
|
53
|
-
children: [
|
|
54
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
55
|
-
children: [
|
|
56
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
|
|
57
|
-
sx: {
|
|
58
|
-
display: 'block',
|
|
59
|
-
marginBottom: '4px',
|
|
60
|
-
fontWeight: 500
|
|
61
|
-
},
|
|
62
|
-
children: "Datasource"
|
|
63
|
-
}),
|
|
64
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.DatasourceSelect, {
|
|
65
|
-
datasourcePluginKind: DATASOURCE_KIND,
|
|
66
|
-
value: selectedDatasource,
|
|
67
|
-
onChange: handleDatasourceChange,
|
|
68
|
-
label: "Splunk Datasource",
|
|
69
|
-
notched: true
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
}),
|
|
73
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
74
|
-
children: [
|
|
75
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
|
|
76
|
-
sx: {
|
|
77
|
-
display: 'block',
|
|
78
|
-
marginBottom: '4px',
|
|
79
|
-
fontWeight: 500
|
|
80
|
-
},
|
|
81
|
-
children: "SPL Query"
|
|
82
|
-
}),
|
|
83
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
84
|
-
fullWidth: true,
|
|
85
|
-
multiline: true,
|
|
86
|
-
rows: 4,
|
|
87
|
-
value: query,
|
|
88
|
-
onChange: (e)=>handleQueryChange(e.target.value),
|
|
89
|
-
placeholder: "search index=main | timechart count"
|
|
90
|
-
})
|
|
91
|
-
]
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
});
|
|
95
|
-
}
|
|
@@ -1,106 +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, "getSplunkTimeSeriesData", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return getSplunkTimeSeriesData;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
24
|
-
const _constants = require("../constants");
|
|
25
|
-
function convertResultsToTimeSeries(results) {
|
|
26
|
-
const resultsArray = Array.isArray(results) ? results : [
|
|
27
|
-
results
|
|
28
|
-
];
|
|
29
|
-
if (resultsArray.length === 0) return [];
|
|
30
|
-
const firstResult = resultsArray[0];
|
|
31
|
-
if (!firstResult) return [];
|
|
32
|
-
const metricKeys = Object.keys(firstResult).filter((key)=>key !== '_time');
|
|
33
|
-
return metricKeys.map((metricKey)=>({
|
|
34
|
-
name: metricKey,
|
|
35
|
-
values: resultsArray.map((result)=>{
|
|
36
|
-
const timestamp = new Date(result._time).getTime() / 1000;
|
|
37
|
-
const value = Number(result[metricKey]) || 0;
|
|
38
|
-
return [
|
|
39
|
-
timestamp,
|
|
40
|
-
value
|
|
41
|
-
];
|
|
42
|
-
}),
|
|
43
|
-
labels: {
|
|
44
|
-
metric: metricKey
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
const getSplunkTimeSeriesData = async (spec, context)=>{
|
|
49
|
-
if (!spec.query) {
|
|
50
|
-
return {
|
|
51
|
-
series: [],
|
|
52
|
-
timeRange: {
|
|
53
|
-
start: context.timeRange.start,
|
|
54
|
-
end: context.timeRange.end
|
|
55
|
-
},
|
|
56
|
-
stepMs: 60000
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const query = (0, _pluginsystem.replaceVariables)(spec.query, context.variableState);
|
|
60
|
-
const client = await context.datasourceStore.getDatasourceClient(spec.datasource ?? _constants.DEFAULT_DATASOURCE);
|
|
61
|
-
const datasourceSpec = await context.datasourceStore.getDatasource(spec.datasource ?? _constants.DEFAULT_DATASOURCE);
|
|
62
|
-
const allowedEndpoints = datasourceSpec.plugin.spec?.proxy?.spec?.allowedEndpoints || [];
|
|
63
|
-
const hasExportEndpoint = allowedEndpoints.some((ep)=>ep.endpointPattern?.includes('/export'));
|
|
64
|
-
const { start, end } = context.timeRange;
|
|
65
|
-
const earliest_time = Math.floor(start.getTime() / 1000).toString();
|
|
66
|
-
const latest_time = Math.floor(end.getTime() / 1000).toString();
|
|
67
|
-
let resultsResponse;
|
|
68
|
-
if (hasExportEndpoint) {
|
|
69
|
-
resultsResponse = await client.exportSearch({
|
|
70
|
-
search: query,
|
|
71
|
-
earliest_time: spec.earliest || earliest_time,
|
|
72
|
-
latest_time: spec.latest || latest_time
|
|
73
|
-
});
|
|
74
|
-
} else {
|
|
75
|
-
const jobResponse = await client.createJob({
|
|
76
|
-
search: query,
|
|
77
|
-
earliest_time: spec.earliest || earliest_time,
|
|
78
|
-
latest_time: spec.latest || latest_time
|
|
79
|
-
});
|
|
80
|
-
const jobId = jobResponse.sid;
|
|
81
|
-
let jobStatus;
|
|
82
|
-
do {
|
|
83
|
-
await new Promise((resolve)=>setTimeout(resolve, 500)); // Wait 500ms between polls
|
|
84
|
-
jobStatus = await client.getJobStatus(jobId);
|
|
85
|
-
if (!jobStatus || !jobStatus.entry?.[0]?.content) {
|
|
86
|
-
console.warn('Failed to get job status or job status response is malformed', {
|
|
87
|
-
jobStatus
|
|
88
|
-
});
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
}while (!jobStatus.entry?.[0]?.content?.isDone)
|
|
92
|
-
resultsResponse = await client.getJobResults(jobId);
|
|
93
|
-
}
|
|
94
|
-
const convertedSeries = convertResultsToTimeSeries(resultsResponse.results);
|
|
95
|
-
return {
|
|
96
|
-
series: convertedSeries,
|
|
97
|
-
timeRange: {
|
|
98
|
-
start,
|
|
99
|
-
end
|
|
100
|
-
},
|
|
101
|
-
stepMs: context.suggestedStepMs || 60000,
|
|
102
|
-
metadata: {
|
|
103
|
-
executedQueryString: query
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
};
|
|
@@ -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("./get-splunk-time-series-data"), exports);
|
|
18
|
-
_export_star(require("./SplunkTimeSeriesQuery"), exports);
|
|
19
|
-
_export_star(require("./SplunkTimeSeriesQueryEditor"), exports);
|
|
20
|
-
_export_star(require("./splunk-time-series-query-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,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
|
-
});
|
package/lib/cjs/setup-tests.js
DELETED
|
@@ -1,19 +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
|
-
require("@testing-library/jest-dom");
|
|
18
|
-
// Always mock e-charts during tests since we don't have a proper canvas in jsdom
|
|
19
|
-
jest.mock('echarts/core');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/__mf/js/async/{lib-router.31611676.js.LICENSE.txt → lib-router.02ac6b0e.js.LICENSE.txt}
RENAMED
|
File without changes
|