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

web-interface.assets.b6fe2bb5-9245.04d37ae4e0f343e0bda2.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-9245.04d37ae4e0f343e0bda2.js","mappings":"0WA4BMA,EAAkBC,GAAAA,CAAiB,CACvCC,YAAa,kBAEbC,UAAW,CACTC,SAAUC,IAAAA,OAAAA,WACVC,OAAQD,IAAAA,OAAAA,YAGVE,OAAQ,CAACC,IAAAA,QAAeC,EAAAA,GAAaD,IAAAA,QAAeE,EAAAA,GAAeF,IAAAA,SAAgBC,EAAAA,EAAY,gBAE/FE,YAVuC,WAWrCC,EAAAA,EAAAA,SAGFC,OAduC,WAc9B,WACP,IAAKC,KAAKC,MAAMC,QAAUF,KAAKC,MAAME,aACnC,OAAO,gBAAC,KAAD,MAGT,IAAMC,EAAWJ,KAAKK,MAAMb,OAAtBY,OAGN,GAAe,WAAXA,GAAkC,WAAXA,EAAqB,CAC9C,IAAME,EAAUC,OAAOC,KAAKR,KAAKC,MAAMC,OAGvCE,EAFoBE,EAAQG,QAAO,SAACC,GAAD,OAAY,EAAKT,MAAMC,MAAMQ,GAAQC,aAEnD,IAAML,EAAQ,GAGrC,MAAwCN,KAAKC,MAArCE,EAAR,EAAQA,aAAcS,EAAtB,EAAsBA,cAEhBC,EAAOb,KAAKC,MAAMC,MAAME,GACxBU,EAAQ,+CAAuBD,EAAKE,cAA5B,MAA8CF,EAAKG,UACzDC,EAAcrB,EAAAA,EAAAA,UAChBsB,EAAQf,EAAaC,GACrBe,EAAQP,EAAgBA,EAAcR,QAAUgB,EAC9CX,EAAWT,KAAKK,MAAMf,SAAS+B,MAA/BZ,OAER,OACE,gBAAC,KAAD,CAAeK,MAAK,0BAAqBD,EAAKE,cAA1B,cAA6CF,EAAKG,WACpE,4BACE,gBAAC,KAAD,CAAYF,MAAOA,GACjB,+KAIA,kEAA0CI,GAAS,IAAII,OAAvD,cAGF,gBAAC,KAAD,CAAkBJ,MAAOA,EAAOD,UAAWA,EAAWb,OAAQA,EAAQK,OAAQA,EAAQU,MAAOA,SAOvG,SAAeI,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,GAAatC","sources":["webpack://graylog-web-interface/./src/pages/ShowMetricsPage.jsx"],"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 { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { MetricsComponent } from 'components/metrics';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\nimport { MetricsActions, MetricsStore } from 'stores/metrics/MetricsStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\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    // \"leader\" node ID is a placeholder for leader node, get first leader node ID\n    if (nodeId === 'leader' || nodeId === 'master') { // `master` is deprecated but we still support it here\n      const nodeIDs = Object.keys(this.state.nodes);\n      const leaderNodes = nodeIDs.filter((nodeID) => this.state.nodes[nodeID].is_leader);\n\n      nodeId = leaderNodes[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"],"names":["ShowMetricsPage","createReactClass","displayName","propTypes","location","PropTypes","params","mixins","Reflux","NodesStore","MetricsStore","_getMetrics","MetricsActions","render","this","state","nodes","metricsNames","nodeId","props","nodeIDs","Object","keys","filter","nodeID","is_leader","metricsErrors","node","title","short_node_id","hostname","namespace","names","error","undefined","query","length","withParams","withLocation"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy