"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_ALERTS_ILM_POLICY_NAME = exports.DEFAULT_ALERTS_ILM_POLICY = 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; you may not use this file except in compliance with the Elastic License * 2.0. */ /** * Default alert index ILM policy * - _meta.managed: notify users this is a managed policy and should be modified * at their own risk * - no delete phase as we want to keep these indices around indefinitely * * This should be used by all alerts-as-data indices */ const DEFAULT_ALERTS_ILM_POLICY_NAME = '.alerts-ilm-policy'; exports.DEFAULT_ALERTS_ILM_POLICY_NAME = DEFAULT_ALERTS_ILM_POLICY_NAME; const DEFAULT_ALERTS_ILM_POLICY = { _meta: { managed: true }, phases: { hot: { actions: { rollover: { max_age: '30d', max_primary_shard_size: '50gb' } } } } }; exports.DEFAULT_ALERTS_ILM_POLICY = DEFAULT_ALERTS_ILM_POLICY;