kibana/dev_docs/tutorials
Abdul Wahab Zahid e6e78ac6d8
[Performance] Refactor TTFMP query from, to fields (#213911)
Currently Kibana forwards `query_range_secs` and `query_offset_secs` to
mark the selected time range when reporting TTFMP event. This format
caused some challenges to identify `from`, `to` date offsets in
visualizations.

To simplify, the PR renames and sends the three fields explicitly:
- `query_from_offset_secs` offset to `0` (now), with -ve for past and
+ve for future dates
- `query_to_offset_secs` offset to `0` (now), with -ve for past and +ve
for future dates
- `query_range_secs`                      same as previously sent

_This approach is followed after a discussion, and based on the
[gist](https://gist.github.com/andrewvc/1f04a57a336d768e4ec5ff2eff06ba54)
excerpt:_

```
Earliest date -> QueryFrom
Newest date -> QueryTo
Duration -> QueryRange
```

### Indexing
These fields then should be mapped in the EBT indexer to ingest in the
top level of the document, eventually removing the need to create
runtime fields in data views for visualizations.

Also, runtime fields in data views should be updated to reflect this
change. For backward compatibility, the runtime fields can cater both
the old and new field names conditionally.

### Testing
- Ensure that the TTFMP events are correctly reporting the date ranges.

### Example

![image](https://github.com/user-attachments/assets/529507fc-66f7-440a-8bbb-b34176e8d093)
2025-03-20 11:40:24 +01:00
..
data SKA: Update broken references and URLs (#206836) 2025-01-28 03:32:48 +00:00
performance [Performance] Refactor TTFMP query from, to fields (#213911) 2025-03-20 11:40:24 +01:00
screenshotting [Screenshotting] Organize dev docs for screenshotting/chromium (#198100) 2024-10-30 11:55:12 -05:00
advanced_settings.mdx [Advanced settings] Update migration guidance in advanced settings tutorial (#208010) 2025-01-29 14:42:29 +01:00
apm_ui.png Debugging with apm - fixes and tutorial (#127892) 2022-03-22 14:56:37 +02:00
building_a_kibana_distributable.mdx [api-docs] follow the correct schema for frontmatter (#138348) 2022-08-10 17:17:50 -05:00
ci.mdx [build] Add Docker images with FIPS (#175946) 2024-02-07 12:09:52 -08:00
configuring_cross_cluster_search.mdx [dev docs] How to set up cross cluster search locally (#182025) 2024-04-30 12:46:21 -05:00
data_views.mdx [api-docs] follow the correct schema for frontmatter (#138348) 2022-08-10 17:17:50 -05:00
debugging.mdx [Dev Docs] Add VS Code configurations to Dev Docs Debugging Tutorial (#212807) 2025-03-06 10:14:19 -05:00
debugging_fips_test_failures.mdx SKA: Relocate "platform" packages that remain on /packages (#208704) 2025-02-24 11:03:30 +00:00
development_windows.mdx [api-docs] follow the correct schema for frontmatter (#138348) 2022-08-10 17:17:50 -05:00
endpoints.mdx Deprecated authRequired in favor of security.authc.enabled (#202414) 2024-12-10 11:24:41 +01:00
expressions.mdx [api-docs] follow the correct schema for frontmatter (#138348) 2022-08-10 17:17:50 -05:00
fips_test_failure_license_override_example.png Adding documentation to aid team in triaging FIPS Test Failures (#203008) 2025-01-14 07:53:28 -05:00
generating_oas_for_http_apis.mdx [OAS] Support examples (and more) (#212495) 2025-03-14 14:56:28 +01:00
kibana_page_template.mdx Upgrade EUI to v63.0.6 - updates to new EuiPageTemplate and deprecates old page components (#139524) 2022-09-07 15:35:23 -05:00
saved_objects.mdx Document that index/enable: false SO mappings is an anti-pattern (#201969) 2024-11-28 17:50:34 -06:00
submit_a_pull_request.mdx [ci] Remove duplicate backport action (#190643) 2024-08-20 08:23:25 -05:00
testing_plugins.mdx Updates internal dev docs for Saved Objects (#178058) 2024-03-07 08:16:28 -07:00
versioning_http_apis.mdx [dev-docs] Adds section explaining internal and public APIs (#195840) 2024-10-11 16:16:47 +00:00
versioning_interfaces.mdx [Versioned APIs] Versioned interfaces dev docs guide (#150705) 2023-03-01 16:45:43 +01:00