web-interface.assets.bb8c8232-2666.10ea609c963fa1eec83b.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-2666"],{SfPIQIJE:(T,r,t)=>{t.d(r,{A:()=>v});var n=t("Z7aTuO5B"),l=t("J6y4/h8P"),i=t("rIl5IEuP"),c=t("ty2gyrHp"),E=t("IOI9nV80"),o=t("NV1/EHMi");const m=(0,l.default)(i.ButtonToolbar)`
margin-bottom: 10px;
`,f=(0,l.default)(i.Button)(({theme:e})=>(0,l.css)`
font-family: ${e.fonts.family.navigation};
font-size: ${e.fonts.size.navigation};
color: ${e.colors.variant.darker.default};
&:hover,
&:focus {
background: inherit;
text-decoration: none;
}
&:hover {
color: inherit;
${(0,o.WS)(e)}
}
&.active {
color: ${e.colors.global.textDefault};
${(0,o.at)(e)}
&:hover,
&:focus {
${(0,o.at)(e)}
}
`);f.displayName="Button";const v=({items:e})=>n.createElement(m,null,e.map(({path:u,title:O,permissions:d,exactPathMatch:I})=>u?n.createElement(E.Wj,{permissions:d!=null?d:[],key:u},n.createElement(c.m,{to:u,relativeActive:!I},n.createElement(f,{bsStyle:"link"},n.createElement(o.Ay,null,O)))):null))},f0XVFT4u:(T,r,t)=>{t.d(r,{A:()=>P});var n=t("Z7aTuO5B"),l=t("ii0bleBb"),i=t.n(l),c=t("ty2gyrHp"),E=t("rIl5IEuP"),o=t("IOI9nV80"),m=t("d4kzUuQm");const f=({notificationId:v})=>n.createElement(E.ButtonToolbar,null,n.createElement(o.Wj,{permissions:`eventnotifications:read:${v}`},n.createElement(c.m,{to:m.Ay.ALERTS.NOTIFICATIONS.show(v)},n.createElement(E.Button,{bsStyle:"success"},"View Details"))),n.createElement(o.Wj,{permissions:`eventnotifications:edit:${v}`},n.createElement(c.m,{to:m.Ay.ALERTS.NOTIFICATIONS.edit(v)},n.createElement(E.Button,{bsStyle:"success"},"Edit Notification"))));f.propTypes={notificationId:i().string.isRequired};const P=f},jvpdvVQ7:(T,r,t)=>{t.d(r,{A:()=>m});var n=t("Z7aTuO5B"),l=t("SfPIQIJE"),i=t("d4kzUuQm"),c=t("rIl5IEuP");const E=[{title:"Alerts & Events",path:i.Ay.ALERTS.LIST,exactPathMatch:!0},{title:"Event Definitions",path:i.Ay.ALERTS.DEFINITIONS.LIST},{title:"Notifications",path:i.Ay.ALERTS.NOTIFICATIONS.LIST}],m=()=>n.createElement(c.Row,null,n.createElement(l.A,{items:E}))},TzPJ8l65:(T,r,t)=>{t.r(r),t.d(r,{default:()=>L});var n=t("Z7aTuO5B"),l=t("yAXMqwrl"),i=t("62FDaRYn"),c=t("q2j1bVbz"),E=t("9tc+dS6Z"),o=t("IOI9nV80"),m=t("d4kzUuQm"),f=t("E+CaPsQD"),P=t("yGRmSjYM"),v=t("QL8i6bcz"),e=t("ii0bleBb"),u=t.n(e),O=t("rIl5IEuP"),d=t("QBkUz07U");const I=s=>s===void 0?{}:v.d.exports("eventNotificationTypes").find(a=>a.type===s)||{},g=({notification:s})=>{const a=I(s.config.type),A=a==null?void 0:a.detailsComponent;return n.createElement(d.A,{title:"Details"},n.createElement(o.WY,{label:"Title",value:s.title}),n.createElement(o.WY,{label:"Description",value:s.description}),n.createElement(o.WY,{label:"Notification Type",value:s.config.type}),A?n.createElement(A,{notification:s}):n.createElement(O.Alert,{bsStyle:"danger"},"Notification type not supported"))};g.propTypes={notification:u().object.isRequired};const M=g;var N=t("f0XVFT4u"),p=t("J7MaobQD"),R=t("jvpdvVQ7"),B=t("/7OuCFNo");const L=()=>{const s=(0,c.A)(),[a,A]=(0,n.useState)(),{notificationId:y}=(0,l.useParams)(),C=(0,B.A)();return(0,n.useEffect)(()=>{p.M.get(y).then(D=>A(D),D=>{D.status===404&&i.A.report((0,E.fE)(D))})},[y]),(0,P.Nn)(s.permissions,`eventnotifications:read:${y}`)||C.push(m.Ay.NOTFOUND),a?n.createElement(o.Qc,{title:`View "${a.title}" Notification`},n.createElement(R.A,null),n.createElement(o.zY,{title:`View "${a.title}" Notification`,actions:a&&n.createElement(N.A,{notificationId:a.id}),documentationLink:{title:"Alerts documentation",path:f.A.PAGES.ALERTS}},n.createElement("span",null,"Notifications alert you of any configured Event when they occur. Graylog can send Notifications directly to you or to other systems you use for that purpose.")),n.createElement(M,{notification:a})):n.createElement(o.Qc,{title:"Notification Details"},n.createElement("span",null,n.createElement(o.zY,{title:"Notification Details"},n.createElement(o.y$,{text:"Loading Notification information..."}))))}}}]);})();
//# sourceMappingURL=bb8c8232-2666.10ea609c963fa1eec83b.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy