"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.METRIC_EVENT_SCHEMA = void 0; /* * 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 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ /** * Structure of the `metric` event */ const METRIC_EVENT_SCHEMA = { eventName: { type: 'keyword', _meta: { description: 'The name of the event that is tracked in the metrics i.e. kibana_loaded, kibana_started' } }, meta: { type: 'pass_through', _meta: { description: 'Meta data that is searchable but not aggregatable', optional: true } }, duration: { type: 'integer', _meta: { description: 'The main event duration in ms' } }, key1: { type: 'keyword', _meta: { description: 'Performance metric label 1', optional: true } }, value1: { type: 'long', _meta: { description: 'Performance metric value 1', optional: true } }, key2: { type: 'keyword', _meta: { description: 'Performance metric label 2', optional: true } }, value2: { type: 'long', _meta: { description: 'Performance metric value 2', optional: true } }, key3: { type: 'keyword', _meta: { description: 'Performance metric label 3', optional: true } }, value3: { type: 'long', _meta: { description: 'Performance metric value 3', optional: true } }, key4: { type: 'keyword', _meta: { description: 'Performance metric label 4', optional: true } }, value4: { type: 'long', _meta: { description: 'Performance metric value 4', optional: true } }, key5: { type: 'keyword', _meta: { description: 'Performance metric label 5', optional: true } }, value5: { type: 'long', _meta: { description: 'Performance metric value 5', optional: true } } }; exports.METRIC_EVENT_SCHEMA = METRIC_EVENT_SCHEMA;