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

web-interface.assets.bb8c8232-4041.50520bc45008d8aa8149.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-4041"],{fXZFqfJz:(I,i,t)=>{t.r(i),t.d(i,{default:()=>C});var e=t("Z7aTuO5B"),c=t("yAXMqwrl"),E=t("rIl5IEuP"),a=t("IOI9nV80"),v=t("xtK/Ddao"),s=t("d4kzUuQm"),m=t("E+CaPsQD"),P=t("yGRmSjYM"),O=t("jvpdvVQ7"),f=t("q2j1bVbz"),A=t("brbjQOmY");const C=()=>{const l=(0,f.A)(),o=(0,c.useNavigate)(),[n,M]=(0,e.useState)(),{step:u}=(0,A.A)(),T=(0,e.useCallback)(r=>{r.title!==n&&M(r.title)},[n]),_=(0,e.useMemo)(()=>n?`New Event Definition "${n}"`:"New Event Definition",[n]),D=(0,e.useCallback)(()=>{o(s.Ay.ALERTS.DEFINITIONS.LIST)},[o]);return(0,e.useEffect)(()=>{(0,P.Nn)(l.permissions,"eventdefinitions:create")||o(s.Ay.NOTFOUND)},[l.permissions,o]),e.createElement(a.Qc,{title:_},e.createElement(O.A,null),e.createElement(a.zY,{title:_,documentationLink:{title:"Alerts documentation",path:m.A.PAGES.ALERTS}},e.createElement("span",null,"Event Definitions allow you to create Alerts from different Conditions and alert on them.")),e.createElement(E.Row,{className:"content"},e.createElement(E.Col,{md:12},e.createElement(v.A,{action:"create",onEventDefinitionChange:T,initialStep:u,onSubmit:D,onCancel:D}))))}}}]);})();

//# sourceMappingURL=bb8c8232-4041.50520bc45008d8aa8149.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy