|
@@ -10,12 +10,15 @@ import {GenericPerformanceWidgetDataType} from './types';
|
|
export interface ChartDefinition {
|
|
export interface ChartDefinition {
|
|
dataType: GenericPerformanceWidgetDataType;
|
|
dataType: GenericPerformanceWidgetDataType;
|
|
fields: string[];
|
|
fields: string[];
|
|
-
|
|
|
|
|
|
+ // Additional fields to get requested but are not directly used in visualization.
|
|
title: string;
|
|
title: string;
|
|
- titleTooltip: string; // The first field in the list will be treated as the primary field in most widgets (except for special casing).
|
|
|
|
|
|
|
|
|
|
+ titleTooltip: string;
|
|
|
|
+ // The first field in the list will be treated as the primary field in most widgets (except for special casing).
|
|
allowsOpenInDiscover?: boolean;
|
|
allowsOpenInDiscover?: boolean;
|
|
- chartColor?: string; // Optional. Will default to colors depending on placement in list or colors from the chart itself.
|
|
|
|
|
|
+
|
|
|
|
+ chartColor?: string;
|
|
|
|
+ secondaryFields?: string[]; // Optional. Will default to colors depending on placement in list or colors from the chart itself.
|
|
|
|
|
|
vitalStops?: {
|
|
vitalStops?: {
|
|
meh: number;
|
|
meh: number;
|
|
@@ -260,7 +263,7 @@ export const WIDGET_DEFINITIONS: ({
|
|
[PerformanceWidgetSetting.SLOW_HTTP_OPS]: {
|
|
[PerformanceWidgetSetting.SLOW_HTTP_OPS]: {
|
|
title: t('Slow HTTP Ops'),
|
|
title: t('Slow HTTP Ops'),
|
|
titleTooltip: getTermHelp(organization, PerformanceTerm.SLOW_HTTP_SPANS),
|
|
titleTooltip: getTermHelp(organization, PerformanceTerm.SLOW_HTTP_SPANS),
|
|
- fields: [`p75(spans.http)`],
|
|
|
|
|
|
+ fields: [`p75(spans.http)`, 'p75(spans.db)'],
|
|
dataType: GenericPerformanceWidgetDataType.LINE_LIST,
|
|
dataType: GenericPerformanceWidgetDataType.LINE_LIST,
|
|
chartColor: WIDGET_PALETTE[0],
|
|
chartColor: WIDGET_PALETTE[0],
|
|
},
|
|
},
|
|
@@ -281,7 +284,7 @@ export const WIDGET_DEFINITIONS: ({
|
|
[PerformanceWidgetSetting.SLOW_DB_OPS]: {
|
|
[PerformanceWidgetSetting.SLOW_DB_OPS]: {
|
|
title: t('Slow DB Ops'),
|
|
title: t('Slow DB Ops'),
|
|
titleTooltip: getTermHelp(organization, PerformanceTerm.SLOW_HTTP_SPANS),
|
|
titleTooltip: getTermHelp(organization, PerformanceTerm.SLOW_HTTP_SPANS),
|
|
- fields: [`p75(spans.db)`],
|
|
|
|
|
|
+ fields: [`p75(spans.db)`, 'p75(spans.http)'],
|
|
dataType: GenericPerformanceWidgetDataType.LINE_LIST,
|
|
dataType: GenericPerformanceWidgetDataType.LINE_LIST,
|
|
chartColor: WIDGET_PALETTE[0],
|
|
chartColor: WIDGET_PALETTE[0],
|
|
},
|
|
},
|