[Synthetics] Fix complete tests sparkline (#155838)

This commit is contained in:
Shahzad 2023-05-04 11:39:24 +02:00 committed by GitHub
parent e5f6f96e9c
commit fffe57dc1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 27 deletions

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { i18n } from '@kbn/i18n';
import { ColumnFilter, ConfigProps, SeriesConfig } from '../../types';
import {
FieldLabels,
@ -99,7 +100,7 @@ export function getSyntheticsKPIConfig({ dataView }: ConfigProps): SeriesConfig
label: 'Monitor Errors',
id: 'monitor_errors',
columnType: OPERATION_COLUMN,
field: 'state.id',
field: 'monitor.check_group',
columnFilters: [
{
language: 'kuery',
@ -108,9 +109,11 @@ export function getSyntheticsKPIConfig({ dataView }: ConfigProps): SeriesConfig
],
},
{
label: 'Monitor Complete',
id: 'state.up',
field: 'state.up',
label: i18n.translate('xpack.exploratoryView.expView.successful', {
defaultMessage: 'Successful count',
}),
id: 'monitor_successful',
field: 'monitor.check_group',
columnType: OPERATION_COLUMN,
columnFilters: [
{

View file

@ -107,9 +107,9 @@ export function getSyntheticsSingleMetricConfig({ dataView }: ConfigProps): Seri
format: 'number',
},
{
id: 'monitor_complete',
label: i18n.translate('xpack.exploratoryView.expView.complete', {
defaultMessage: 'Complete',
id: 'monitor_successful',
label: i18n.translate('xpack.exploratoryView.expView.successful', {
defaultMessage: 'Successful count',
}),
metricStateOptions: {
titlePosition: 'bottom',