@perses-dev/table-plugin 0.13.0 → 0.14.0-beta.1
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/{Table.73b9cec1.js → Table.646f97de.js} +3 -3
- package/__mf/js/async/11.976870d0.js +7 -0
- package/__mf/js/async/11.976870d0.js.LICENSE.txt +102 -0
- package/__mf/js/async/121.b3a4c6cf.js +2 -0
- package/__mf/js/async/153.fa68a9e4.js +1 -0
- package/__mf/js/async/186.ab1e0cb3.js +2 -0
- package/__mf/js/async/192.942516a2.js +1 -0
- package/__mf/js/async/2.6b27d33f.js +1 -0
- package/__mf/js/async/235.c5bac291.js +1 -0
- package/__mf/js/async/274.f7dabfa6.js +2 -0
- package/__mf/js/async/321.96f362a6.js +1 -0
- package/__mf/js/async/35.ba7c1b06.js +1 -0
- package/__mf/js/async/356.d7fe5d24.js +1 -0
- package/__mf/js/async/392.e853a818.js +2 -0
- package/__mf/js/async/413.d44db4b1.js +1 -0
- package/__mf/js/async/465.8425c17a.js +1 -0
- package/__mf/js/async/470.21434f20.js +2 -0
- package/__mf/js/async/522.d6a7c203.js +22 -0
- package/__mf/js/async/534.aff242e9.js +1 -0
- package/__mf/js/async/54.e77ec040.js +1 -0
- package/__mf/js/async/587.0ff26337.js +1 -0
- package/__mf/js/async/616.4e891cf9.js +1 -0
- package/__mf/js/async/663.b3778d4c.js +1 -0
- package/__mf/js/async/700.ccacc909.js +3 -0
- package/__mf/js/async/{868.507e984c.js → 741.7feaa0ba.js} +6 -6
- package/__mf/js/async/862.4c658639.js +2 -0
- package/__mf/js/async/865.b9eb3de4.js +1 -0
- package/__mf/js/async/923.87e55609.js +1 -0
- package/__mf/js/async/941.08c16cb2.js +2 -0
- package/__mf/js/async/968.b7fe9818.js +1 -0
- package/__mf/js/async/985.6129a36c.js +37 -0
- package/__mf/js/async/__federation_expose_Table.f8d0feb7.js +1 -0
- package/__mf/js/async/lib-router.020a2a16.js +2 -0
- package/__mf/js/{main.7b15c841.js → main.276cd542.js} +2 -2
- package/lib/Table.d.ts +3 -3
- package/lib/Table.d.ts.map +1 -1
- package/lib/Table.js +4 -4
- package/lib/Table.js.map +1 -1
- package/lib/TableExportAction.d.ts +3 -3
- package/lib/TableExportAction.d.ts.map +1 -1
- package/lib/TableExportAction.js +6 -6
- package/lib/TableExportAction.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/components/CellsEditor/CellsEditor.d.ts +2 -2
- package/lib/components/CellsEditor/CellsEditor.d.ts.map +1 -1
- package/lib/components/CellsEditor/CellsEditor.js +1 -1
- package/lib/components/CellsEditor/CellsEditor.js.map +1 -1
- package/lib/components/CellsEditor/index.js +1 -1
- package/lib/components/CellsEditor/index.js.map +1 -1
- package/lib/components/ColumnsEditor/ColumnEditor.d.ts +5 -4
- package/lib/components/ColumnsEditor/ColumnEditor.d.ts.map +1 -1
- package/lib/components/ColumnsEditor/ColumnEditor.js +29 -15
- package/lib/components/ColumnsEditor/ColumnEditor.js.map +1 -1
- package/lib/components/ColumnsEditor/ColumnEditorContainer.d.ts +3 -3
- package/lib/components/ColumnsEditor/ColumnEditorContainer.d.ts.map +1 -1
- package/lib/components/ColumnsEditor/ColumnEditorContainer.js +11 -10
- package/lib/components/ColumnsEditor/ColumnEditorContainer.js.map +1 -1
- package/lib/components/ColumnsEditor/ColumnsEditor.d.ts +4 -3
- package/lib/components/ColumnsEditor/ColumnsEditor.d.ts.map +1 -1
- package/lib/components/ColumnsEditor/ColumnsEditor.js +7 -6
- package/lib/components/ColumnsEditor/ColumnsEditor.js.map +1 -1
- package/lib/components/ColumnsEditor/DataLinkEditorDialog.d.ts +2 -2
- package/lib/components/ColumnsEditor/DataLinkEditorDialog.d.ts.map +1 -1
- package/lib/components/ColumnsEditor/DataLinkEditorDialog.js +4 -4
- package/lib/components/ColumnsEditor/DataLinkEditorDialog.js.map +1 -1
- package/lib/components/ColumnsEditor/EmbeddedPanelOptionsEditor.d.ts +2 -2
- package/lib/components/ColumnsEditor/EmbeddedPanelOptionsEditor.d.ts.map +1 -1
- package/lib/components/ColumnsEditor/EmbeddedPanelOptionsEditor.js +4 -4
- package/lib/components/ColumnsEditor/EmbeddedPanelOptionsEditor.js.map +1 -1
- package/lib/components/ColumnsEditor/index.js +3 -3
- package/lib/components/ColumnsEditor/index.js.map +1 -1
- package/lib/components/ConditionalPanel.d.ts +3 -3
- package/lib/components/ConditionalPanel.d.ts.map +1 -1
- package/lib/components/ConditionalPanel.js +7 -7
- package/lib/components/ConditionalPanel.js.map +1 -1
- package/lib/components/EmbeddedPanel.d.ts +3 -3
- package/lib/components/EmbeddedPanel.d.ts.map +1 -1
- package/lib/components/EmbeddedPanel.js +4 -4
- package/lib/components/EmbeddedPanel.js.map +1 -1
- package/lib/components/TableCellsEditor.d.ts +3 -3
- package/lib/components/TableCellsEditor.d.ts.map +1 -1
- package/lib/components/TableCellsEditor.js +1 -1
- package/lib/components/TableCellsEditor.js.map +1 -1
- package/lib/components/TableColumnsEditor.d.ts +3 -3
- package/lib/components/TableColumnsEditor.d.ts.map +1 -1
- package/lib/components/TableColumnsEditor.js +3 -2
- package/lib/components/TableColumnsEditor.js.map +1 -1
- package/lib/components/TableItemSelectionActionsEditor.d.ts +2 -2
- package/lib/components/TableItemSelectionActionsEditor.d.ts.map +1 -1
- package/lib/components/TableItemSelectionActionsEditor.js +2 -2
- package/lib/components/TableItemSelectionActionsEditor.js.map +1 -1
- package/lib/components/TablePanel.d.ts +4 -4
- package/lib/components/TablePanel.d.ts.map +1 -1
- package/lib/components/TablePanel.js +196 -99
- package/lib/components/TablePanel.js.map +1 -1
- package/lib/components/TableSettingsEditor.d.ts +2 -2
- package/lib/components/TableSettingsEditor.d.ts.map +1 -1
- package/lib/components/TableSettingsEditor.js +16 -2
- package/lib/components/TableSettingsEditor.js.map +1 -1
- package/lib/components/TableTransformsEditor.d.ts +2 -2
- package/lib/components/TableTransformsEditor.d.ts.map +1 -1
- package/lib/components/TableTransformsEditor.js +2 -2
- package/lib/components/TableTransformsEditor.js.map +1 -1
- package/lib/components/index.js +9 -9
- package/lib/components/index.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/models/index.js +2 -2
- package/lib/models/index.js.map +1 -1
- package/lib/models/model.d.ts +1 -1
- package/lib/models/model.d.ts.map +1 -1
- package/lib/models/model.js.map +1 -1
- package/lib/models/table-model.d.ts +4 -3
- package/lib/models/table-model.d.ts.map +1 -1
- package/lib/models/table-model.js +2 -2
- package/lib/models/table-model.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 +8 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/table-data-utils.d.ts +3 -3
- package/lib/table-data-utils.d.ts.map +1 -1
- package/lib/table-data-utils.js.map +1 -1
- package/lib/test/mock-query-results.d.ts +1 -1
- package/lib/test/mock-query-results.d.ts.map +1 -1
- package/lib/test/mock-query-results.js.map +1 -1
- package/mf-manifest.json +42 -84
- package/mf-stats.json +46 -93
- package/package.json +11 -11
- package/__mf/js/async/1432.4e515509.js +0 -1
- package/__mf/js/async/1589.124ce93d.js +0 -2
- package/__mf/js/async/1589.124ce93d.js.LICENSE.txt +0 -37
- package/__mf/js/async/1616.4828085d.js +0 -1
- package/__mf/js/async/2043.1f09864b.js +0 -2
- package/__mf/js/async/2043.1f09864b.js.LICENSE.txt +0 -24
- package/__mf/js/async/2082.231e8397.js +0 -1
- package/__mf/js/async/2842.a52597e6.js +0 -1
- package/__mf/js/async/392.b6035b41.js +0 -2
- package/__mf/js/async/3981.52e94742.js +0 -3
- package/__mf/js/async/4014.cf88a118.js +0 -7
- package/__mf/js/async/4014.cf88a118.js.LICENSE.txt +0 -39
- package/__mf/js/async/4121.e7df36d6.js +0 -2
- package/__mf/js/async/5002.3eb39a8c.js +0 -1
- package/__mf/js/async/5021.c663603d.js +0 -1
- package/__mf/js/async/5071.839a8f1a.js +0 -1
- package/__mf/js/async/5481.6496fac9.js +0 -2
- package/__mf/js/async/5587.a8a428db.js +0 -1
- package/__mf/js/async/6274.8edae86d.js +0 -2
- package/__mf/js/async/629.8cff215d.js +0 -1
- package/__mf/js/async/6811.9d4b123a.js +0 -38
- package/__mf/js/async/7177.e0e5ba2f.js +0 -1
- package/__mf/js/async/7192.692181c8.js +0 -1
- package/__mf/js/async/7413.c9310b8a.js +0 -1
- package/__mf/js/async/7968.3a9a982e.js +0 -1
- package/__mf/js/async/7978.116e4d81.js +0 -1
- package/__mf/js/async/7984.a8edc213.js +0 -22
- package/__mf/js/async/8356.152d5686.js +0 -1
- package/__mf/js/async/8470.b9762117.js +0 -2
- package/__mf/js/async/873.264fedc9.js +0 -1
- package/__mf/js/async/9051.c4deebd7.js +0 -1
- package/__mf/js/async/9235.c67cdb1d.js +0 -1
- package/__mf/js/async/941.cc458a98.js +0 -2
- package/__mf/js/async/9588.d23e2ed3.js +0 -1
- package/__mf/js/async/9701.9c4cea02.js +0 -1
- package/__mf/js/async/__federation_expose_Table.5d0cfb46.js +0 -1
- package/__mf/js/async/lib-router.3493bbf9.js +0 -2
- package/lib/cjs/Table.js +0 -62
- package/lib/cjs/TableExportAction.js +0 -180
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/CellsEditor/CellsEditor.js +0 -30
- package/lib/cjs/components/CellsEditor/index.js +0 -30
- package/lib/cjs/components/ColumnsEditor/ColumnEditor.js +0 -289
- package/lib/cjs/components/ColumnsEditor/ColumnEditorContainer.js +0 -152
- package/lib/cjs/components/ColumnsEditor/ColumnsEditor.js +0 -108
- package/lib/cjs/components/ColumnsEditor/DataLinkEditorDialog.js +0 -139
- package/lib/cjs/components/ColumnsEditor/EmbeddedPanelOptionsEditor.js +0 -124
- package/lib/cjs/components/ColumnsEditor/index.js +0 -32
- package/lib/cjs/components/ConditionalPanel.js +0 -367
- package/lib/cjs/components/EmbeddedPanel.js +0 -52
- package/lib/cjs/components/TableCellsEditor.js +0 -36
- package/lib/cjs/components/TableColumnsEditor.js +0 -36
- package/lib/cjs/components/TableItemSelectionActionsEditor.js +0 -44
- package/lib/cjs/components/TablePanel.js +0 -845
- package/lib/cjs/components/TableSettingsEditor.js +0 -144
- package/lib/cjs/components/TableTransformsEditor.js +0 -36
- package/lib/cjs/components/index.js +0 -38
- 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/models/index.js +0 -31
- package/lib/cjs/models/model.js +0 -16
- package/lib/cjs/models/table-model.js +0 -278
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/table-data-utils.js +0 -84
- package/lib/cjs/test/mock-query-results.js +0 -524
- /package/__mf/css/async/{4014.85c2cbf6.css → 11.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{4121.e7df36d6.js.LICENSE.txt → 121.b3a4c6cf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.8edae86d.js.LICENSE.txt → 274.f7dabfa6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.b6035b41.js.LICENSE.txt → 392.e853a818.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.b9762117.js.LICENSE.txt → 470.21434f20.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7984.a8edc213.js.LICENSE.txt → 522.d6a7c203.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{868.507e984c.js.LICENSE.txt → 741.7feaa0ba.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5481.6496fac9.js.LICENSE.txt → 862.4c658639.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.cc458a98.js.LICENSE.txt → 941.08c16cb2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.3493bbf9.js.LICENSE.txt → lib-router.020a2a16.js.LICENSE.txt} +0 -0
|
@@ -1,524 +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 MOCK_MULTI_QUERY_DATA_EMPTY () {
|
|
25
|
-
return MOCK_MULTI_QUERY_DATA_EMPTY;
|
|
26
|
-
},
|
|
27
|
-
get MOCK_MULTI_QUERY_DATA_Q1 () {
|
|
28
|
-
return MOCK_MULTI_QUERY_DATA_Q1;
|
|
29
|
-
},
|
|
30
|
-
get MOCK_MULTI_QUERY_DATA_Q2 () {
|
|
31
|
-
return MOCK_MULTI_QUERY_DATA_Q2;
|
|
32
|
-
},
|
|
33
|
-
get MOCK_MULTI_QUERY_DATA_WITH_ZERO () {
|
|
34
|
-
return MOCK_MULTI_QUERY_DATA_WITH_ZERO;
|
|
35
|
-
},
|
|
36
|
-
get MOCK_NULL_QUERY_RESULT () {
|
|
37
|
-
return MOCK_NULL_QUERY_RESULT;
|
|
38
|
-
},
|
|
39
|
-
get MOCK_TIME_SERIES_DATA_MULTIVALUE () {
|
|
40
|
-
return MOCK_TIME_SERIES_DATA_MULTIVALUE;
|
|
41
|
-
},
|
|
42
|
-
get MOCK_TIME_SERIES_DATA_SINGLEVALUE () {
|
|
43
|
-
return MOCK_TIME_SERIES_DATA_SINGLEVALUE;
|
|
44
|
-
},
|
|
45
|
-
get MOCK_TIME_SERIES_QUERY_DEFINITION () {
|
|
46
|
-
return MOCK_TIME_SERIES_QUERY_DEFINITION;
|
|
47
|
-
},
|
|
48
|
-
get MOCK_TIME_SERIES_QUERY_RESULT_MULTIVALUE () {
|
|
49
|
-
return MOCK_TIME_SERIES_QUERY_RESULT_MULTIVALUE;
|
|
50
|
-
},
|
|
51
|
-
get MOCK_TIME_SERIES_QUERY_RESULT_SINGLEVALUE () {
|
|
52
|
-
return MOCK_TIME_SERIES_QUERY_RESULT_SINGLEVALUE;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const MOCK_TIME_SERIES_QUERY_RESULT_MULTIVALUE = [
|
|
56
|
-
{
|
|
57
|
-
status: 'success',
|
|
58
|
-
fetchStatus: 'idle',
|
|
59
|
-
isLoading: false,
|
|
60
|
-
isSuccess: true,
|
|
61
|
-
isError: false,
|
|
62
|
-
data: {
|
|
63
|
-
timeRange: {
|
|
64
|
-
start: new Date(1666625490000),
|
|
65
|
-
end: new Date(1666625535000)
|
|
66
|
-
},
|
|
67
|
-
stepMs: 24379,
|
|
68
|
-
series: [
|
|
69
|
-
{
|
|
70
|
-
name: 'device="/dev/vda1", env="demo", fstype="ext4", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/"',
|
|
71
|
-
values: [
|
|
72
|
-
[
|
|
73
|
-
1666479357903,
|
|
74
|
-
0.27700745551584494
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
1666479382282,
|
|
78
|
-
0.27701284657366565
|
|
79
|
-
]
|
|
80
|
-
],
|
|
81
|
-
labels: {
|
|
82
|
-
device: '/dev/vda1',
|
|
83
|
-
env: 'demo',
|
|
84
|
-
fstype: 'ext4',
|
|
85
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
86
|
-
job: 'node',
|
|
87
|
-
mountpoint: '/'
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'device="/dev/vda15", env="demo", fstype="vfat", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/boot/efi"',
|
|
92
|
-
values: [
|
|
93
|
-
[
|
|
94
|
-
1666479357903,
|
|
95
|
-
0.08486496097624885
|
|
96
|
-
],
|
|
97
|
-
[
|
|
98
|
-
1666479382282,
|
|
99
|
-
0.08486496097624885
|
|
100
|
-
]
|
|
101
|
-
],
|
|
102
|
-
labels: {
|
|
103
|
-
device: '/dev/vda15',
|
|
104
|
-
env: 'demo',
|
|
105
|
-
fstype: 'vfat',
|
|
106
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
107
|
-
job: 'node',
|
|
108
|
-
mountpoint: '/boot/efi'
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
dataUpdatedAt: 1666500979895,
|
|
114
|
-
error: null,
|
|
115
|
-
errorUpdatedAt: 0,
|
|
116
|
-
failureCount: 0,
|
|
117
|
-
errorUpdateCount: 0,
|
|
118
|
-
isFetched: true,
|
|
119
|
-
isFetchedAfterMount: true,
|
|
120
|
-
isFetching: false,
|
|
121
|
-
isRefetching: false,
|
|
122
|
-
isLoadingError: false,
|
|
123
|
-
isPaused: false,
|
|
124
|
-
isPlaceholderData: false,
|
|
125
|
-
isPreviousData: false,
|
|
126
|
-
isRefetchError: false,
|
|
127
|
-
isStale: true
|
|
128
|
-
}
|
|
129
|
-
];
|
|
130
|
-
const MOCK_TIME_SERIES_QUERY_RESULT_SINGLEVALUE = [
|
|
131
|
-
{
|
|
132
|
-
status: 'success',
|
|
133
|
-
fetchStatus: 'idle',
|
|
134
|
-
isLoading: false,
|
|
135
|
-
isSuccess: true,
|
|
136
|
-
isError: false,
|
|
137
|
-
data: {
|
|
138
|
-
timeRange: {
|
|
139
|
-
start: new Date(1666625535000),
|
|
140
|
-
end: new Date(1666625535000)
|
|
141
|
-
},
|
|
142
|
-
stepMs: 24379,
|
|
143
|
-
series: [
|
|
144
|
-
{
|
|
145
|
-
name: 'device="/dev/vda1", env="demo", fstype="ext4", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/"',
|
|
146
|
-
values: [
|
|
147
|
-
[
|
|
148
|
-
1666479357903,
|
|
149
|
-
0.27700745551584494
|
|
150
|
-
]
|
|
151
|
-
],
|
|
152
|
-
labels: {
|
|
153
|
-
device: '/dev/vda1',
|
|
154
|
-
env: 'demo',
|
|
155
|
-
fstype: 'ext4',
|
|
156
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
157
|
-
job: 'node',
|
|
158
|
-
mountpoint: '/'
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'device="/dev/vda15", env="demo", fstype="vfat", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/boot/efi"',
|
|
163
|
-
values: [
|
|
164
|
-
[
|
|
165
|
-
1666479357903,
|
|
166
|
-
0.08486496097624885
|
|
167
|
-
]
|
|
168
|
-
],
|
|
169
|
-
labels: {
|
|
170
|
-
device: '/dev/vda15',
|
|
171
|
-
env: 'demo',
|
|
172
|
-
fstype: 'vfat',
|
|
173
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
174
|
-
job: 'node',
|
|
175
|
-
mountpoint: '/boot/efi'
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
dataUpdatedAt: 1666500979895,
|
|
181
|
-
error: null,
|
|
182
|
-
errorUpdatedAt: 0,
|
|
183
|
-
failureCount: 0,
|
|
184
|
-
errorUpdateCount: 0,
|
|
185
|
-
isFetched: true,
|
|
186
|
-
isFetchedAfterMount: true,
|
|
187
|
-
isFetching: false,
|
|
188
|
-
isRefetching: false,
|
|
189
|
-
isLoadingError: false,
|
|
190
|
-
isPaused: false,
|
|
191
|
-
isPlaceholderData: false,
|
|
192
|
-
isPreviousData: false,
|
|
193
|
-
isRefetchError: false,
|
|
194
|
-
isStale: true
|
|
195
|
-
}
|
|
196
|
-
];
|
|
197
|
-
const MOCK_TIME_SERIES_DATA_MULTIVALUE = {
|
|
198
|
-
timeRange: {
|
|
199
|
-
start: new Date(1666625490000),
|
|
200
|
-
end: new Date(1666625535000)
|
|
201
|
-
},
|
|
202
|
-
stepMs: 24379,
|
|
203
|
-
series: [
|
|
204
|
-
{
|
|
205
|
-
name: 'device="/dev/vda1", env="demo", fstype="ext4", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/"',
|
|
206
|
-
values: [
|
|
207
|
-
[
|
|
208
|
-
1666479357903,
|
|
209
|
-
0.27700745551584494
|
|
210
|
-
],
|
|
211
|
-
[
|
|
212
|
-
1666479382282,
|
|
213
|
-
0.27701284657366565
|
|
214
|
-
]
|
|
215
|
-
],
|
|
216
|
-
labels: {
|
|
217
|
-
device: '/dev/vda1',
|
|
218
|
-
env: 'demo',
|
|
219
|
-
fstype: 'ext4',
|
|
220
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
221
|
-
job: 'node',
|
|
222
|
-
mountpoint: '/'
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'device="/dev/vda15", env="demo", fstype="vfat", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/boot/efi"',
|
|
227
|
-
values: [
|
|
228
|
-
[
|
|
229
|
-
1666479357903,
|
|
230
|
-
0.08486496097624885
|
|
231
|
-
],
|
|
232
|
-
[
|
|
233
|
-
1666479382282,
|
|
234
|
-
0.08486496097624885
|
|
235
|
-
]
|
|
236
|
-
],
|
|
237
|
-
labels: {
|
|
238
|
-
device: '/dev/vda15',
|
|
239
|
-
env: 'demo',
|
|
240
|
-
fstype: 'vfat',
|
|
241
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
242
|
-
job: 'node',
|
|
243
|
-
mountpoint: '/boot/efi'
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
};
|
|
248
|
-
const MOCK_TIME_SERIES_DATA_SINGLEVALUE = {
|
|
249
|
-
timeRange: {
|
|
250
|
-
start: new Date(1666625535000),
|
|
251
|
-
end: new Date(1666625535000)
|
|
252
|
-
},
|
|
253
|
-
stepMs: 24379,
|
|
254
|
-
series: [
|
|
255
|
-
{
|
|
256
|
-
name: 'device="/dev/vda1", env="demo", fstype="ext4", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/"',
|
|
257
|
-
values: [
|
|
258
|
-
[
|
|
259
|
-
1666479357903,
|
|
260
|
-
0.27700745551584494
|
|
261
|
-
]
|
|
262
|
-
],
|
|
263
|
-
labels: {
|
|
264
|
-
device: '/dev/vda1',
|
|
265
|
-
env: 'demo',
|
|
266
|
-
fstype: 'ext4',
|
|
267
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
268
|
-
job: 'node',
|
|
269
|
-
mountpoint: '/'
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
name: 'device="/dev/vda15", env="demo", fstype="vfat", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/boot/efi"',
|
|
274
|
-
values: [
|
|
275
|
-
[
|
|
276
|
-
1666479357903,
|
|
277
|
-
0.08486496097624885
|
|
278
|
-
]
|
|
279
|
-
],
|
|
280
|
-
labels: {
|
|
281
|
-
device: '/dev/vda15',
|
|
282
|
-
env: 'demo',
|
|
283
|
-
fstype: 'vfat',
|
|
284
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
285
|
-
job: 'node',
|
|
286
|
-
mountpoint: '/boot/efi'
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
]
|
|
290
|
-
};
|
|
291
|
-
const MOCK_NULL_QUERY_RESULT = [
|
|
292
|
-
{
|
|
293
|
-
status: 'success',
|
|
294
|
-
fetchStatus: 'idle',
|
|
295
|
-
isLoading: false,
|
|
296
|
-
isSuccess: true,
|
|
297
|
-
isError: false,
|
|
298
|
-
data: {
|
|
299
|
-
timeRange: {
|
|
300
|
-
start: new Date(1677376110000),
|
|
301
|
-
end: new Date(1677376410000)
|
|
302
|
-
},
|
|
303
|
-
stepMs: 15000,
|
|
304
|
-
series: [
|
|
305
|
-
{
|
|
306
|
-
name: 'node_memory_Buffers_bytes{env="demo",instance="demo.do.prometheus.io:9100",job="node"}',
|
|
307
|
-
values: [
|
|
308
|
-
[
|
|
309
|
-
1677376110000,
|
|
310
|
-
40000000
|
|
311
|
-
],
|
|
312
|
-
[
|
|
313
|
-
1677376125000,
|
|
314
|
-
40000000
|
|
315
|
-
],
|
|
316
|
-
[
|
|
317
|
-
1677376140000,
|
|
318
|
-
null
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
1677376155000,
|
|
322
|
-
null
|
|
323
|
-
],
|
|
324
|
-
[
|
|
325
|
-
1677376170000,
|
|
326
|
-
null
|
|
327
|
-
],
|
|
328
|
-
[
|
|
329
|
-
1677376185000,
|
|
330
|
-
null
|
|
331
|
-
],
|
|
332
|
-
[
|
|
333
|
-
1677376200000,
|
|
334
|
-
null
|
|
335
|
-
],
|
|
336
|
-
[
|
|
337
|
-
1677376215000,
|
|
338
|
-
40013824
|
|
339
|
-
],
|
|
340
|
-
[
|
|
341
|
-
1677376230000,
|
|
342
|
-
40038400
|
|
343
|
-
],
|
|
344
|
-
[
|
|
345
|
-
1677376245000,
|
|
346
|
-
40054784
|
|
347
|
-
],
|
|
348
|
-
[
|
|
349
|
-
1677376260000,
|
|
350
|
-
40071168
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
1677376275000,
|
|
354
|
-
40075264
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
1677376290000,
|
|
358
|
-
40091648
|
|
359
|
-
],
|
|
360
|
-
[
|
|
361
|
-
1677376305000,
|
|
362
|
-
40099840
|
|
363
|
-
],
|
|
364
|
-
[
|
|
365
|
-
1677376320000,
|
|
366
|
-
40120320
|
|
367
|
-
],
|
|
368
|
-
[
|
|
369
|
-
1677376335000,
|
|
370
|
-
40128512
|
|
371
|
-
],
|
|
372
|
-
[
|
|
373
|
-
1677376350000,
|
|
374
|
-
40153088
|
|
375
|
-
],
|
|
376
|
-
[
|
|
377
|
-
1677376365000,
|
|
378
|
-
40165376
|
|
379
|
-
],
|
|
380
|
-
[
|
|
381
|
-
1677376380000,
|
|
382
|
-
40177664
|
|
383
|
-
],
|
|
384
|
-
[
|
|
385
|
-
1677376395000,
|
|
386
|
-
40194048
|
|
387
|
-
],
|
|
388
|
-
[
|
|
389
|
-
1677376410000,
|
|
390
|
-
40198144
|
|
391
|
-
]
|
|
392
|
-
],
|
|
393
|
-
formattedName: 'node_memory_Buffers_bytes{env="demo",instance="demo.do.prometheus.io:9100",job="node"}',
|
|
394
|
-
labels: {
|
|
395
|
-
env: 'demo',
|
|
396
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
397
|
-
job: 'node'
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
},
|
|
402
|
-
dataUpdatedAt: 1677376410000,
|
|
403
|
-
error: null,
|
|
404
|
-
errorUpdatedAt: 0,
|
|
405
|
-
failureCount: 0,
|
|
406
|
-
errorUpdateCount: 0,
|
|
407
|
-
isFetched: true,
|
|
408
|
-
isFetchedAfterMount: true,
|
|
409
|
-
isFetching: false,
|
|
410
|
-
isRefetching: false,
|
|
411
|
-
isLoadingError: false,
|
|
412
|
-
isPaused: false,
|
|
413
|
-
isPlaceholderData: false,
|
|
414
|
-
isPreviousData: false,
|
|
415
|
-
isRefetchError: false,
|
|
416
|
-
isStale: true
|
|
417
|
-
}
|
|
418
|
-
];
|
|
419
|
-
const MOCK_MULTI_QUERY_DATA_Q1 = {
|
|
420
|
-
timeRange: {
|
|
421
|
-
start: new Date(1666625535000),
|
|
422
|
-
end: new Date(1666625535000)
|
|
423
|
-
},
|
|
424
|
-
stepMs: 24379,
|
|
425
|
-
series: [
|
|
426
|
-
{
|
|
427
|
-
name: 'namespace="ns-a"',
|
|
428
|
-
values: [
|
|
429
|
-
[
|
|
430
|
-
1666479357903,
|
|
431
|
-
100
|
|
432
|
-
]
|
|
433
|
-
],
|
|
434
|
-
labels: {
|
|
435
|
-
namespace: 'ns-a'
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
name: 'namespace="ns-b"',
|
|
440
|
-
values: [
|
|
441
|
-
[
|
|
442
|
-
1666479357903,
|
|
443
|
-
200
|
|
444
|
-
]
|
|
445
|
-
],
|
|
446
|
-
labels: {
|
|
447
|
-
namespace: 'ns-b'
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
]
|
|
451
|
-
};
|
|
452
|
-
const MOCK_MULTI_QUERY_DATA_Q2 = {
|
|
453
|
-
timeRange: {
|
|
454
|
-
start: new Date(1666625535000),
|
|
455
|
-
end: new Date(1666625535000)
|
|
456
|
-
},
|
|
457
|
-
stepMs: 24379,
|
|
458
|
-
series: [
|
|
459
|
-
{
|
|
460
|
-
name: 'namespace="ns-a"',
|
|
461
|
-
values: [
|
|
462
|
-
[
|
|
463
|
-
1666479357903,
|
|
464
|
-
50
|
|
465
|
-
]
|
|
466
|
-
],
|
|
467
|
-
labels: {
|
|
468
|
-
namespace: 'ns-a'
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
]
|
|
472
|
-
};
|
|
473
|
-
const MOCK_MULTI_QUERY_DATA_WITH_ZERO = {
|
|
474
|
-
timeRange: {
|
|
475
|
-
start: new Date(1666625535000),
|
|
476
|
-
end: new Date(1666625535000)
|
|
477
|
-
},
|
|
478
|
-
stepMs: 24379,
|
|
479
|
-
series: [
|
|
480
|
-
{
|
|
481
|
-
name: 'namespace="ns-a"',
|
|
482
|
-
values: [
|
|
483
|
-
[
|
|
484
|
-
1666479357903,
|
|
485
|
-
50
|
|
486
|
-
]
|
|
487
|
-
],
|
|
488
|
-
labels: {
|
|
489
|
-
namespace: 'ns-a'
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
name: 'namespace="ns-b"',
|
|
494
|
-
values: [
|
|
495
|
-
[
|
|
496
|
-
1666479357903,
|
|
497
|
-
0
|
|
498
|
-
]
|
|
499
|
-
],
|
|
500
|
-
labels: {
|
|
501
|
-
namespace: 'ns-b'
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
]
|
|
505
|
-
};
|
|
506
|
-
const MOCK_MULTI_QUERY_DATA_EMPTY = {
|
|
507
|
-
timeRange: {
|
|
508
|
-
start: new Date(1666625535000),
|
|
509
|
-
end: new Date(1666625535000)
|
|
510
|
-
},
|
|
511
|
-
stepMs: 24379,
|
|
512
|
-
series: []
|
|
513
|
-
};
|
|
514
|
-
const MOCK_TIME_SERIES_QUERY_DEFINITION = {
|
|
515
|
-
kind: 'TimeSeriesQuery',
|
|
516
|
-
spec: {
|
|
517
|
-
plugin: {
|
|
518
|
-
kind: 'PrometheusTimeSeriesQuery',
|
|
519
|
-
spec: {
|
|
520
|
-
query: ''
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
};
|
|
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.3493bbf9.js.LICENSE.txt → lib-router.020a2a16.js.LICENSE.txt}
RENAMED
|
File without changes
|