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

web-interface.assets.6e61897c-112.472622149827c1587209.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/pages/ShowMetricsPage.jsx"],"names":["NodesStore","StoreProvider","getStore","MetricsStore","MetricsActions","ActionsProvider","getActions","ShowMetricsPage","createReactClass","displayName","propTypes","location","PropTypes","object","isRequired","params","mixins","Reflux","connect","listenTo","_getMetrics","names","render","this","state","nodes","metricsNames","nodeId","props","nodeIDs","Object","keys","filter","nodeID","is_master","metricsErrors","node","title","short_node_id","hostname","namespace","error","undefined","query","length","withParams","withLocation"],"mappings":"4GAAA,+MA4BMA,EAAaC,IAAcC,SAAS,SACpCC,EAAeF,IAAcC,SAAS,WACtCE,EAAiBC,IAAgBC,WAAW,WAE5CC,EAAkBC,IAAiB,CACvCC,YAAa,kBAEbC,UAAW,CACTC,SAAUC,IAAUC,OAAOC,WAC3BC,OAAQH,IAAUC,OAAOC,YAG3BE,OAAQ,CAACC,IAAOC,QAAQlB,GAAaiB,IAAOC,QAAQf,GAAec,IAAOE,SAASnB,EAAY,gBAE/FoB,YAVuC,WAWrChB,EAAeiB,SAGjBC,OAduC,WAc9B,WACP,IAAKC,KAAKC,MAAMC,QAAUF,KAAKC,MAAME,aACnC,OAAO,kBAAC,KAAD,MAFF,IAKDC,EAAWJ,KAAKK,MAAMb,OAAtBY,OAGN,GAAe,WAAXA,EAAqB,CACvB,IAAME,EAAUC,OAAOC,KAAKR,KAAKC,MAAMC,OAGvCE,EAFoBE,EAAQG,QAAO,SAACC,GAAD,OAAY,EAAKT,MAAMC,MAAMQ,GAAQC,aAEnD,IAAML,EAAQ,GAZ9B,MAeiCN,KAAKC,MAArCE,EAfD,EAeCA,aAAcS,EAff,EAeeA,cAEhBC,EAAOb,KAAKC,MAAMC,MAAME,GACxBU,EAAQ,iDAAuBD,EAAKE,cAA5B,MAA8CF,EAAKG,UACzDC,EAAcrC,EAAdqC,UACFnB,EAAQK,EAAaC,GACrBc,EAAQN,EAAgBA,EAAcR,QAAUe,EAC9CV,EAAWT,KAAKK,MAAMjB,SAASgC,MAA/BX,OAER,OACE,kBAAC,IAAD,CAAeK,MAAK,0BAAqBD,EAAKE,cAA1B,cAA6CF,EAAKG,WACpE,8BACE,kBAAC,IAAD,CAAYF,MAAOA,GACjB,iLAIA,oEAA0ChB,GAAS,IAAIuB,OAAvD,cAGF,kBAAC,IAAD,CAAkBvB,MAAOA,EAAOmB,UAAWA,EAAWb,OAAQA,EAAQK,OAAQA,EAAQS,MAAOA,SAOxFI,sBAAWC,YAAavC","file":"6e61897c-112.472622149827c1587209.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 StoreProvider from 'injection/StoreProvider';\nimport ActionsProvider from 'injection/ActionsProvider';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { MetricsComponent } from 'components/metrics';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\n\nconst NodesStore = StoreProvider.getStore('Nodes');\nconst MetricsStore = StoreProvider.getStore('Metrics');\nconst MetricsActions = ActionsProvider.getActions('Metrics');\n\nconst ShowMetricsPage = createReactClass({\n  displayName: 'ShowMetricsPage',\n\n  propTypes: {\n    location: PropTypes.object.isRequired,\n    params: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(NodesStore), Reflux.connect(MetricsStore), Reflux.listenTo(NodesStore, '_getMetrics')],\n\n  _getMetrics() {\n    MetricsActions.names();\n  },\n\n  render() {\n    if (!this.state.nodes || !this.state.metricsNames) {\n      return ;\n    }\n\n    let { nodeId } = this.props.params;\n\n    // \"master\" node ID is a placeholder for master node, get first master node ID\n    if (nodeId === 'master') {\n      const nodeIDs = Object.keys(this.state.nodes);\n      const masterNodes = nodeIDs.filter((nodeID) => this.state.nodes[nodeID].is_master);\n\n      nodeId = masterNodes[0] || nodeIDs[0];\n    }\n\n    const { metricsNames, metricsErrors } = this.state;\n\n    const node = this.state.nodes[nodeId];\n    const title = Metrics of node {node.short_node_id} / {node.hostname};\n    const { namespace } = MetricsStore;\n    const names = metricsNames[nodeId];\n    const error = metricsErrors ? metricsErrors[nodeId] : undefined;\n    const { filter } = this.props.location.query;\n\n    return (\n      \n        \n          \n            \n              All Graylog nodes provide a set of internal metrics for diagnosis, debugging and monitoring. Note that you can access\n              all metrics via JMX, too.\n            \n            This node is reporting a total of {(names || []).length} metrics.\n          \n\n          \n        \n      \n    );\n  },\n});\n\nexport default withParams(withLocation(ShowMetricsPage));\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy