import type { FunctionDefinition } from '../../definition_types'; /** * Creates groups of values - buckets - out of a `@timestamp` attribute. * The size of the buckets can be provided directly as a duration or period. * Alternatively, the bucket size can be chosen based on a recommended count * and a range. * * When using ES|QL in Kibana, the range can be derived automatically from the * `@timestamp` filter * that Kibana adds to the query. * * @example * FROM sample_data * | STATS count = COUNT(*) BY bucket = TBUCKET(3, "2023-10-23T12:00:00Z", "2023-10-23T14:00:00Z") * | SORT bucket * * @example * FROM sample_data * | STATS count = COUNT(*) BY bucket = TBUCKET(20, "2023-10-23T12:00:00Z", "2023-10-23T14:00:00Z") * | SORT bucket * * @example * FROM sample_data * | STATS min = MIN(@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 hour) * | SORT min * * @example * FROM sample_data * | STATS min = MIN(@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 hour") * | SORT min */ declare const definition: FunctionDefinition; export default definition; //# sourceMappingURL=tbucket.d.ts.map