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

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

There is a newer version: 6.0.1
Show newest version
{"version":3,"sources":["webpack:///./src/pages/EditAlertConditionPage.jsx"],"names":["CurrentUserStore","CombinedProvider","get","StreamsStore","AlertConditionsStore","AlertConditionsActions","EditAlertConditionPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connect","getInitialState","stream","undefined","componentDidMount","this","props","streamId","setState","conditionId","available","_handleUpdate","_handleDelete","history","push","Routes","LEGACY_ALERTS","CONDITIONS","_isLoading","state","alertCondition","availableConditions","render","condition","conditionType","type","title","page","DocsHelper","PAGES","ALERTS","text","active","className","md","onUpdate","onDelete","withParams"],"mappings":"2GAAA,+RAiCQA,EAAqBC,IAAiBC,IAAI,eAA1CF,iBACAG,EAAiBF,IAAiBC,IAAI,WAAtCC,a,EACiDF,IAAiBC,IAAI,mBAAtEE,E,EAAAA,qBAAsBC,E,EAAAA,uBAExBC,EAAyBC,IAAiB,CAC9CC,YAAa,yBAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CAACC,IAAOC,QAAQhB,GAAmBe,IAAOC,QAAQZ,IAE1Da,gBAT8C,WAU5C,MAAO,CACLC,YAAQC,IAIZC,kBAf8C,WAe1B,WAClBjB,EAAaD,IAAImB,KAAKC,MAAMZ,OAAOa,UAAU,SAACL,GAC5C,EAAKM,SAAS,CAAEN,OAAQA,OAG1Bb,EAAuBH,IAAImB,KAAKC,MAAMZ,OAAOa,SAAUF,KAAKC,MAAMZ,OAAOe,aACzEpB,EAAuBqB,aAGzBC,cAxB8C,SAwBhCJ,EAAUE,GACtBpB,EAAuBH,IAAIqB,EAAUE,IAGvCG,cA5B8C,WA6B5CC,IAAQC,KAAKC,IAAOC,cAAcC,aAGpCC,WAhC8C,WAiC5C,OAAQb,KAAKc,MAAMjB,SAAWG,KAAKc,MAAMC,iBAAmBf,KAAKc,MAAME,qBAGzEC,OApC8C,WAqC5C,GAAIjB,KAAKa,aACP,OAAO,kBAAC,KAAD,MAGT,IAAMK,EAAYlB,KAAKc,MAAMC,eACvBI,EAAgBnB,KAAKc,MAAME,oBAAoBE,EAAUE,MACvDvB,EAAWG,KAAKc,MAAhBjB,OAER,OACE,kBAAC,IAAD,CAAewB,MAAK,oBAAeH,EAAUG,OAAS,aACpD,6BACE,kBAAC,IAAD,CAAYA,MAAO,2CAAgB,4BAAKH,EAAUG,OAAS,cACzD,2IAIA,wIAEM,IACJ,kBAAC,IAAD,CAAmBC,KAAMC,IAAWC,MAAMC,OAAQC,KAAK,kBAHzD,KAMA,8BACE,kBAAC,IAAD,CAAqBC,OAAQjB,IAAOC,cAAcC,eAItD,kBAAC,IAAD,CAAKgB,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAAwBd,eAAgBG,EAChBC,cAAeA,EACftB,OAAQA,EACRiC,SAAU9B,KAAKM,cACfyB,SAAU/B,KAAKO,kBAI3C,kBAAC,IAAD,CAAKqB,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAA0BhC,OAAQA,WASjCmC,sBAAW/C","file":"6e61897c-89.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 { Col, Row } from 'components/graylog';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { AlertsHeaderToolbar } from 'components/alerts';\nimport { EditAlertConditionForm } from 'components/alertconditions';\nimport { StreamAlertNotifications } from 'components/alertnotifications';\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport history from 'util/History';\nimport CombinedProvider from 'injection/CombinedProvider';\nimport withParams from 'routing/withParams';\n\nconst { CurrentUserStore } = CombinedProvider.get('CurrentUser');\nconst { StreamsStore } = CombinedProvider.get('Streams');\nconst { AlertConditionsStore, AlertConditionsActions } = CombinedProvider.get('AlertConditions');\n\nconst EditAlertConditionPage = createReactClass({\n  displayName: 'EditAlertConditionPage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(CurrentUserStore), Reflux.connect(AlertConditionsStore)],\n\n  getInitialState() {\n    return {\n      stream: undefined,\n    };\n  },\n\n  componentDidMount() {\n    StreamsStore.get(this.props.params.streamId, (stream) => {\n      this.setState({ stream: stream });\n    });\n\n    AlertConditionsActions.get(this.props.params.streamId, this.props.params.conditionId);\n    AlertConditionsActions.available();\n  },\n\n  _handleUpdate(streamId, conditionId) {\n    AlertConditionsActions.get(streamId, conditionId);\n  },\n\n  _handleDelete() {\n    history.push(Routes.LEGACY_ALERTS.CONDITIONS);\n  },\n\n  _isLoading() {\n    return !this.state.stream || !this.state.alertCondition || !this.state.availableConditions;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const condition = this.state.alertCondition;\n    const conditionType = this.state.availableConditions[condition.type];\n    const { stream } = this.state;\n\n    return (\n      \n        
\n Condition {condition.title || 'Untitled'}}>\n \n Define an alert condition and configure the way Graylog will notify you when that condition is satisfied.\n \n\n \n Are the default conditions not flexible enough? You can write your own! Read more about alerting in\n 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\nexport default withParams(EditAlertConditionPage);\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy