@axiom-lattice/core 2.1.25 → 2.1.26
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/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2089,7 +2089,9 @@ ${serverKeys.map(
|
|
|
2089
2089
|
}
|
|
2090
2090
|
const client = metricsServerManager.getClient(serverKey);
|
|
2091
2091
|
const dataSources = await client.getDataSources();
|
|
2092
|
-
|
|
2092
|
+
const selectedIds = config.selectedDataSources || [];
|
|
2093
|
+
const filteredDataSources = selectedIds.length > 0 ? dataSources.filter((ds) => selectedIds.includes(String(ds.id))) : dataSources;
|
|
2094
|
+
for (const ds of filteredDataSources) {
|
|
2093
2095
|
allDataSources.push({
|
|
2094
2096
|
serverKey,
|
|
2095
2097
|
datasourceId: String(ds.id),
|
|
@@ -7150,7 +7152,9 @@ function createMetricsMiddleware(params) {
|
|
|
7150
7152
|
createListMetricsDataSourcesTool(toolParams),
|
|
7151
7153
|
createQueryMetricsListTool(toolParams),
|
|
7152
7154
|
createQueryMetricDefinitionTool(toolParams),
|
|
7153
|
-
createQuerySemanticMetricDataTool(toolParams)
|
|
7155
|
+
createQuerySemanticMetricDataTool(toolParams),
|
|
7156
|
+
createQueryTablesListTool(toolParams),
|
|
7157
|
+
createQueryTableDefinitionTool(toolParams)
|
|
7154
7158
|
]
|
|
7155
7159
|
});
|
|
7156
7160
|
}
|