mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
- Refactors individual helpers to manage the `random_sampler` aggregation into a single reusable wrapper. The helper's factory can be supplied with either a sample probability right away or a document count to generate a dynamic sample probability based on it. - Applies random sampling to the main date histogram chart.
12 lines
513 B
TypeScript
12 lines
513 B
TypeScript
/*
|
|
* 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.
|
|
*/
|
|
|
|
export const SPIKE_ANALYSIS_THRESHOLD = 0.02;
|
|
|
|
// For the technical preview of Explain Log Rate Spikes we use a hard coded seed.
|
|
// In future versions we might use a user specific seed or let the user costumise it.
|
|
export const RANDOM_SAMPLER_SEED = 3867412;
|