Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { i18n } from '@kbn/i18n';
import {
AggDescriptor,
ColorDynamicOptions,
LabelDynamicOptions,
LayerDescriptor,
SizeDynamicOptions,
StylePropertyField,
Expand Down Expand Up @@ -80,10 +79,6 @@ function createLayerLabel(
metricName = i18n.translate('xpack.maps.observability.durationMetricName', {
defaultMessage: 'Duration',
});
} else if (metric === OBSERVABILITY_METRIC_TYPE.SLA_PERCENTAGE) {
metricName = i18n.translate('xpack.maps.observability.slaPercentageMetricName', {
defaultMessage: '% Duration of SLA',
});
} else if (metric === OBSERVABILITY_METRIC_TYPE.COUNT) {
metricName = i18n.translate('xpack.maps.observability.countMetricName', {
defaultMessage: 'Total',
Expand All @@ -103,11 +98,6 @@ function createAggDescriptor(metric: OBSERVABILITY_METRIC_TYPE): AggDescriptor {
type: AGG_TYPE.AVG,
field: 'transaction.duration.us',
};
} else if (metric === OBSERVABILITY_METRIC_TYPE.SLA_PERCENTAGE) {
return {
type: AGG_TYPE.AVG,
field: 'duration_sla_pct',
};
} else if (metric === OBSERVABILITY_METRIC_TYPE.UNIQUE_COUNT) {
return {
type: AGG_TYPE.UNIQUE_COUNT,
Expand Down Expand Up @@ -251,16 +241,6 @@ export function createLayerDescriptor({
},
};

if (metric === OBSERVABILITY_METRIC_TYPE.SLA_PERCENTAGE) {
styleProperties[VECTOR_STYLES.LABEL_TEXT] = {
type: STYLE_TYPE.DYNAMIC,
options: {
...(defaultDynamicProperties[VECTOR_STYLES.LABEL_TEXT]!.options as LabelDynamicOptions),
field: metricStyleField,
},
};
}

return VectorLayer.createDescriptor({
label,
query: apmSourceQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { OBSERVABILITY_LAYER_TYPE } from './layer_select';

export enum OBSERVABILITY_METRIC_TYPE {
TRANSACTION_DURATION = 'TRANSACTION_DURATION',
SLA_PERCENTAGE = 'SLA_PERCENTAGE',
COUNT = 'COUNT',
UNIQUE_COUNT = 'UNIQUE_COUNT',
}
Expand All @@ -23,12 +22,6 @@ const APM_RUM_PERFORMANCE_METRIC_OPTIONS = [
defaultMessage: 'Transaction duraction',
}),
},
{
value: OBSERVABILITY_METRIC_TYPE.SLA_PERCENTAGE,
text: i18n.translate('xpack.maps.observability.slaPercentageLabel', {
defaultMessage: 'SLA percentage',
}),
},
];

const APM_RUM_TRAFFIC_METRIC_OPTIONS = [
Expand Down