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

web-interface.assets.bb8c8232-171.2e0dcb23e39639dcc36f.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-171.2e0dcb23e39639dcc36f.js","mappings":"iXA6BA,SAASA,EAAWC,EAAO,CACzB,OAAOA,EAAM,MAAQA,EAAM,MAAM,KAAK,MAAM,OAAO,MAAM,EAAIA,EAAM,KACrE,CAEA,MAAMC,EAAwB,IAAiB,CAE7C,YAAa,wBAGb,UAAW,CACT,OAAQ,WAAiB,UAC3B,EAEA,OAAQ,CAAC,YAAe,GAAgB,EAAG,kBAAqB,IAAY,OAAQF,CAAU,CAAC,EAE/F,mBAAoB,CAClB,KAAM,CAAE,OAAAG,CAAO,EAAI,KAAK,MAExB,IAAqB,kBAAkBA,EAAO,MAAM,EACjD,KAAMC,GAAsB,KAAK,SAAS,CAAE,kBAAAA,CAAqC,CAAC,CAAC,CACxF,EAEA,YAAa,CACX,MAAO,CAAC,KAAK,MAAM,IACrB,EAEA,QAAS,CACP,GAAI,KAAK,WAAW,EAClB,OAAO,gBAAC,KAAO,IAAC,EAGlB,KAAM,CAAE,KAAAC,EAAM,kBAAAD,CAAkB,EAAI,KAAK,MAEnCE,EACJ,gBAAC,YAAK,+BACyBD,EAAK,cAAc,MAAIA,EAAK,SAAS,OAElE,gBAAC,aAAM,YAAS,gBAAC,KAAS,CAAC,SAAU,IAAI,IAAK,CAAG,EAAE,GAAC,CACtD,EAGIE,EAAUH,EAAoB,gBAAC,OAAI,UAAU,qBAAqB,KAAK,UAAUA,EAAmB,KAAM,CAAC,CAAE,EAAS,gBAAC,KAAO,IAAC,EAErI,OACE,gBAAC,KAAa,CAAC,MAAO,+BAA+BC,EAAK,aAAa,MAAMA,EAAK,QAAQ,IACxF,gBAAC,WACC,gBAAC,KAAU,CAAC,MAAAC,CAAA,CAAc,EAC1B,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GA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AAO,MAAM,OAAQ,KAAoB,GAAG,KAAK,UAAUA,CAAM,CAAC,SAAS,CAAC,EACzE,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,+CAA+CA,CAAM,GAAG,CACnF,EACCD,GAAU,CACT,IAAiB,MAAM,mCAAmCC,CAAM,aAAaD,CAAK,GAChF,gDAAgDC,CAAM,GAAG,CAC7D,CACF,CACJ,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/pages/ProcessBufferDumpPage.jsx","webpack://graylog-web-interface/./src/routing/withParams.tsx","webpack://graylog-web-interface/./src/stores/cluster/ClusterOverviewStore.js","webpack://graylog-web-interface/./src/stores/load-balancer/SystemLoadBalancerStore.js","webpack://graylog-web-interface/./src/stores/system-processing/SystemProcessingStore.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';\n// eslint-disable-next-line no-restricted-imports\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { Row, Col } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner, Timestamp } from 'components/common';\nimport withParams from 'routing/withParams';\nimport { ClusterOverviewStore } from 'stores/cluster/ClusterOverviewStore';\nimport { CurrentUserStore } from 'stores/users/CurrentUserStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\n\nfunction nodeFilter(state) {\n  return state.nodes ? state.nodes[this.props.params.nodeId] : state.nodes;\n}\n\nconst ProcessBufferDumpPage = createReactClass({\n  // eslint-disable-next-line react/no-unused-class-component-methods\n  displayName: 'ProcessBufferDumpPage',\n\n  // eslint-disable-next-line react/no-unused-class-component-methods\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  \n      \n    );\n\n    const content = processbufferDump ? 
{JSON.stringify(processbufferDump, null, 2)}
: ;\n\n return (\n \n
\n \n \n \n {content}\n \n \n
\n
\n );\n },\n});\n\nexport default withParams(ProcessBufferDumpPage);\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 * as React from 'react';\nimport { useParams } from 'react-router-dom';\nimport type { Subtract } from 'utility-types';\n\ntype ParamsContext = {\n params: {\n [key: string]: string | null | undefined;\n };\n};\n\nconst withParams = (Component: React.ComponentType): React.ComponentType> => (props) => {\n const params = useParams();\n\n return ;\n};\n\nexport default withParams;\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch, { fetchPeriodically, fetchStreamingPlainText } from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { SystemLoadBalancerStore } from 'stores/load-balancer/SystemLoadBalancerStore';\nimport { SystemProcessingStore } from 'stores/system-processing/SystemProcessingStore';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const ClusterOverviewStore = singletonStore(\n 'core.ClusterOverview',\n () => Reflux.createStore({\n sourceUrl: '/cluster',\n clusterOverview: undefined,\n\n init() {\n this.cluster();\n this.listenTo(SystemProcessingStore, this.cluster);\n this.listenTo(SystemLoadBalancerStore, this.cluster);\n this.listenTo(NodesStore, this.cluster);\n },\n\n getInitialState() {\n return { clusterOverview: this.clusterOverview };\n },\n\n cluster() {\n const promise = fetchPeriodically('GET', URLUtils.qualifyUrl(this.sourceUrl));\n\n promise.then(\n (response) => {\n this.clusterOverview = response;\n this.trigger({ clusterOverview: this.clusterOverview });\n },\n (error) => UserNotification.error(`Getting cluster overview failed: ${error}`, 'Could not get cluster overview'),\n );\n\n return promise;\n },\n\n threadDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/threaddump`))\n .then(\n (response) => response.threaddump,\n (error) => UserNotification.error(`Getting thread dump for node '${nodeId}' failed: ${error}`, 'Could not get thread dump'),\n );\n\n return promise;\n },\n\n processbufferDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/processbufferdump`))\n .then(\n (response) => response.processbuffer_dump,\n (error) => UserNotification.error(`Getting process buffer dump for node '${nodeId}' failed: ${error}`, 'Could not get process buffer dump'),\n );\n\n return promise;\n },\n\n systemLogs(nodeId, limit) {\n const promise = fetchStreamingPlainText('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/system/loggers/messages/recent/${nodeId}?limit=${limit}`))\n .then(\n (response) => response,\n (error) => UserNotification.error(`Getting system log messages for node '${nodeId}' failed: ${error}`, 'Could not get system log messages'),\n );\n\n return promise;\n },\n\n jvm(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/jvm`));\n\n promise.catch((error) => UserNotification.error(`Getting JVM information for node '${nodeId}' failed: ${error}`, 'Could not get JVM information'));\n\n return promise;\n },\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemLoadBalancerStore = singletonStore(\n 'core.SystemLoadBalancer',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/lbstatus`,\n\n override(nodeId, status) {\n return fetch('PUT', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/override/${status}`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Load balancer status successfully changed do '${status}' in node '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Changing load balancer status in '${nodeId}' failed: ${error}`,\n `Could not change load balancer status to '${status}' in node '${nodeId}'`);\n },\n );\n },\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\n\nimport { singletonStore } from '../../logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemProcessingStore = singletonStore(\n 'core.SystemProcessing',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/processing`,\n\n pause(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/pause`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing paused successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Pausing message processing in '${nodeId}' failed: ${error}`,\n `Could not pause message processing in node '${nodeId}'`);\n },\n );\n },\n\n resume(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/resume`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing resumed successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Resuming message processing in '${nodeId}' failed: ${error}`,\n `Could not resume message processing in node '${nodeId}'`);\n },\n );\n },\n }),\n);\n"],"names":["nodeFilter","state","ProcessBufferDumpPage","params","processbufferDump","node","title","content","Component","props","ClusterOverviewStore","promise","response","error","nodeId","limit","SystemLoadBalancerStore","status","SystemProcessingStore"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy