mirror of
https://github.com/elastic/kibana.git
synced 2025-04-20 16:03:20 -04:00
The PR adds the Degraded Docs insights panel which shows the percentage of degraded docs over time using Lens Embeddable. <img width="621" alt="Screenshot 2024-02-14 at 13 25 19" src=" |
||
---|---|---|
.. | ||
src | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/timerange
This package shares a set of utilities for working with timeranges.
Utils
getDateRange
This function return a timestamp for startDate
and endDate
of a given date range.
import { getDateRange } from '@kbn/timerange';
const { startDate, endDate } = getDateRange({ from: 'now-24h', to: 'now' });
getDateISORange
This function return an ISO string for startDate
and endDate
of a given date range.
import { getDateISORange } from '@kbn/timerange';
const { startDate, endDate } = getDateISORange({ from: 'now-24h', to: 'now' });