"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BASE_ACTION_API_PATH", { enumerable: true, get: function () { return _common2.BASE_ACTION_API_PATH; } }); Object.defineProperty(exports, "BASE_ALERTING_API_PATH", { enumerable: true, get: function () { return _common.BASE_ALERTING_API_PATH; } }); exports.GLOBAL_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = exports.GLOBAL_CONNECTOR_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = exports.DEFAULT_SEARCH_PAGE_SIZE = exports.DEFAULT_RULE_INTERVAL = exports.DEFAULT_NUMBER_FORMAT = exports.CONNECTOR_LOCKED_COLUMNS = exports.CONNECTOR_EXECUTION_LOG_COLUMN_IDS = void 0; Object.defineProperty(exports, "INTERNAL_BASE_ACTION_API_PATH", { enumerable: true, get: function () { return _common2.INTERNAL_BASE_ACTION_API_PATH; } }); Object.defineProperty(exports, "INTERNAL_BASE_ALERTING_API_PATH", { enumerable: true, get: function () { return _common.INTERNAL_BASE_ALERTING_API_PATH; } }); exports.SORT_ORDERS = exports.RULE_EXECUTION_LOG_DURATION_COLUMNS = exports.RULE_EXECUTION_LOG_COLUMN_IDS = exports.RULE_EXECUTION_LOG_ALERT_COUNT_COLUMNS = exports.RULE_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = exports.LOCKED_COLUMNS = void 0; Object.defineProperty(exports, "TIME_UNITS", { enumerable: true, get: function () { return _time_units.TIME_UNITS; } }); exports.summaryMessage = exports.routeToRules = exports.routeToLogs = exports.routeToInternalAlerts = exports.routeToHome = exports.routeToConnectors = exports.recoveredActionGroupMessage = exports.legacyRouteToRules = exports.legacyRouteToRuleDetails = void 0; var _i18n = require("@kbn/i18n"); var _common = require("@kbn/alerting-plugin/common"); var _common2 = require("@kbn/actions-plugin/common"); var _time_units = require("./time_units"); /* * 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. */ const routeToHome = `/`; exports.routeToHome = routeToHome; const routeToConnectors = `/connectors`; exports.routeToConnectors = routeToConnectors; const routeToRules = `/rules`; exports.routeToRules = routeToRules; const routeToLogs = `/logs`; exports.routeToLogs = routeToLogs; const routeToInternalAlerts = `/alerts`; exports.routeToInternalAlerts = routeToInternalAlerts; const legacyRouteToRules = `/alerts`; exports.legacyRouteToRules = legacyRouteToRules; const legacyRouteToRuleDetails = `/alert/:alertId`; exports.legacyRouteToRuleDetails = legacyRouteToRuleDetails; const recoveredActionGroupMessage = _i18n.i18n.translate('xpack.triggersActionsUI.sections.actionForm.RecoveredMessage', { defaultMessage: 'Recovered' }); exports.recoveredActionGroupMessage = recoveredActionGroupMessage; const summaryMessage = _i18n.i18n.translate('xpack.triggersActionsUI.sections.actionForm.SummaryMessage', { defaultMessage: 'The system has detected \\{\\{alerts.new.count\\}\\} new, \\{\\{alerts.ongoing.count\\}\\} ongoing, and \\{\\{alerts.recovered.count\\}\\} recovered alerts.' }); exports.summaryMessage = summaryMessage; let SORT_ORDERS; exports.SORT_ORDERS = SORT_ORDERS; (function (SORT_ORDERS) { SORT_ORDERS["ASCENDING"] = "asc"; SORT_ORDERS["DESCENDING"] = "desc"; })(SORT_ORDERS || (exports.SORT_ORDERS = SORT_ORDERS = {})); const DEFAULT_SEARCH_PAGE_SIZE = 10; exports.DEFAULT_SEARCH_PAGE_SIZE = DEFAULT_SEARCH_PAGE_SIZE; const DEFAULT_RULE_INTERVAL = '1m'; exports.DEFAULT_RULE_INTERVAL = DEFAULT_RULE_INTERVAL; const RULE_EXECUTION_LOG_COLUMN_IDS = ['rule_id', 'rule_name', 'space_ids', 'id', 'timestamp', 'execution_duration', 'status', 'message', 'num_active_alerts', 'num_new_alerts', 'num_recovered_alerts', 'num_triggered_actions', 'num_generated_actions', 'num_succeeded_actions', 'num_errored_actions', 'total_search_duration', 'es_search_duration', 'schedule_delay', 'timed_out', 'maintenance_window_ids']; exports.RULE_EXECUTION_LOG_COLUMN_IDS = RULE_EXECUTION_LOG_COLUMN_IDS; const RULE_EXECUTION_LOG_DURATION_COLUMNS = ['execution_duration', 'total_search_duration', 'es_search_duration', 'schedule_delay']; exports.RULE_EXECUTION_LOG_DURATION_COLUMNS = RULE_EXECUTION_LOG_DURATION_COLUMNS; const RULE_EXECUTION_LOG_ALERT_COUNT_COLUMNS = ['num_new_alerts', 'num_active_alerts', 'num_recovered_alerts']; exports.RULE_EXECUTION_LOG_ALERT_COUNT_COLUMNS = RULE_EXECUTION_LOG_ALERT_COUNT_COLUMNS; const LOCKED_COLUMNS = ['rule_name', 'timestamp', 'execution_duration', 'status', 'message', 'num_active_alerts', 'num_errored_actions']; exports.LOCKED_COLUMNS = LOCKED_COLUMNS; const RULE_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = [...LOCKED_COLUMNS.slice(1)]; exports.RULE_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = RULE_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS; const GLOBAL_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = ['rule_name', ...LOCKED_COLUMNS]; exports.GLOBAL_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = GLOBAL_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS; const DEFAULT_NUMBER_FORMAT = 'format:number:defaultPattern'; exports.DEFAULT_NUMBER_FORMAT = DEFAULT_NUMBER_FORMAT; const CONNECTOR_EXECUTION_LOG_COLUMN_IDS = ['connector_id', 'space_ids', 'id', 'timestamp', 'status', 'connector_name', 'message', 'execution_duration', 'schedule_delay', 'timed_out']; exports.CONNECTOR_EXECUTION_LOG_COLUMN_IDS = CONNECTOR_EXECUTION_LOG_COLUMN_IDS; const CONNECTOR_LOCKED_COLUMNS = ['timestamp', 'status', 'connector_name', 'message']; exports.CONNECTOR_LOCKED_COLUMNS = CONNECTOR_LOCKED_COLUMNS; const GLOBAL_CONNECTOR_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = [...CONNECTOR_LOCKED_COLUMNS]; exports.GLOBAL_CONNECTOR_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS = GLOBAL_CONNECTOR_EXECUTION_DEFAULT_INITIAL_VISIBLE_COLUMNS;