forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Remove index_pattern.json and add custom field formatters (elas…
…tic#119915) * [APM] Remove index_pattern.json and add custom field formatters * Fix tests * Fix tests * Fix tutorial
- Loading branch information
Showing
10 changed files
with
251 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
x-pack/plugins/apm/server/routes/data_view/get_apm_data_view_attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { | ||
TRACE_ID, | ||
TRANSACTION_ID, | ||
} from '../../../common/elasticsearch_fieldnames'; | ||
|
||
export function getApmDataViewAttributes(title: string) { | ||
return { | ||
// required fields (even if empty) | ||
title, | ||
fieldAttrs: '{}', | ||
fields: '[]', | ||
runtimeFieldMap: '{}', | ||
timeFieldName: '@timestamp', | ||
typeMeta: '{}', | ||
|
||
// link to APM from Discover | ||
fieldFormatMap: JSON.stringify({ | ||
[TRACE_ID]: { | ||
id: 'url', | ||
params: { | ||
urlTemplate: 'apm/link-to/trace/{{value}}', | ||
labelTemplate: '{{value}}', | ||
}, | ||
}, | ||
[TRANSACTION_ID]: { | ||
id: 'url', | ||
params: { | ||
urlTemplate: 'apm/link-to/transaction/{{value}}', | ||
labelTemplate: '{{value}}', | ||
}, | ||
}, | ||
}), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.