mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
test: implement unit tests for hooks and refactor some types (#493)
This commit is contained in:
@@ -91,6 +91,7 @@ limitations under the License. -->
|
||||
import getDashboard from "@/hooks/useDashboardsSession";
|
||||
import type { MetricConfigOpt } from "@/types/dashboard";
|
||||
import ColumnGraph from "./components/ColumnGraph.vue";
|
||||
import type { PodWithMetrics } from "@/hooks/useExpressionsProcessor";
|
||||
|
||||
/*global defineProps */
|
||||
const props = defineProps({
|
||||
@@ -176,11 +177,11 @@ limitations under the License. -->
|
||||
|
||||
if (expressions.length && expressions[0]) {
|
||||
const params = await useExpressionsQueryPodsMetrics(
|
||||
currentInstances,
|
||||
currentInstances as PodWithMetrics[],
|
||||
{ metricConfig: metricConfig.value || [], expressions, subExpressions },
|
||||
EntityType[3].value,
|
||||
);
|
||||
instances.value = params.data;
|
||||
instances.value = params.data as Instance[];
|
||||
colMetrics.value = params.names;
|
||||
colSubMetrics.value = params.subNames;
|
||||
typesOfMQE.value = params.metricTypesArr;
|
||||
|
Reference in New Issue
Block a user