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

web-interface.assets.b999a7e7-58.9472d5d0a285679cf68d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/pages/ShowAlertPage.jsx","webpack:///./src/pages/ShowAlertPage.css","webpack:///./src/pages/ShowAlertPage.css?334a"],"names":["CombinedProvider","get","AlertsStore","AlertsActions","AlertConditionsStore","AlertConditionsActions","StreamsStore","ShowAlertPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connect","getInitialState","stream","undefined","componentDidMount","this","_loadData","componentDidUpdate","prevProps","prevState","alert","state","_loadAlertDetails","available","props","alertId","stream_id","setState","condition_id","error","additional","status","alertCondition","UserNotification","_isLoading","availableConditions","render","statusLabel","resolvedState","condition","conditionExists","Object","keys","length","conditionType","type","is_interval","resolved_at","bsStyle","resolvedAtTime","triggered_at","dateTime","format","DateTime","Formats","DATETIME","title","className","style","alertStatusLabel","conditionDetailsTooltip","id","to","Routes","LEGACY_ALERTS","LIST","overlay","placement","useOverlay","trigger","show_alert_condition","disabled","exports","module","push","i","locals","content","options","transform"],"mappings":"6GAAA,wQ,EAiBuCA,IAAiBC,IAAI,UAApDC,E,EAAAA,YAAaC,E,EAAAA,c,EACoCH,IAAiBC,IAAI,mBAAtEG,E,EAAAA,qBAAsBC,E,EAAAA,uBACtBC,EAAiBN,IAAiBC,IAAI,WAAtCK,aAEFC,EAAgBC,IAAiB,CACrCC,YAAa,gBAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CAACC,IAAOC,QAAQf,GAAcc,IAAOC,QAAQb,IAErDc,gBATqC,WAUnC,MAAO,CACLC,YAAQC,IAIZC,kBAfqC,WAgBnCC,KAAKC,aAGPC,mBAnBqC,SAmBlBC,EAAWC,GACxBA,EAAUC,QAAUL,KAAKM,MAAMD,OACjCL,KAAKO,kBAAkBP,KAAKM,MAAMD,QAItCJ,UAzBqC,WA0BnClB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IACE,4CACY,4BAAK5C,EAAO4C,OADxB,IAEE,0BAAMC,UAAWC,IAAMC,kBAAmBtB,KAK1CuB,EACJ,kBAAC,IAAD,CAASC,GAAG,8BAAZ,8FAKF,OACE,kBAAC,IAAD,CAAeL,MAAK,UAAKhB,EAAkBD,EAAUiB,OAAS,iBAAmB,gBAA7D,sBAA0F5C,EAAO4C,QACnH,6BACE,kBAAC,IAAD,CAAYA,MAAOA,GACjB,6IAKA,8BACGlB,GAGH,8BACE,kBAAC,IAAD,KACE,kBAAC,gBAAD,CAAewB,GAAIC,IAAOC,cAAcC,MACtC,kBAAC,IAAD,CAAQjB,QAAQ,OAAOS,UAAU,UAAjC,WAEF,kBAAC,IAAD,CAAgBS,QAASN,EACTO,UAAU,MACVC,YAAa7B,EAAUsB,GACvBQ,QAAS,CAAC,QAAS,UACjC,kBAAC,gBAAD,CAAeP,GAAIC,IAAOO,qBAAqB1D,EAAOiD,GAAItB,EAAUsB,IAAKU,UAAWhC,EAAUsB,IAC5F,kBAAC,IAAD,CAAQb,QAAQ,QAAhB,0BAOV,kBAAC,IAAD,CAAc5B,MAAOA,EAAOmB,UAAWC,GAAmBD,EAAWK,cAAeA,EAAehC,OAAQA,SAOtGZ,a,gCC3JfwE,QAAUC,EAAOD,QAAU,EAAQ,WAAR,EAAyD,IAK5EE,KAAK,CAACD,EAAOE,EAAI,0CAA2C,KAGpEH,QAAQI,OAAS,CAChB,iBAAoB,4B,+BCRrB,IAAIC,EAAU,EAAQ,YAEA,iBAAZA,IAAsBA,EAAU,CAAC,CAACJ,EAAOE,EAAIE,EAAS,MAOhE,IAAIC,EAAU,CAAC,KAAM,EAErB,eAPIC,EAQJ,gBAAqBlE,GAER,EAAQ,WAAR,CAA6DgE,EAASC,GAEhFD,EAAQD,SAAQH,EAAOD,QAAUK,EAAQD","file":"b999a7e7-58.9472d5d0a285679cf68d.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\nimport { LinkContainer } from 'react-router-bootstrap';\n\nimport { ButtonToolbar, Label, Tooltip, Button } from 'components/graylog';\nimport { DocumentTitle, OverlayElement, PageHeader, Spinner, Timestamp } from 'components/common';\nimport { AlertDetails } from 'components/alerts';\n\nimport DateTime from 'logic/datetimes/DateTime';\nimport UserNotification from 'util/UserNotification';\nimport Routes from 'routing/Routes';\n\nimport CombinedProvider from 'injection/CombinedProvider';\nimport style from './ShowAlertPage.css';\n\nconst { AlertsStore, AlertsActions } = CombinedProvider.get('Alerts');\nconst { AlertConditionsStore, AlertConditionsActions } = CombinedProvider.get('AlertConditions');\nconst { StreamsStore } = CombinedProvider.get('Streams');\n\nconst ShowAlertPage = createReactClass({\n  displayName: 'ShowAlertPage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(AlertsStore), Reflux.connect(AlertConditionsStore)],\n\n  getInitialState() {\n    return {\n      stream: undefined,\n    };\n  },\n\n  componentDidMount() {\n    this._loadData();\n  },\n\n  componentDidUpdate(prevProps, prevState) {\n    if (prevState.alert !== this.state.alert) {\n      this._loadAlertDetails(this.state.alert);\n    }\n  },\n\n  _loadData() {\n    AlertConditionsActions.available();\n    AlertsActions.get(this.props.params.alertId);\n  },\n\n  _loadAlertDetails(alert) {\n    StreamsStore.get(alert.stream_id, (stream) => {\n      this.setState({ stream: stream });\n    });\n    AlertConditionsActions.get(alert.stream_id, alert.condition_id, (error) => {\n      if (error.additional && error.additional.status === 404) {\n        this.setState({ alertCondition: {} });\n      } else {\n        UserNotification.error(`Fetching alert condition ${alert.condition_id} failed with status: ${error}`,\n          'Could not get alert condition information');\n      }\n    });\n  },\n\n  _isLoading() {\n    return !this.state.alert || !this.state.alertCondition || !this.state.availableConditions || !this.state.stream;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { alert } = this.state;\n    const condition = this.state.alertCondition;\n    const conditionExists = Object.keys(condition).length > 0;\n    const conditionType = this.state.availableConditions[condition.type] || {};\n    const { stream } = this.state;\n\n    let statusLabel;\n    let resolvedState;\n    if (!alert.is_interval || alert.resolved_at) {\n      statusLabel = ;\n      const resolvedAtTime = alert.resolved_at || alert.triggered_at;\n      if (resolvedAtTime) {\n        resolvedState = (\n          \n            This alert was resolved at .\n          \n        );\n      }\n    } else {\n      statusLabel = ;\n      resolvedState = (\n        \n          This alert was triggered at{' '}\n          {' '}\n          and is still unresolved.\n        \n      );\n    }\n\n    const title = (\n      {conditionExists ? condition.title || 'Untitled alert' : 'Unknown alert'} \n        \n          on stream {stream.title} \n          {statusLabel}\n        \n      \n    );\n\n    const conditionDetailsTooltip = (\n      \n        The condition was most likely deleted since the alert was triggered, no details available.\n      \n    );\n\n    return (\n      \n        
\n \n \n Check the timeline of this alert, including the notifications sent, and messages received during the\n alert.\n \n\n \n {resolvedState}\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 ShowAlertPage;\n","exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"._3qUqsNh0EsjXCcw9GgrMdk{font-size:85%}\", \"\"]);\n\n// exports\nexports.locals = {\n\t\"alertStatusLabel\": \"_3qUqsNh0EsjXCcw9GgrMdk\"\n};","\nvar content = require(\"!!../../node_modules/css-loader/index.js??ref--10-1!./ShowAlertPage.css\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js??ref--10-1!./ShowAlertPage.css\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js??ref--10-1!./ShowAlertPage.css\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy