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

web-interface.assets.b6fe2bb5-866.0d9e115e88ac14cfb4f2.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"b6fe2bb5-866.0d9e115e88ac14cfb4f2.js","mappings":"yaA2CA,QArBMA,WACJ,c,4FAAc,SACZC,KAAKC,WAAa,K,+CAOpB,SAASC,EAAcC,GAAS,WAC1BH,KAAKC,aAITD,KAAKC,WAAaG,YAAW,WAC3B,EAAKH,WAAa,KAClBC,MACCC,GAvBiB,W,gFAMlBJ,G,6JCAOM,GAAwBC,EAAAA,EAAAA,IACnC,uBACA,kBAAMC,IAAAA,cAAqB,CACzBC,WAAY,CAAEC,aAAa,QAIlBC,GAAsBC,EAAAA,EAAAA,IACjC,uBACA,kBAAMJ,IAAAA,YAAmB,CACvBK,YAAaP,EACbQ,aAASC,EAETC,gBAJuB,WAKrB,MAAO,CAAEF,QAASb,KAAKa,UAGzBL,WARuB,WAQV,WACLQ,GAAUC,EAAAA,EAAAA,IAAM,MAAOC,EAAAA,GAAoB,4BAMjD,OAJAF,EAAQG,MAAK,SAACC,GACZ,EAAKC,QAAQ,CAAER,QAASO,OAGnBJ,Q,kECtBAM,EAAoB,SAACT,GAChC,IAGMU,EAHMC,GAAAA,CAAYC,IAAAA,IAAMZ,GAAS,SAACa,EAAOC,GAAR,MAAiB,CAAEC,GAAID,EAAKE,MAAOH,OACjDI,WAAU,SAACC,GAAD,OAAOC,GAAAA,CAAOD,EAAEH,IAAIK,OAAO,iBAE/BC,QAAQC,WAAU,SAACJ,GAAD,OAAOA,EAAEF,SACpDO,EAAIX,IAAAA,QAAUF,EAAUc,OAAO,SAACC,GAAD,OAAWN,IAAAA,IAAWM,EAAMX,IAAK,cAAcY,iBAEpF,OAAOd,IAAAA,UAAYW,GAAG,SAACI,GAAD,OAASA,EAAId,U,0XCHrC,IAAMe,EAAe,SAAC,GAA+C,IAA7CC,EAA6C,EAA7CA,MAAO7B,EAAs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C,KAAD,CAAYA,MAAM,0BACf,KAED,oKAEkC,gBAAC6F,EAAD,qBAFlC,MAMF,gBAAC,IAAD,CAAwBlG,OAAO,WAC7B,gBAAC,EAAD,OAEF,gBAACyG,EAAA,EAAD,KACE,gBAAC,KAAD,CAAKtE,UAAU,WACb,gBAAC,KAAD,CAAKqC,GAAI,GACP,gBAAC+B,EAAD,2BACA,gBAACJ,EAAD,KACE,oVAMA,gBAACK,EAAD,CAAsB9B,KAAK,qDAAqDzC,UAAWA,GAA3F,iBAKJ,gBAAC,KAAD,CAAKuC,GAAI,GACP,gBAAC+B,EAAD,yBACA,gBAACJ,EAAD,KACE,0TAMA,gBAACK,EAAD,CAAsB9B,KAAK,mDAAmDgC,eAAe,oBAAoBzE,UAAWA,GAA5H,uB,iFCxGZ0E,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,oEAAqE,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wDAAwD,MAAQ,GAAG,SAAW,iCAAiC,eAAiB,CAAC,0EAA0E,WAAa,MAEjWH,EAAwBI,OAAS,CAChC,kBAAqB,wBAEtB","sources":["webpack://graylog-web-interface/./src/util/EventHandlersThrottler.js","webpack://graylog-web-interface/./src/stores/cluster/ClusterTrafficStore.js","webpack://graylog-web-interface/./src/util/TrafficUtils.ts","webpack://graylog-web-interface/./src/components/cluster/TrafficGraph.tsx","webpack://graylog-web-interface/./src/components/cluster/GraylogClusterOverview.tsx","webpack://graylog-web-interface/./src/components/enterprise/ProductLink.tsx","webpack://graylog-web-interface/./src/components/enterprise/PluginList.css?bb5c","webpack://graylog-web-interface/./src/components/enterprise/PluginList.jsx","webpack://graylog-web-interface/./src/pages/EnterprisePage.jsx","webpack://graylog-web-interface/./src/components/enterprise/PluginList.css"],"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 */\nconst DEFAULT_TIMEOUT = 1000 / 10; // 10 fps\n\n/**\n * Use when an event handler should be called after a timeout, instead of every time the event is triggered.\n * This is specially useful for handling window resize callbacks that may be expensive.\n */\nclass EventHandlersThrottler {\n  constructor() {\n    this.eventMutex = null;\n  }\n\n  /**\n   * @param eventHandler Callback actually handling the event\n   * @param timeout (optional) Time to wait before calling the callback\n   */\n  throttle(eventHandler, timeout) {\n    if (this.eventMutex) {\n      return;\n    }\n\n    this.eventMutex = setTimeout(() => {\n      this.eventMutex = null;\n      eventHandler();\n    }, timeout || DEFAULT_TIMEOUT);\n  }\n}\n\nexport default EventHandlersThrottler;\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 fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const ClusterTrafficActions = singletonActions(\n  'core.ClusterTraffic',\n  () => Reflux.createActions({\n    getTraffic: { asyncResult: true },\n  }),\n);\n\nexport const ClusterTrafficStore = singletonStore(\n  'core.ClusterTraffic',\n  () => Reflux.createStore({\n    listenables: ClusterTrafficActions,\n    traffic: undefined,\n\n    getInitialState() {\n      return { traffic: this.traffic };\n    },\n\n    getTraffic() {\n      const promise = fetch('GET', URLUtils.qualifyUrl('/system/cluster/traffic'));\n\n      promise.then((response) => {\n        this.trigger({ traffic: response });\n      });\n\n      return promise;\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 _ from 'lodash';\nimport moment from 'moment';\nimport crossfilter from 'crossfilter';\n\ntype Traffic = {\n   [key: string]: number,\n}\n\nexport const formatTrafficData = (traffic: Traffic) => {\n  const ndx = crossfilter(_.map(traffic, (value, key) => ({ ts: key, bytes: value })));\n  const dailyTraffic = ndx.dimension((d) => moment(d.ts).format('YYYY-MM-DD'));\n\n  const dailySums = dailyTraffic.group().reduceSum((d) => d.bytes);\n  const t = _.mapKeys(dailySums.all(), (entry) => moment.utc(entry.key, 'YYYY-MM-DD').toISOString());\n\n  return _.mapValues(t, (val) => val.value);\n};\n\nexport default {\n  formatTrafficData,\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 React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Spinner } from 'components/common';\nimport GenericPlot from 'views/components/visualizations/GenericPlot';\n\ntype Props = {\n  traffic: { [key: string]: number },\n  width: number,\n  layoutExtension?: {},\n};\n\nconst TrafficGraph = ({ width, traffic, layoutExtension }: Props) => {\n  if (!traffic) {\n    return ;\n  }\n\n  const chartData = [{\n    type: 'bar',\n    x: Object.keys(traffic),\n    y: Object.values(traffic),\n  }];\n  const layout = {\n    showlegend: false,\n    margin: {\n      l: 60,\n    },\n    xaxis: {\n      type: 'date',\n      title: {\n        text: 'Time',\n      },\n    },\n    hovermode: 'x',\n    hoverlabel: {\n      namelength: -1,\n    },\n    yaxis: {\n      title: {\n        text: 'Bytes',\n      },\n      rangemode: 'tozero',\n      hoverformat: '.4s',\n      tickformat: 's',\n    },\n    ...layoutExtension,\n  };\n\n  return (\n    
\n \n
\n );\n};\n\nTrafficGraph.propTypes = {\n traffic: PropTypes.object.isRequired, // traffic is: {\"2017-11-15T15:00:00.000Z\": 68287229, ...}\n width: PropTypes.number.isRequired,\n layoutExtension: PropTypes.object,\n};\n\nTrafficGraph.defaultProps = {\n layoutExtension: {},\n};\n\nexport default TrafficGraph;\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 */\n/* eslint-disable react/no-find-dom-node */\n\nimport * as React from 'react';\nimport { useState, useEffect, useRef, useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { reduce } from 'lodash';\nimport styled, { css } from 'styled-components';\nimport type { DefaultTheme } from 'styled-components';\nimport { PluginStore } from 'graylog-web-plugin/plugin';\n\nimport EventHandlersThrottler from 'util/EventHandlersThrottler';\nimport NumberUtils from 'util/NumberUtils';\nimport { useStore } from 'stores/connect';\nimport { Col, Row } from 'components/bootstrap';\nimport { Spinner } from 'components/common';\nimport CurrentUserContext from 'contexts/CurrentUserContext';\nimport { ClusterTrafficActions, ClusterTrafficStore } from 'stores/cluster/ClusterTrafficStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { formatTrafficData } from 'util/TrafficUtils';\nimport { isPermitted } from 'util/PermissionsMixin';\n\nimport TrafficGraph from './TrafficGraph';\n\nconst StyledDl = styled.dl`\n margin-bottom: 0;\n`;\nconst StyledH2 = styled.h2(({ theme }: { theme: DefaultTheme }) => css`\n margin-bottom: ${theme.spacings.sm};\n`);\nconst StyledH3 = styled.h3(({ theme }: { theme: DefaultTheme }) => css`\n margin-bottom: ${theme.spacings.sm};\n`);\n\nconst Header = () => Graylog cluster;\n\nconst ClusterInfo = () => {\n const nodes = useStore(NodesStore);\n\n if (!nodes) {\n return ;\n }\n\n const { clusterId, nodeCount } = nodes;\n\n return (\n \n
Cluster ID:
\n
{clusterId || 'Not available'}
\n
Number of nodes:
\n
{nodeCount}
\n
\n );\n};\n\nconst GraylogClusterTrafficGraph = () => {\n const { traffic } = useStore(ClusterTrafficStore);\n const [graphWidth, setGraphWidth] = useState(600);\n const eventThrottler = useRef(new EventHandlersThrottler());\n const containerRef = useRef(null);\n const licensePlugin = PluginStore.exports('license');\n const currentUser = useContext(CurrentUserContext);\n\n useEffect(() => {\n ClusterTrafficActions.getTraffic();\n }, []);\n\n useEffect(() => {\n const _resizeGraphs = () => {\n const { clientWidth } = containerRef.current;\n\n setGraphWidth(clientWidth);\n };\n\n const _onResize = () => {\n eventThrottler.current.throttle(() => _resizeGraphs());\n };\n\n window.addEventListener('resize', _onResize);\n\n if (containerRef.current) {\n _resizeGraphs();\n }\n\n return () => {\n window.removeEventListener('resize', _onResize);\n };\n }, []);\n\n const TrafficGraphComponent = (isPermitted(currentUser.permissions, ['licenses:read']) && licensePlugin[0]?.EnterpriseTrafficGraph) || TrafficGraph;\n let sumOutput = null;\n let trafficGraph = ;\n\n if (traffic) {\n const bytesOut = reduce(traffic.output, (result, value) => result + value);\n\n sumOutput = Last 30 days: {NumberUtils.formatBytes(bytesOut)};\n\n const unixTraffic = formatTrafficData(traffic.output);\n\n trafficGraph = (\n \n );\n }\n\n return (\n <>\n Outgoing traffic {sumOutput}\n {trafficGraph}\n \n );\n};\n\ntype Props = {\n layout?: 'default' | 'compact',\n children: React.ReactNode\n}\n\nconst GraylogClusterOverview = ({ layout, children }: Props) => {\n if (layout === 'compact') {\n return (\n \n \n
\n \n \n \n
\n {children}\n \n \n \n \n
\n \n \n );\n }\n\n return (\n \n \n
\n \n
\n {children}\n \n \n \n \n \n \n \n );\n};\n\nGraylogClusterOverview.propTypes = {\n layout: PropTypes.oneOf(['default', 'compact']),\n children: PropTypes.node,\n};\n\nGraylogClusterOverview.defaultProps = {\n layout: 'default',\n children: null,\n};\n\nexport default GraylogClusterOverview;\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 PropTypes from 'prop-types';\n\nimport { Button, ButtonToolbar } from 'components/bootstrap';\n\ntype Props = {\n children: React.ReactNode,\n href: string,\n clusterId: string,\n}\n\nconst ProductLink = ({ href, clusterId, children }: Props) => {\n let hrefWithParam = href;\n\n if (clusterId) {\n hrefWithParam = `${hrefWithParam}?cluster_id=${clusterId}`;\n }\n\n return (\n \n \n \n );\n};\n\nProductLink.propTypes = {\n children: PropTypes.node,\n href: PropTypes.string,\n clusterId: PropTypes.string,\n};\n\nProductLink.defaultProps = {\n children: null,\n href: '',\n clusterId: null,\n};\n\nexport default ProductLink;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./PluginList.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./PluginList.css\";\n export default content && content.locals ? content.locals : undefined;\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 React from 'react';\nimport createReactClass from 'create-react-class';\nimport { PluginStore } from 'graylog-web-plugin/plugin';\n\nimport { Icon } from 'components/common';\n\nimport style from './PluginList.css';\n\nconst PluginList = createReactClass({\n displayName: 'PluginList',\n\n ENTERPRISE_PLUGINS: {\n 'graylog-plugin-enterprise': 'Graylog Plugin Enterprise',\n },\n\n _formatPlugin(pluginName) {\n const plugin = PluginStore.get().filter((p) => p.metadata.name === pluginName)[0];\n\n return (\n
  • \n  \n {this.ENTERPRISE_PLUGINS[pluginName]} is {plugin ? 'installed' : 'not installed'}\n
  • \n );\n },\n\n render() {\n const enterprisePluginList = Object.keys(this.ENTERPRISE_PLUGINS).map((pluginName) => this._formatPlugin(pluginName));\n\n return (\n <>\n

    This is the status of Graylog Enterprise modules in this cluster:

    \n
      \n {enterprisePluginList}\n
    \n \n );\n },\n});\n\nexport default PluginList;\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 React from 'react';\nimport PropTypes from 'prop-types';\nimport styled, { css } from 'styled-components';\nimport { PluginStore } from 'graylog-web-plugin/plugin';\n\nimport { useStore } from 'stores/connect';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { Col, Row } from 'components/bootstrap';\nimport ProductLink from 'components/enterprise/ProductLink';\nimport { GraylogClusterOverview } from 'components/cluster';\nimport PluginList from 'components/enterprise/PluginList';\nimport HideOnCloud from 'util/conditional/HideOnCloud';\n\nconst EnterpriseProductLink = ({ children }) => {\n return (\n \n {children}\n \n );\n};\n\nEnterpriseProductLink.propTypes = {\n children: PropTypes.node,\n};\n\nEnterpriseProductLink.defaultProps = {\n children: null,\n};\n\nconst BiggerFontSize = styled.div(({ theme }) => css`\n font-size: ${theme.fonts.size.large};\n`);\n\nconst GraylogEnterpriseHeader = styled.h2`\n margin-bottom: 10px;\n`;\n\nconst EnterprisePage = () => {\n const nodes = useStore(NodesStore);\n const licensePlugin = PluginStore.exports('license');\n const ProductLinkComponent = licensePlugin[0]?.EnterpriseProductLink || ProductLink;\n\n if (!nodes) {\n return ;\n }\n\n const { clusterId } = nodes;\n\n return (\n \n
    \n \n {null}\n\n \n Graylog Enterprise adds commercial functionality to the Open Source Graylog core. You can learn more\n about Graylog Enterprise on the product page.\n \n \n\n \n \n \n \n \n \n Graylog Operations\n \n

    \n Designed to meet the needs of resource-constrained IT Operations and Software Engineering teams,\n Graylog Operations provides numerous productivity enhancements that will save you thousands of\n hours per year in collecting and analyzing log data to uncover the root cause of performance,\n outage, and error issues.\n

    \n \n Request now\n \n
    \n \n \n Graylog Security\n \n

    \n Extend Graylog Open’s capabilities for detecting, investigating, and responding to cybersecurity\n threats with security-specific dashboards and alerts, anomaly detection AI/ML engine,\n integrations with other security tools, SOAR capabilities, and numerous compliance reporting\n features.\n

    \n \n Request now\n \n
    \n \n
    \n
    \n
    \n
    \n );\n};\n\nexport default EnterprisePage;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".cjdTbV1r05BfMiQpw0HR {\\n margin-left: 0;\\n padding-left: 0;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/enterprise/PluginList.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,cAAc;EACd,eAAe;AACjB\",\"sourcesContent\":[\":local(.enterprisePlugins) {\\n margin-left: 0;\\n padding-left: 0;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"enterprisePlugins\": \"cjdTbV1r05BfMiQpw0HR\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["EventHandlersThrottler","this","eventMutex","eventHandler","timeout","setTimeout","ClusterTrafficActions","singletonActions","Reflux","getTraffic","asyncResult","ClusterTrafficStore","singletonStore","listenables","traffic","undefined","getInitialState","promise","fetch","URLUtils","then","response","trigger","formatTrafficData","dailySums","crossfilter","_","value","key","ts","bytes","dimension","d","moment","format","group","reduceSum","t","all","entry","toISOString","val","TrafficGraph","width","layoutExtension","chartData","type","x","Object","keys","y","values","layout","showlegend","margin","l","xaxis","title","text","hovermode","hoverlabel","namelength","yaxis","rangemode","hoverformat","tickformat","style","height","GenericPlot","propTypes","PropTypes","defaultProps","StyledDl","styled","StyledH2","theme","css","spacings","sm","StyledH3","Header","ClusterInfo","nodes","useStore","NodesStore","clusterId","nodeCount","className","GraylogClusterTrafficGraph","useState","graphWidth","setGraphWidth","eventThrottler","useRef","containerRef","licensePlugin","PluginStore","currentUser","useContext","CurrentUserContext","useEffect","_resizeGraphs","clientWidth","current","_onResize","throttle","window","addEventListener","removeEventListener","TrafficGraphComponent","isPermitted","permissions","EnterpriseTrafficGraph","sumOutput","trafficGraph","bytesOut","reduce","output","result","NumberUtils","unixTraffic","ref","GraylogClusterOverview","children","md","ProductLink","href","hrefWithParam","target","rel","bsStyle","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","createReactClass","displayName","ENTERPRISE_PLUGINS","_formatPlugin","pluginName","plugin","filter","p","metadata","name","render","enterprisePluginList","map","EnterpriseProductLink","BiggerFontSize","fonts","size","large","GraylogEnterpriseHeader","ProductLinkComponent","HideOnCloud","licenseSubject","___CSS_LOADER_EXPORT___","push","module","id","locals"],"sourceRoot":""}




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy