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

web-interface.assets.57e33c6c-109.11b9f72925818240e61d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"sources":["webpack:///./src/pages/ProcessBufferDumpPage.jsx"],"names":["NodesStore","StoreProvider","getStore","CurrentUserStore","ClusterOverviewStore","ProcessBufferDumpPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connect","connectFilter","state","nodes","this","props","nodeId","componentDidMount","processbufferDump","then","setState","_isLoading","node","render","title","short_node_id","hostname","DateTime","now","toString","Formats","COMPLETE","content","className","JSON","stringify","md","withParams"],"mappings":"8GAAA,+LA2BMA,EAAaC,IAAcC,SAAS,SACpCC,EAAmBF,IAAcC,SAAS,eAC1CE,EAAuBH,IAAcC,SAAS,mBAMpD,IAAMG,EAAwBC,IAAiB,CAC7CC,YAAa,wBAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CAACC,IAAOC,QAAQZ,GAAmBW,IAAOE,cAAchB,EAAY,QAX9E,SAAoBiB,GAClB,OAAOA,EAAMC,MAAQD,EAAMC,MAAMC,KAAKC,MAAMX,OAAOY,QAAUJ,EAAMC,UAYnEI,kBAT6C,WASzB,WACVb,EAAWU,KAAKC,MAAhBX,OAERL,EAAqBmB,kBAAkBd,EAAOY,QAC3CG,MAAK,SAACD,GAAD,OAAuB,EAAKE,SAAS,CAAEF,kBAAmBA,QAGpEG,WAhB6C,WAiB3C,OAAQP,KAAKF,MAAMU,MAGrBC,OApB6C,WAqB3C,GAAIT,KAAKO,aACP,OAAO,kBAAC,KAAD,MAFF,MAK6BP,KAAKF,MAAjCU,EALD,EAKCA,KAAMJ,EALP,EAKOA,kBAERM,EACJ,6DAC+BF,EAAKG,cADpC,MACsDH,EAAKI,SAD3D,IAGE,2CAAiBC,IAASC,MAAMC,SAASF,IAASG,QAAQC,YAIxDC,EAAUd,EAAoB,yBAAKe,UAAU,qBAAqBC,KAAKC,UAAUjB,EAAmB,KAAM,IAAY,kBAAC,KAAD,MAE5H,OACE,kBAAC,IAAD,CAAeM,MAAK,sCAAiCF,EAAKG,cAAtC,cAAyDH,EAAKI,WAChF,6BACE,kBAAC,IAAD,CAAYF,MAAOA,GACjB,gCAEF,kBAAC,IAAD,CAAKS,UAAU,WACb,kBAAC,IAAD,CAAKG,GAAI,IACNJ,SASAK,sBAAWrC","file":"57e33c6c-109.11b9f72925818240e61d.js","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 PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { Row, Col } from 'components/graylog';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport StoreProvider from 'injection/StoreProvider';\nimport DateTime from 'logic/datetimes/DateTime';\nimport withParams from 'routing/withParams';\n\nconst NodesStore = StoreProvider.getStore('Nodes');\nconst CurrentUserStore = StoreProvider.getStore('CurrentUser');\nconst ClusterOverviewStore = StoreProvider.getStore('ClusterOverview');\n\nfunction nodeFilter(state) {\n  return state.nodes ? state.nodes[this.props.params.nodeId] : state.nodes;\n}\n\nconst ProcessBufferDumpPage = createReactClass({\n  displayName: 'ProcessBufferDumpPage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(CurrentUserStore), Reflux.connectFilter(NodesStore, 'node', nodeFilter)],\n\n  componentDidMount() {\n    const { params } = this.props;\n\n    ClusterOverviewStore.processbufferDump(params.nodeId)\n      .then((processbufferDump) => this.setState({ processbufferDump: processbufferDump }));\n  },\n\n  _isLoading() {\n    return !this.state.node;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { node, processbufferDump } = this.state;\n\n    const title = (\n      \n        Process-buffer dump of node {node.short_node_id} / {node.hostname}\n         \n        Taken at {DateTime.now().toString(DateTime.Formats.COMPLETE)}\n      \n    );\n\n    const content = processbufferDump ? 
{JSON.stringify(processbufferDump, null, 2)}
: ;\n\n return (\n \n
\n \n \n \n \n \n {content}\n \n \n
\n
\n );\n },\n});\n\nexport default withParams(ProcessBufferDumpPage);\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy