Skip to content

Commit

Permalink
Merge pull request opensearch-project#61 from shankha-das/feature/log…
Browse files Browse the repository at this point in the history
…s-view-new

Feature/logs-view-new: Updated the Logs View UI
  • Loading branch information
abasatwar authored Aug 2, 2022
2 parents 7a68db8 + 272013d commit ee13583
Show file tree
Hide file tree
Showing 18 changed files with 959 additions and 27 deletions.
3 changes: 2 additions & 1 deletion dashboards-observability/common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export enum visChartTypes {
Histogram = 'histogram',
TreeMap = 'tree_map',
Scatter = 'scatter',
LogsView = 'logs_view',
}

export interface ValueOptionsAxes {
Expand All @@ -98,7 +99,7 @@ export interface ValueOptionsAxes {

export const NUMERICAL_FIELDS = ['short', 'integer', 'long', 'float', 'double'];

export const ENABLED_VIS_TYPES = [visChartTypes.Bar, visChartTypes.HorizontalBar, visChartTypes.Line, visChartTypes.Pie, visChartTypes.HeatMap, visChartTypes.Text, visChartTypes.TreeMap, visChartTypes.Gauge, visChartTypes.Histogram, visChartTypes.Scatter];
export const ENABLED_VIS_TYPES = [visChartTypes.Bar, visChartTypes.HorizontalBar, visChartTypes.Line, visChartTypes.Pie, visChartTypes.HeatMap, visChartTypes.Text, visChartTypes.TreeMap, visChartTypes.Gauge, visChartTypes.Histogram, visChartTypes.Scatter, visChartTypes.LogsView];

//Live tail constants
export const LIVE_OPTIONS = [
Expand Down
30 changes: 28 additions & 2 deletions dashboards-observability/common/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
SELECTED_TIMESTAMP,
SELECTED_DATE_RANGE,
} from '../constants/explorer';
import { CoreStart, HttpStart, NotificationsStart } from '../../../../src/core/public';
import { CoreStart, HttpSetup, HttpStart, NotificationsStart } from '../../../../src/core/public';
import SavedObjects from '../../public/services/saved_objects/event_analytics/saved_objects';
import TimestampUtils from '../../public/services/timestamp/timestamp';
import PPLService from '../../public/services/requests/ppl';
Expand Down Expand Up @@ -151,6 +151,31 @@ export interface SavedVizRes {
tenant: string;
}

export interface ExplorerDataType {
jsonData: object[];
jsonDataAll: object[];
}

export interface Query {
finalQuery: string;
index: string;
isLoaded: boolean;
objectType: string;
rawQuery: string;
savedObjectId: string;
selectedDateRange: string[];
selectedTimestamp: string;
tabCreatedType: string;
}

export interface ExplorerData {
explorerData?: ExplorerDataType;
explorerFields?: IExplorerFields;
query?: Query;
http?: HttpSetup;
pplService?: PPLService;
}

export interface IVisualizationContainerPropsData {
appData?: { fromApp: boolean };
rawVizData?: any;
Expand All @@ -161,6 +186,7 @@ export interface IVisualizationContainerPropsData {
xaxis: IField[];
yaxis: IField[];
};
explorer?: ExplorerData;
}

export interface IVisualizationContainerPropsVis {
Expand Down Expand Up @@ -190,7 +216,7 @@ export interface IConfigPanelOptionSection {
mapTo: string;
props?: any;
isSingleSelection?: boolean;
defaultState?: number;
defaultState?: boolean | string;
eleType?: string;
}

Expand Down
Loading

0 comments on commit ee13583

Please sign in to comment.