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B,aAAe,CAClC,oBAAqB,OACrB,mBAAoB,OACpB,2BAA4B,CAC1B,2BAA4B,MAC9B,CACF,EAEA,WAAe,KACbA,EACA,CACE,UAAW,KACX,sBAAuB,GACzB,EACA,CAAC,CAAE,UAAAS,EAAW,sBAAAC,CAAsB,KAAO,CACzC,SAAUD,EAAU,SACpB,mBAAoBC,EAAsB,mBAC1C,oBAAqBA,EAAsB,oBAC3C,2BAA4BA,EAAsB,0BACpD,EACF,C","sources":["webpack://graylog-web-interface/./src/pages/IndexSetCreationPage.tsx"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Row, Col } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm, IndicesPageNavigation } from 'components/indices';\nimport DocsHelper from 'util/DocsHelper';\nimport Routes from 'routing/Routes';\nimport connect from 'stores/connect';\nimport { IndexSetsActions, IndexSetsStore } from 'stores/indices/IndexSetsStore';\nimport type { IndexSet } from 'stores/indices/IndexSetsStore';\nimport { IndicesConfigurationActions, IndicesConfigurationStore } from 'stores/indices/IndicesConfigurationStore';\nimport {\n RetentionStrategyPropType,\n RotationStrategyPropType,\n} from 'components/indices/Types';\nimport type {\n RetentionStrategy, RotationStrategy, RetentionStrategyContext,\n} from 'components/indices/Types';\nimport { adjustFormat } from 'util/DateTime';\nimport useHistory from 'routing/useHistory';\nimport useSendTelemetry from 'logic/telemetry/useSendTelemetry';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\n\ntype Props = {\n retentionStrategies?: Array | null | undefined,\n rotationStrategies?: Array | null | undefined,\n retentionStrategiesContext?: RetentionStrategyContext | null | undefined,\n}\n\nconst IndexSetCreationPage = ({ retentionStrategies, rotationStrategies, retentionStrategiesContext }: Props) => {\n const history = useHistory();\n const sendTelemetry = useSendTelemetry();\n\n useEffect(() => {\n IndicesConfigurationActions.loadRotationStrategies();\n IndicesConfigurationActions.loadRetentionStrategies();\n }, []);\n\n const _saveConfiguration = (indexSetItem: IndexSet) => {\n sendTelemetry(TELEMETRY_EVENT_TYPE.INDICES.INDEX_SET_CREATED, {\n app_pathname: 'indexsets',\n });\n\n const copy = indexSetItem;\n\n copy.creation_date = adjustFormat(new Date(), 'internal');\n\n return IndexSetsActions.create(copy).then(() => {\n history.push(Routes.SYSTEM.INDICES.LIST);\n });\n };\n\n const _isLoading = () => !rotationStrategies || !retentionStrategies;\n\n if (_isLoading()) {\n return ;\n }\n\n return (\n \n \n \n \n \n Create a new index set that will let you configure the retention, sharding, and replication of messages\n coming from one or more streams.\n \n \n\n \n \n \n \n
\n \n \n );\n};\n\nIndexSetCreationPage.propTypes = {\n retentionStrategies: PropTypes.arrayOf(RetentionStrategyPropType),\n rotationStrategies: PropTypes.arrayOf(RotationStrategyPropType),\n retentionStrategiesContext: PropTypes.shape({\n max_index_retention_period: PropTypes.string,\n }),\n};\n\nIndexSetCreationPage.defaultProps = {\n retentionStrategies: undefined,\n rotationStrategies: undefined,\n retentionStrategiesContext: {\n max_index_retention_period: undefined,\n },\n};\n\nexport default connect(\n IndexSetCreationPage,\n {\n indexSets: IndexSetsStore,\n indicesConfigurations: IndicesConfigurationStore,\n },\n ({ indexSets, indicesConfigurations }) => ({\n indexSet: indexSets.indexSet,\n rotationStrategies: indicesConfigurations.rotationStrategies,\n retentionStrategies: indicesConfigurations.retentionStrategies,\n retentionStrategiesContext: indicesConfigurations.retentionStrategiesContext,\n }),\n);\n"],"names":["IndexSetCreationPage","retentionStrategies","rotationStrategies","retentionStrategiesContext","history","sendTelemetry","_saveConfiguration","indexSetItem","copy","indexSets","indicesConfigurations"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy