mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[8.18] [Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event (#217575) (#217788)
# Backport This will backport the following commits from `main` to `8.18`: - [[Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event (#217575)](https://github.com/elastic/kibana/pull/217575) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Stelmach","email":"60304951+rStelmach@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-10T08:13:46Z","message":"[Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event (#217575)","sha":"8df83d27166cacf21168330d6d210c82a5b5b428","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","ci:cloud-deploy","Team:obs-ux-logs","Feature:Dataset Health","backport:version","v9.1.0","v8.19.0","v8.18.1"],"title":"[Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event","number":217575,"url":"https://github.com/elastic/kibana/pull/217575","mergeCommit":{"message":"[Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event (#217575)","sha":"8df83d27166cacf21168330d6d210c82a5b5b428"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217575","number":217575,"mergeCommit":{"message":"[Dataset Quality] Add 'source' and 'target' fields to 'Dataset Quality Navigated' event (#217575)","sha":"8df83d27166cacf21168330d6d210c82a5b5b428"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Stelmach <60304951+rStelmach@users.noreply.github.com>
This commit is contained in:
parent
0159aab0ba
commit
e22d45a7a1
4 changed files with 25 additions and 1 deletions
|
@ -11,7 +11,12 @@ import { getDateISORange } from '@kbn/timerange';
|
|||
import { useDatasetQualityContext } from '../components/dataset_quality/context';
|
||||
import { useDatasetQualityFilters } from './use_dataset_quality_filters';
|
||||
import { DataStreamStat } from '../../common/data_streams_stats';
|
||||
import { DatasetEbtProps, DatasetNavigatedEbtProps } from '../services/telemetry';
|
||||
import {
|
||||
DatasetEbtProps,
|
||||
DatasetNavigatedEbtProps,
|
||||
NavigationSource,
|
||||
NavigationTarget,
|
||||
} from '../services/telemetry';
|
||||
|
||||
export function useDatasetTelemetry() {
|
||||
const { service, telemetryClient } = useDatasetQualityContext();
|
||||
|
@ -115,5 +120,7 @@ function getDatasetEbtProps(
|
|||
...datasetEbtProps,
|
||||
sort,
|
||||
filters: ebtFilters,
|
||||
target: NavigationTarget.Discover,
|
||||
source: NavigationSource.Table,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -195,6 +195,19 @@ const datasetNavigatedEventType: DatasetQualityTelemetryEvent = {
|
|||
...datasetCommonSchema,
|
||||
sort: sortSchema,
|
||||
filters: filtersSchema,
|
||||
target: {
|
||||
type: 'keyword',
|
||||
_meta: {
|
||||
description: 'Action that user took to navigate away from the dataset quality page',
|
||||
},
|
||||
},
|
||||
source: {
|
||||
type: 'keyword',
|
||||
_meta: {
|
||||
description:
|
||||
'Section of dataset quality page the action is originated from e.g. header, summary, chart or table etc.',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -96,6 +96,8 @@ describe('TelemetryService', () => {
|
|||
...defaultEbtProps,
|
||||
sort: defaultSort,
|
||||
filters: defaultFilters,
|
||||
target: NavigationTarget.Discover,
|
||||
source: NavigationSource.Table,
|
||||
};
|
||||
|
||||
telemetry.trackDatasetNavigated(exampleEventData);
|
||||
|
|
|
@ -83,6 +83,8 @@ export interface DatasetNavigatedEbtProps extends DatasetEbtProps {
|
|||
namespaces: DatasetEbtFilter;
|
||||
qualities: DatasetEbtFilter;
|
||||
};
|
||||
target: NavigationTarget;
|
||||
source: NavigationSource;
|
||||
}
|
||||
|
||||
export interface DatasetDetailsEbtProps extends DatasetEbtProps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue