Skip to content

Commit c9a6244

Browse files
committed
Add labels selector
1 parent 77af707 commit c9a6244

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shared/hooks/useGetChartData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export const useGetChartData = async ({
8383
break;
8484
}
8585

86+
const labels = filterBy && filterValue ? [`${filterBy}:${filterValue}`] : ['*'];
87+
8688
return await Post({
8789
path: `/v3/spaces/${spaceId}/rooms/${roomId}/data`,
8890
baseUrl,
@@ -99,7 +101,7 @@ export const useGetChartData = async ({
99101
nodes: ['*'],
100102
instances: ['*'],
101103
dimensions: ['*'],
102-
labels: ['*'],
104+
labels,
103105
},
104106
aggregations: {
105107
metrics,

0 commit comments

Comments
 (0)