Skip to content

Commit

Permalink
PoC for TSVB with MDS
Browse files Browse the repository at this point in the history
Signed-off-by: Bandini Bhopi <bandinib@amazon.com>
  • Loading branch information
bandinib-amzn committed Mar 2, 2024
1 parent c2ac4c8 commit 7f16083
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_timeseries/opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"opensearchDashboardsVersion": "opensearchDashboards",
"server": true,
"ui": true,
"requiredPlugins": ["charts", "data", "expressions", "visualizations"],
"requiredPlugins": ["charts", "data", "expressions", "visualizations", "dataSource"],
"optionalPlugins": ["usageCollection"],
"requiredBundles": ["opensearchDashboardsUtils", "opensearchDashboardsReact"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class AbstractSearchStrategy {
...this.additionalParams,
},
indexType: this.indexType,
dataSourceId: 'f620c970-ca12-11ee-ab29-99c0b09e473b', // Added for testing. This should come as query string parameter.
},
{
...options,
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/vis_type_timeseries/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { Server } from '@hapi/hapi';
import { VisTypeTimeseriesConfig } from './config';
import { getVisData, GetVisData, GetVisDataOptions } from './lib/get_vis_data';
import { ValidationTelemetryService } from './validation_telemetry';
import { UsageCollectionSetup } from '../../usage_collection/server';
import { UsageCollectionSetup, DataSourcePluginSetup } from '../../usage_collection/server';
import { PluginStart } from '../../data/server';
import { visDataRoutes } from './routes/vis';
// @ts-ignore
Expand All @@ -57,6 +57,7 @@ export interface LegacySetup {

interface VisTypeTimeseriesPluginSetupDependencies {
usageCollection?: UsageCollectionSetup;
dataSource: DataSourcePluginSetup;
}

interface VisTypeTimeseriesPluginStartDependencies {
Expand Down

0 comments on commit 7f16083

Please sign in to comment.