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

web-interface.assets.325e2d4b-9062.c9754b1a4847dc15d4f3.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"325e2d4b-9062.c9754b1a4847dc15d4f3.js","mappings":"wZAyCA,MAAMA,EAAuB,IAA8F,IAA7F,oBAAEC,EAAF,mBAAuBC,EAAvB,2BAA2CC,EAA3C,SAAuEC,GAAsB,GACzHC,EAAAA,EAAAA,YAAU,KACRC,EAAAA,EAAAA,yBACAA,EAAAA,EAAAA,yBAAA,GACC,IAgBH,IAHUJ,IAAuBD,EAI/B,OAAO,gBAAC,KAAD,MAGT,MAAMM,EAAkB,IACnBH,EACHI,wBAAyBN,EAAmB,GAAGO,KAC/CC,kBAAmBR,EAAmB,GAAGS,gBAG3C,OACE,gBAAC,KAAD,CAAeC,MAAM,oBACnB,2BACE,gBAAC,KAAD,CAAYA,MAAM,mBACNC,kBAAmB,CACjBD,MAAO,4BACPE,KAAMC,EAAAA,EAAAA,MAAAA,aAERC,WACE,gBAAC,IAAD,CAAeC,GAAIC,EAAAA,GAAAA,OAAAA,QAAAA,MACjB,gBAAC,KAAD,CAAQC,QAAQ,QAAhB,yBAGd,yKAMF,gBAAC,KAAD,CAAKC,UAAU,WACb,gBAAC,KAAD,CAAKC,GAAI,IACP,gBAAC,KAAD,CAA2BjB,SAAUG,EACVJ,2BAA4BA,EAC5BD,mBAAoBA,EACpBD,oBAAqBA,EACrBqB,iBAAiB,mBACjBC,kBAAkB,wBAClBC,QAAM,EACNC,WAAYP,EAAAA,GAAAA,OAAAA,QAAAA,KACZQ,SArDTC,IAC1B,MAAMC,EAAOD,EAIb,OAFAC,EAAKC,eAAgBC,EAAAA,EAAAA,IAAa,IAAIC,KAAQ,YAEvCC,EAAAA,GAAAA,OAAwBJ,GAAMK,MAAK,KACxCC,EAAAA,EAAAA,KAAahB,EAAAA,GAAAA,OAAAA,QAAAA,KAAb,GADF,OAmBF,EAqCFlB,EAA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ACzBoE,sBAAuBE,KAAKF,sBAC5BrE,oBAAqBuE,KAAKvE,oBAC1BE,2BAA4BqE,KAAKrE,2BAEpC,EACDsE,KAAK3D,GACI4D,EAAAA,GA9BK,kBA8B2B5D,GAGzCiD,yBACE,MAAMY,GAAUC,EAAAA,EAAAA,IAAM,MAAOJ,KAAKC,KAAK,yBAEvCE,EAAQ1C,MACL4C,IACCL,KAAKtE,mBAAqB2E,EAASC,WACnCN,KAAKO,QAAQP,KAAKD,WAAlB,IAEDS,IACCC,EAAAA,EAAAA,MAAwB,wCAAuCD,IAAS,yCAAxE,IAIJ1E,EAA4ByD,uBAAuBY,QAAQA,EAC5D,EAEDV,0BACE,MAAMU,GAAUC,EAAAA,EAAAA,IAAM,MAAOJ,KAAKC,KAAK,0BAEvCE,EAAQ1C,MACL4C,IACCL,KAAKrE,2BAA6B0E,EAASK,QAC3CV,KAAKvE,oBAAsB4E,EAASC,WACpCN,KAAKO,QAAQP,KAAKD,WAAlB,IAEDS,IACCC,EAAAA,EAAAA,MAAwB,yCAAwCD,IAAS,0CAAzE,IAIJ1E,EAA4B2D,wBAAwBU,QAAQA,EAC7D,K","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 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';\nimport { adjustFormat } from 'util/DateTime';\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 = adjustFormat(new Date(), 'internal');\n\n    return 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 \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 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","documentationLink","path","DocsHelper","topActions","to","Routes","bsStyle","className","md","submitButtonText","submitLaodingText","create","cancelLink","onUpdate","indexSetItem","copy","creation_date","adjustFormat","Date","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","URLUtils","promise","fetch","response","strategies","trigger","error","UserNotification","context"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy