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

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

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/components/rules/RuleMetricsConfig.jsx","webpack:///./src/components/rules/RuleMetricsConfigContainer.jsx","webpack:///./src/components/rules/RuleList.jsx","webpack:///./src/components/rules/RulesComponent.jsx","webpack:///./src/pages/RulesPage.jsx"],"names":["RuleMetricsConfig","props","onChange","state","nextConfig","then","closeModal","modal","open","close","key","value","config","lodash","cloneDeep","setState","event","name","target","propagateChange","FormsUtils","this","onClose","ref","title","onSubmitForm","saveConfiguration","onModalClose","show","submitButtonText","bsStyle","type","id","label","handleChange","checked","metrics_enabled","text","React","Component","PropTypes","object","func","isRequired","undefined","CombinedProvider","get","RulesStore","RulesActions","RuleMetricsConfigContainer","updateMetricsConfig","loadMetricsConfig","metricsConfig","component","configComponent","connect","rules","RuleList","openMetricsConfig","rule","window","confirm","header","actions","bsSize","onClick","_delete","to","Routes","SYSTEM","PIPELINES","RULE","className","description","dateTime","created_at","relative","modified_at","zeroOnMissing","suffix","showTotal","hideOnMissing","toggleMetricsConfig","headers","headerCellFormatter","_headerCellFormatter","sortByKey","rows","filterBy","dataRowFormatter","_ruleInfoFormatter","filterLabel","filterKeys","renderDebugMetricsButton","array","RulesComponent","RulesPage","createReactClass","displayName","mixins","Reflux","componentDidMount","list","render","DocumentationLink","page","DocsHelper","PAGES","PIPELINE_RULES","OVERVIEW","RULES","SIMULATOR","md"],"mappings":"ivDAyBqBA,E,sQAYnB,WAAYC,GAAO,a,4FAAA,aACjB,cAAMA,IADW,qBAQC,YAIlBC,EAHqB,EAAKD,MAAlBC,UACe,EAAKC,MAApBC,YAEaC,KAAK,EAAKC,eAZd,oBAeP,WACV,EAAKC,MAAMC,UAhBM,qBAmBN,WACX,EAAKD,MAAME,WApBM,0BAuBD,SAACC,EAAKC,GAAU,IACxBC,EAAW,EAAKX,MAAhBW,O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QAAQ,QAAhB,gBAKN,kBAAC,IAAD,CAAK0C,UAAU,WACb,kBAAC,IAAD,CAAKwC,GAAI,IACP,kBAAC,GAAD,CAAgBxD,MAAOnC,KAAKlB,MAAMqD,eASjCwC","file":"57e33c6c-110.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 React from 'react';\nimport PropTypes from 'prop-types';\nimport lodash from 'lodash';\n\nimport { Alert } from 'components/graylog';\nimport { BootstrapModalForm, Input } from 'components/bootstrap';\nimport { Spinner } from 'components/common';\nimport * as FormsUtils from 'util/FormsUtils';\n\nexport default class RuleMetricsConfig extends React.Component {\n  static propTypes = {\n    config: PropTypes.object,\n    onChange: PropTypes.func.isRequired,\n    onClose: PropTypes.func,\n  };\n\n  static defaultProps = {\n    config: undefined,\n    onClose: () => {},\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      nextConfig: props.config,\n    };\n  }\n\n  saveConfiguration = () => {\n    const { onChange } = this.props;\n    const { nextConfig } = this.state;\n\n    onChange(nextConfig).then(this.closeModal);\n  };\n\n  openModal = () => {\n    this.modal.open();\n  };\n\n  closeModal = () => {\n    this.modal.close();\n  };\n\n  propagateChange = (key, value) => {\n    const { config } = this.props;\n    const nextConfig = lodash.cloneDeep(config);\n\n    nextConfig[key] = value;\n    this.setState({ nextConfig });\n  };\n\n  handleChange = (event) => {\n    const { name } = event.target;\n\n    this.propagateChange(name, FormsUtils.getValueFromInput(event.target));\n  };\n\n  render() {\n    const { config, onClose } = this.props;\n    const { nextConfig } = this.state;\n\n    if (!config) {\n      return 

;\n }\n\n return (\n { this.modal = modal; }}\n title=\"Rule Metrics Configuration\"\n onSubmitForm={this.saveConfiguration}\n onModalClose={onClose}\n show\n submitButtonText=\"Save\">\n \n Rule metrics should only be enabled to debug a performance issue because collecting the\n metrics will slow down message processing and increase memory usage.\n \n
\n \n\n \n
\n

\n When enabled the system metrics will update two timers for every rule execution.\n

\n Rule evaluation timer\n

\n This timer measures the duration for the rule condition. (everything inside the when statement)\n

\n

\n Example metric name with rule ID placeholder:
\n org.graylog.plugins.pipelineprocessor.ast.Rule.[rule-id].trace.evaluate.duration
\n Example metric name with rule ID, pipeline ID and stage number placeholders:
\n org.graylog.plugins.pipelineprocessor.ast.Rule.[rule-id].[pipeline-id].[stage-num].trace.evaluate.duration\n

\n Rule execution timer\n

\n This timer measures the duration for the rule execution. (everything inside the then statement)\n

\n

\n Example metric name with rule ID placeholder:
\n org.graylog.plugins.pipelineprocessor.ast.Rule.[rule-id].trace.execute.duration
\n Example metric name with rule ID, pipeline ID and stage number placeholders:
\n org.graylog.plugins.pipelineprocessor.ast.Rule.[rule-id].[pipeline-id].[stage-num].trace.execute.duration\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 React from 'react';\nimport PropTypes from 'prop-types';\n\nimport connect from 'stores/connect';\nimport CombinedProvider from 'injection/CombinedProvider';\n\nimport RuleMetricsConfig from './RuleMetricsConfig';\n\nconst { RulesStore, RulesActions } = CombinedProvider.get('Rules');\n\nclass RuleMetricsConfigContainer extends React.Component {\n static propTypes = {\n metricsConfig: PropTypes.object,\n onClose: PropTypes.func,\n };\n\n static defaultProps = {\n metricsConfig: undefined,\n onClose: () => {},\n };\n\n componentDidMount() {\n RulesActions.loadMetricsConfig();\n }\n\n handleChange = (nextConfig) => {\n return RulesActions.updateMetricsConfig(nextConfig);\n };\n\n render() {\n const { metricsConfig, onClose } = this.props;\n\n if (!metricsConfig) {\n return null;\n }\n\n return (\n { this.configComponent = component; }}\n config={metricsConfig}\n onChange={this.handleChange}\n onClose={onClose} />\n );\n }\n}\n\nexport default connect(RuleMetricsConfigContainer, { rules: RulesStore }, ({ rules }) => {\n return { metricsConfig: rules ? rules.metricsConfig : rules };\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 PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { LinkContainer, Link } from 'components/graylog/router';\nimport connect from 'stores/connect';\nimport { Button, ButtonToolbar } from 'components/graylog';\nimport { DataTable, Timestamp } from 'components/common';\nimport { MetricContainer, CounterRate } from 'components/metrics';\nimport Routes from 'routing/Routes';\nimport CombinedProvider from 'injection/CombinedProvider';\n\nimport RuleMetricsConfigContainer from './RuleMetricsConfigContainer';\n\nconst { RulesActions, RulesStore } = CombinedProvider.get('Rules');\n\nclass RuleList extends React.Component {\n static propTypes = {\n rules: PropTypes.array.isRequired,\n metricsConfig: PropTypes.object,\n };\n\n static defaultProps = {\n metricsConfig: undefined,\n };\n\n state = {\n openMetricsConfig: false,\n };\n\n componentDidMount() {\n RulesActions.loadMetricsConfig();\n }\n\n _delete = (rule) => {\n return () => {\n if (window.confirm(`Do you really want to delete rule \"${rule.title}\"?`)) {\n RulesActions.delete(rule);\n }\n };\n };\n\n _headerCellFormatter = (header) => {\n return {header};\n };\n\n _ruleInfoFormatter = (rule) => {\n const actions = [\n ,\n  ,\n \n \n ,\n ];\n\n return (\n \n \n \n {rule.title}\n \n \n {rule.description}\n \n \n \n \n \n \n \n \n \n \n \n \n {actions}\n \n );\n };\n\n toggleMetricsConfig = () => {\n const { openMetricsConfig } = this.state;\n\n this.setState({ openMetricsConfig: !openMetricsConfig });\n };\n\n renderDebugMetricsButton = (metricsConfig) => {\n if (metricsConfig && metricsConfig.metrics_enabled) {\n return ;\n }\n\n return ;\n };\n\n render() {\n const { rules, metricsConfig } = this.props;\n const filterKeys = ['title', 'description'];\n const headers = ['Title', 'Description', 'Created', 'Last modified', 'Throughput', 'Errors', 'Actions'];\n const { openMetricsConfig } = this.state;\n\n return (\n
\n \n \n \n \n \n {this.renderDebugMetricsButton(metricsConfig)}\n \n \n {openMetricsConfig && }\n
\n );\n }\n}\n\nexport default connect(RuleList, { rules: RulesStore }, ({ rules }) => {\n return { metricsConfig: rules ? rules.metricsConfig : rules };\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 PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Spinner } from 'components/common';\n\nimport RuleList from './RuleList';\n\nclass RulesComponent extends React.Component {\n static propTypes = {\n rules: PropTypes.array,\n };\n\n render() {\n if (!this.props.rules) {\n return ;\n }\n\n return (\n
\n \n
\n );\n }\n}\n\nexport default RulesComponent;\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 Reflux from 'reflux';\n\nimport { LinkContainer } from 'components/graylog/router';\nimport { Row, Col, Button } from 'components/graylog';\nimport { DocumentTitle, PageHeader } from 'components/common';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport DocsHelper from 'util/DocsHelper';\nimport RulesComponent from 'components/rules/RulesComponent';\nimport Routes from 'routing/Routes';\nimport CombinedProvider from 'injection/CombinedProvider';\n\nconst { RulesStore, RulesActions } = CombinedProvider.get('Rules');\n\nconst RulesPage = createReactClass({\n displayName: 'RulesPage',\n\n mixins: [\n Reflux.connect(RulesStore),\n ],\n\n componentDidMount() {\n RulesActions.list();\n },\n\n render() {\n return (\n \n \n \n \n Rules are a way of applying changes to messages in Graylog. A rule consists of a condition and a list of actions.\n Graylog evaluates the condition against a message and executes the actions if the condition is satisfied.\n \n\n \n Read more about Graylog pipeline rules in the .\n \n\n \n \n \n \n  \n \n \n \n  \n \n \n \n \n \n\n \n \n \n \n \n \n \n );\n },\n});\n\nexport default RulesPage;\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy