All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b6fe2bb5-9062.e44dbb162cb909c7e102.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"b6fe2bb5-9062.e44dbb162cb909c7e102.js","mappings":"+lCA0CA,IAAMA,EAAuB,SAAC,GAA6F,IAA3FC,EAA2F,EAA3FA,oBAAqBC,EAAsE,EAAtEA,mBAAoBC,EAAkD,EAAlDA,2BAA4BC,EAAsB,EAAtBA,UACnGC,EAAAA,EAAAA,YAAU,WACRC,EAAAA,EAAAA,yBACAA,EAAAA,EAAAA,4BACC,IAgBH,IAHUJ,IAAuBD,EAI/B,OAAO,gBAAC,KAAD,MAGT,IAAMM,EAAkB,EAAH,KAChBH,GADgB,IAEnBI,wBAAyBN,EAAmB,GAAGO,KAC/CC,kBAAmBR,EAAmB,GAAGS,iBAG3C,OACE,gBAAC,KAAD,CAAeC,MAAM,oBACnB,2BACE,gBAAC,KAAD,CAAYA,MAAM,oBAChB,wKAIA,8EACkD,IAChD,gBAAC,KAAD,CAAmBC,KAAMC,EAAAA,EAAAA,MAAAA,YAA8BC,KAAK,mBAE9D,4BACE,gBAAC,IAAD,CAAeC,GAAIC,EAAAA,GAAAA,OAAAA,QAAAA,MACjB,gBAAC,KAAD,CAAQC,QAAQ,QAAhB,0BAKN,gBAAC,KAAD,CAAKC,UAAU,WACb,gBAAC,KAAD,CAAKC,GAAI,IACP,gBAAC,KAAD,CAA2BhB,SAAUG,EACVJ,2BAA4BA,EAC5BD,mBAAoBA,EACpBD,oBAAqBA,EACrBoB,QAAM,EACNC,WAAYL,EAAAA,GAAAA,OAAAA,QAAAA,KACZM,SAnDV,SAACC,GAC1B,IAAMC,EAAOD,EAEbC,EAAKC,cAAgBC,EAAAA,EAAAA,MAAeC,cAEpCC,EAAAA,GAAAA,OAAwBJ,GAAMK,MAAK,WACjCC,EAAAA,EAAAA,KAAad,EAAAA,GAAAA,OAAAA,QAAAA,iBAqDnBjB,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AKH,qBAC3BhE,mBAAoBmE,KAAKnE,mBACzBiE,sBAAuBE,KAAKF,sBAC5BlE,oBAAqBoE,KAAKpE,oBAC1BE,2BAA4BkE,KAAKlE,6BAGrCmE,KAzBuD,SAyBlDC,GACH,OAAOC,EAAAA,GA9BK,kBA8B2BD,IAGzCX,uBA7BuD,WA6B9B,WACjBa,GAAUC,EAAAA,EAAAA,IAAM,MAAOL,KAAKC,KAAK,yBAEvCG,EAAQ3C,MACN,SAAC6C,GACC,EAAKzE,mBAAqByE,EAASC,WACnC,EAAKC,QAAQ,EAAKT,eAEpB,SAACU,GACCC,EAAAA,EAAAA,MAAA,+CAA+DD,GAAS,6CAI5ExE,EAA4BsD,uBAAuBa,QAAQA,IAG7DX,wBA7CuD,WA6C7B,WAClBW,GAAUC,EAAAA,EAAAA,IAAM,MAAOL,KAAKC,KAAK,0BAEvCG,EAAQ3C,MACN,SAAC6C,GACC,EAAKxE,2BAA6BwE,EAASK,QAC3C,EAAK/E,oBAAsB0E,EAASC,WACpC,EAAKC,QAAQ,EAAKT,eAEpB,SAACU,GACCC,EAAAA,EAAAA,MAAA,gDAAgED,GAAS,8CAI7ExE,EAA4BwD,wBAAwBW,QAAQA","sources":["webpack://graylog-web-interface/./src/pages/IndexSetCreationPage.tsx","webpack://graylog-web-interface/./src/stores/indices/IndicesConfigurationStore.ts"],"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 { LinkContainer } from 'components/common/router';\nimport { Row, Col, Button } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm } from 'components/indices';\nimport { DocumentationLink } from 'components/support';\nimport DateTime from 'logic/datetimes/DateTime';\nimport history from 'util/History';\nimport DocsHelper from 'util/DocsHelper';\nimport Routes from 'routing/Routes';\nimport connect from 'stores/connect';\nimport { IndexSetPropType, IndexSetsActions, IndexSetsStore } from 'stores/indices/IndexSetsStore';\nimport type { IndexSet } from 'stores/indices/IndexSetsStore';\nimport { IndicesConfigurationActions, IndicesConfigurationStore } from 'stores/indices/IndicesConfigurationStore';\nimport { RetentionStrategyPropType, RotationStrategyPropType } from 'components/indices/Types';\nimport type { RetentionStrategy, RotationStrategy, RetentionStrategyContext } from 'components/indices/Types';\n\ntype Props = {\n  indexSet: Partial | null | undefined,\n  retentionStrategies?: Array | null | undefined,\n  rotationStrategies?: Array | null | undefined,\n  retentionStrategiesContext?: RetentionStrategyContext | null | undefined,\n}\n\nconst IndexSetCreationPage = ({ retentionStrategies, rotationStrategies, retentionStrategiesContext, indexSet }: Props) => {\n  useEffect(() => {\n    IndicesConfigurationActions.loadRotationStrategies();\n    IndicesConfigurationActions.loadRetentionStrategies();\n  }, []);\n\n  const _saveConfiguration = (indexSetItem: IndexSet) => {\n    const copy = indexSetItem;\n\n    copy.creation_date = DateTime.now().toISOString();\n\n    IndexSetsActions.create(copy).then(() => {\n      history.push(Routes.SYSTEM.INDICES.LIST);\n    });\n  };\n\n  const _isLoading = () => {\n    return !rotationStrategies || !retentionStrategies;\n  };\n\n  if (_isLoading()) {\n    return ;\n  }\n\n  const defaultIndexSet = {\n    ...indexSet,\n    rotation_strategy_class: rotationStrategies[0].type,\n    rotation_strategy: rotationStrategies[0].default_config,\n  };\n\n  return (\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 You can learn more about the index model in the{' '}\n \n \n \n \n \n \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 indexSet: IndexSetPropType,\n retentionStrategiesContext: PropTypes.shape({\n max_index_retention_period: PropTypes.string,\n }),\n};\n\nIndexSetCreationPage.defaultProps = {\n retentionStrategies: undefined,\n rotationStrategies: undefined,\n indexSet: {\n title: '',\n description: '',\n index_prefix: '',\n writable: true,\n can_be_default: true,\n shards: 4,\n replicas: 0,\n retention_strategy_class: 'org.graylog2.indexer.retention.strategies.DeletionRetentionStrategy',\n retention_strategy: {\n max_number_of_indices: 20,\n type: 'org.graylog2.indexer.retention.strategies.DeletionRetentionStrategyConfig',\n },\n index_analyzer: 'standard',\n index_optimization_max_num_segments: 1,\n index_optimization_disabled: false,\n field_type_refresh_interval: 5 * 1000, // 5 seconds\n },\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","/*\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 Reflux from 'reflux';\n\nimport type {\n IndicesConfigurationActionsType,\n IndicesConfigurationStoreState,\n RetentionStrategyResponse,\n RotationStrategyResponse,\n} from 'components/indices/Types';\nimport UserNotification from 'util/UserNotification';\nimport * as URLUtils from 'util/URLUtils';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const IndicesConfigurationActions = singletonActions(\n 'core.IndicesConfiguration',\n () => Reflux.createActions({\n loadRotationStrategies: { asyncResult: true },\n loadRetentionStrategies: { asyncResult: true },\n }),\n);\n\nconst urlPrefix = '/system/indices';\n\nexport const IndicesConfigurationStore = singletonStore(\n 'core.IndicesConfiguration',\n () => Reflux.createStore({\n listenables: [IndicesConfigurationActions],\n\n rotationStrategies: undefined,\n retentionStrategies: undefined,\n retentionStrategiesContext: undefined,\n\n getInitialState() {\n return {\n activeRotationConfig: undefined,\n rotationStrategies: undefined,\n activeRetentionConfig: undefined,\n retentionStrategies: undefined,\n retentionStrategiesContext: undefined,\n };\n },\n getState() {\n return {\n activeRotationConfig: this.activeRotationConfig,\n rotationStrategies: this.rotationStrategies,\n activeRetentionConfig: this.activeRetentionConfig,\n retentionStrategies: this.retentionStrategies,\n retentionStrategiesContext: this.retentionStrategiesContext,\n };\n },\n _url(path) {\n return URLUtils.qualifyUrl(urlPrefix + path);\n },\n\n loadRotationStrategies() {\n const promise = fetch('GET', this._url('/rotation/strategies'));\n\n promise.then(\n (response: RotationStrategyResponse) => {\n this.rotationStrategies = response.strategies;\n this.trigger(this.getState());\n },\n (error) => {\n UserNotification.error(`Fetching rotation strategies failed: ${error}`, 'Could not retrieve rotation strategies');\n },\n );\n\n IndicesConfigurationActions.loadRotationStrategies.promise(promise);\n },\n\n loadRetentionStrategies() {\n const promise = fetch('GET', this._url('/retention/strategies'));\n\n promise.then(\n (response: RetentionStrategyResponse) => {\n this.retentionStrategiesContext = response.context;\n this.retentionStrategies = response.strategies;\n this.trigger(this.getState());\n },\n (error) => {\n UserNotification.error(`Fetching retention strategies failed: ${error}`, 'Could not retrieve retention strategies');\n },\n );\n\n IndicesConfigurationActions.loadRetentionStrategies.promise(promise);\n },\n }),\n);\n"],"names":["IndexSetCreationPage","retentionStrategies","rotationStrategies","retentionStrategiesContext","indexSet","useEffect","IndicesConfigurationActions","defaultIndexSet","rotation_strategy_class","type","rotation_strategy","default_config","title","page","DocsHelper","text","to","Routes","bsStyle","className","md","create","cancelLink","onUpdate","indexSetItem","copy","creation_date","DateTime","toISOString","IndexSetsActions","then","history","propTypes","PropTypes","RetentionStrategyPropType","RotationStrategyPropType","IndexSetPropType","max_index_retention_period","defaultProps","undefined","description","index_prefix","writable","can_be_default","shards","replicas","retention_strategy_class","retention_strategy","max_number_of_indices","index_analyzer","index_optimization_max_num_segments","index_optimization_disabled","field_type_refresh_interval","connect","indexSets","IndexSetsStore","indicesConfigurations","IndicesConfigurationStore","singletonActions","Reflux","loadRotationStrategies","asyncResult","loadRetentionStrategies","singletonStore","listenables","getInitialState","activeRotationConfig","activeRetentionConfig","getState","this","_url","path","URLUtils","promise","fetch","response","strategies","trigger","error","UserNotification","context"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy