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

web-interface.assets.d5f85445-58.a49ba8ace624afae35ed.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["d5f85445-58"],{"7iHR8x8p":function(e,t,a){"use strict";a.r(t);var n=a("ii0bleBb"),i=a.n(n),l=a("ivGQtwpr"),s=a.n(l),r=a("PcYM+wZ7"),o=a.n(r),c=a("4KF7VOU5"),d=a.n(c),m=a("wkvtUUMm"),u=a("qoq4u5Uq"),h=a("oBIKikY9"),p=a("7NKO1ghU"),E=a("QDVhqBhn"),g=a("8GJ6oOEd"),v=a("W+sNG9T1"),f=a("21p8kIWv"),w=a("aIi6QtTg"),_=a.n(w),b=f.a.get("Alerts"),A=b.AlertsStore,S=b.AlertsActions,T=f.a.get("AlertConditions"),C=T.AlertConditionsStore,k=T.AlertConditionsActions,y=f.a.get("Streams").StreamsStore,U=o()({displayName:"ShowAlertPage",propTypes:{params:i.a.object.isRequired},mixins:[d.a.connect(A),d.a.connect(C)],getInitialState:function(){return{stream:void 0}},componentDidMount:function(){this._loadData()},componentDidUpdate:function(e,t){t.alert!==this.state.alert&&this._loadAlertDetails(this.state.alert)},_loadData:function(){k.available(),S.get(this.props.params.alertId)},_loadAlertDetails:function(e){var t=this;y.get(e.stream_id,(function(e){t.setState({stream:e})})),k.get(e.stream_id,e.condition_id,(function(a){a.additional&&404===a.additional.status?t.setState({alertCondition:{}}):g.a.error("Fetching alert condition ".concat(e.condition_id," failed with status: ").concat(a),"Could not get alert condition information")}))},_isLoading:function(){return!(this.state.alert&&this.state.alertCondition&&this.state.availableConditions&&this.state.stream)},render:function(){if(this._isLoading())return s.a.createElement(h.L,null);var e,t,a=this.state.alert,n=this.state.alertCondition,i=Object.keys(n).length>0,l=this.state.availableConditions[n.type]||{},r=this.state.stream;if(!a.is_interval||a.resolved_at){e=s.a.createElement(u.s,{bsStyle:"success"},"Resolved");var o=a.resolved_at||a.triggered_at;o&&(t=s.a.createElement("span",null,"This alert was resolved at ",s.a.createElement(h.P,{dateTime:o,format:E.a.Formats.DATETIME}),"."))}else e=s.a.createElement(u.s,{bsStyle:"danger"},"Unresolved"),t=s.a.createElement("span",null,"This alert was triggered at"," ",s.a.createElement(h.P,{dateTime:a.triggered_at,format:E.a.Formats.DATETIME})," ","and is still unresolved.");var c=s.a.createElement("span",null,i?n.title||"Untitled alert":"Unknown alert"," ",s.a.createElement("small",null,"on stream ",s.a.createElement("em",null,r.title)," ",s.a.createElement("span",{className:_.a.alertStatusLabel},e))),d=s.a.createElement(u.N,{id:"disabled-condition-details"},"The condition was most likely deleted since the alert was triggered, no details available.");return s.a.createElement(h.i,{title:"".concat(i?n.title||"Untitled alert":"Unknown alert"," on stream ").concat(r.title)},s.a.createElement("div",null,s.a.createElement(h.A,{title:c},s.a.createElement("span",null,"Check the timeline of this alert, including the notifications sent, and messages received during the alert."),s.a.createElement("span",null,t),s.a.createElement("span",null,s.a.createElement(u.e,null,s.a.createElement(m.LinkContainer,{to:v.a.LEGACY_ALERTS.LIST},s.a.createElement(u.c,{bsStyle:"info",className:"active"},"Alerts")),s.a.createElement(h.y,{overlay:d,placement:"top",useOverlay:!n.id,trigger:["hover","focus"]},s.a.createElement(m.LinkContainer,{to:v.a.show_alert_condition(r.id,n.id),disabled:!n.id},s.a.createElement(u.c,{bsStyle:"info"},"Condition details")))))),s.a.createElement(p.b,{alert:a,condition:i&&n,conditionType:l,stream:r})))}});t.default=U},Rqn5u6aK:function(e,exports,t){(exports=e.exports=t("wTjlWjHz")(!1)).push([e.i,"._3qUqsNh0EsjXCcw9GgrMdk{font-size:85%}",""]),exports.locals={alertStatusLabel:"_3qUqsNh0EsjXCcw9GgrMdk"}},aIi6QtTg:function(e,exports,t){var a=t("Rqn5u6aK");"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};t("HkU00dYq")(a,n);a.locals&&(e.exports=a.locals)}}]);
//# sourceMappingURL=d5f85445-58.a49ba8ace624afae35ed.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy