mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Maps] remove SLA percentage metric (#65718)
* [Maps] remove SLA percentage metric * remove unused import Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
6bf0890186
commit
37aad5c56a
2 changed files with 0 additions and 27 deletions
|
@ -9,7 +9,6 @@ import { i18n } from '@kbn/i18n';
|
|||
import {
|
||||
AggDescriptor,
|
||||
ColorDynamicOptions,
|
||||
LabelDynamicOptions,
|
||||
LayerDescriptor,
|
||||
SizeDynamicOptions,
|
||||
StylePropertyField,
|
||||
|
@ -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',
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
}
|
||||
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue