UNPKG

dsl-builder

Version:

OpenSearch Query Builder - Extract from OpenSearch Dashboards

32 lines (31 loc) 796 B
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ import { stubFields } from './field.stub'; export const stubIndexPattern = { id: 'logstash-*', fields: stubFields, title: 'logstash-*', timeFieldName: '@timestamp', }; export const stubIndexPatternWithFields = { id: '1234', title: 'logstash-*', fields: [ { name: 'response', type: 'number', esTypes: ['integer'], aggregatable: true, filterable: true, searchable: true, }, ], };