1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2825],{885974:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/monitors/new/add",function(){return n(139194)}])},139194:function(e,r,n){"use strict";n.r(r);var i=n(785893),s=n(799514),t=n(224726),o=n(301687),l=n(444282),a=n(651714),d=n(158046),x=n(551642),c=n(268225),h=n(624015),m=n(182909),j=n(159505),u=n(488735),Z=n(620869),p=n(835465),g=n(62892),f=n(287580),P=n(62530),v=n(311901),y=n(399657),b=n(380594),_=n(583732),S=n(673173),W=n(347533),T=n(287536),w=n(616310),z=n(331812),C=n(667294),q=n(884602),k=n(633791),Q=n(250281),E=n(879739),N=n(194719),A=n(138741);let H=w.Ry().shape({name:w.Z_().required("Please enter city name"),code:w.Z_().required("Please enter city code")}),M={name:"",code:"",translations:{}},D=[{id:"1",name:"HTTP/Website Monitoring",description:"Use HTTPâ (S) monitor to monitor your website, API endpoint, or anything running on HTTP"},{id:"2",name:"HTTP/Webpage Monitoring",description:"Use HTTPâ (S) monitor to monitor your website, API endpoint, or anything running on HTTP"},{id:"3",name:"Dns monitoring",description:"Check the presence or absence of specific text in the requestâs response body (typically HTML or JSON)."},{id:"4",name:"Ping monitoring",description:"Make sure your server or any device in the network is always available."},{id:"5",name:"Port monitoring",description:"Monitor any service on your server. Useful for SMTP, POP3, FTP, and other services running on specific TCP ports."},{id:"6",name:"Cron Job/Heartbeat Monitoring",description:"You send requests to our servers and we check if they arrive on time."}],I=[{id:"global",name:"Global"},{id:"europe",name:"Continent : Europe"},{id:"north_america",name:"Continent : North America"},{id:"asia_pacific",name:"Continent : Asia Pacific"},{id:"austria",name:"Continent : Austria"},{id:"brazil",name:"Continent : Brazil"},{id:"bulgaria",name:"Continent : Bulgaria"},{id:"caneda",name:"Continent : Caneda"},{id:"estonia",name:"Continent : Estonia"},{id:"finland",name:"Continent : Finland"},{id:"france",name:"Continent : France"},{id:"germany",name:"Continent : Germany"}];r.default=()=>{let{control:e,handleSubmit:r,formState:{errors:n,isSubmitting:w}}=(0,T.cI)({defaultValues:M,mode:"onChange",resolver:(0,W.X)(H)}),O=(0,A.u)(),[R,B]=(0,C.useState)([]),[L,U]=(0,C.useState)([]),[F,J]=(0,C.useState)(!1),[V,X]=(0,C.useState)("GET"),[G,Y]=(0,C.useState)(""),K=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTION"],$=async()=>{},ee=[{value:0,label:"30S"},{value:16,label:"1m"},{value:32,label:"5m"},{value:48,label:"30m"},{value:64,label:"1h"},{value:80,label:"12h"},{value:95,label:"24h"}];function er(e){return"".concat(e,"\xb0C")}return(0,i.jsx)(s.ZP,{container:!0,spacing:6,children:(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(t.Z,{sx:{p:[0,1,2]},children:[(0,i.jsx)(o.Z,{title:"Add Monitor",titleTypographyProps:{variant:"h6"}}),(0,i.jsx)("form",{onSubmit:r($),children:(0,i.jsx)(l.Z,{children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"Monitor Type"}),(0,i.jsx)(T.Qr,{name:"monitor_type",control:e,render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:e=>{s(e),Y(e.target.value)},placeholder:"Select Monitor Type",error:!!(null==n?void 0:n.monitor_type),select:!0,children:null==D?void 0:D.map(e=>(0,i.jsx)(c.Z,{value:null==e?void 0:e.id,children:(0,i.jsxs)("div",{children:[(0,i.jsx)(d.Z,{variant:"body1",sx:{fontSize:14,color:"text.secondary900"},children:null==e?void 0:e.name}),(0,i.jsx)(d.Z,{variant:"body2",sx:{fontSize:11,color:"text.secondary800",mt:.5},children:null==e?void 0:e.description})]})},null==e?void 0:e.id))})}}),n.monitor_type&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.monitor_type.message})]})}),("HTTP_website_monitoring"===G||"HTTP_webpage_monitoring"===G)&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"URL to monitor"}),(0,i.jsx)(T.Qr,{name:"url",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,label:"https://",onChange:s,placeholder:"",error:!!n.name})}}),n.code&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.code.message})]})}),"dns_monitoring"===G&&(0,i.jsxs)(s.ZP,{item:!0,xs:12,children:[(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:2},children:"Name"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"Name of your monitoring check. It must be no longer than 32 characters and can only contain like a-z, A-Z, 0-9, -,., and space characters"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:4,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"name",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"",error:!!n.name})}}),n.name&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.name.message})]})})]}),(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:2},children:"IP/host monitor"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"IP address or hostname of a server or device you want to be monitored"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"ip_host_monitor",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"",error:!!n.name})}}),n.ip_host_monitor&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.ip_host_monitor.message})]})})]}),(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:2},children:"Monitoring Region"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"The monitoring test will be monitored only from this region"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:4,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"region",control:e,render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"Select Region",error:!!(null==n?void 0:n.region),select:!0,children:I.map(e=>(0,i.jsx)(c.Z,{value:null==e?void 0:e.id,children:null==e?void 0:e.name},null==e?void 0:e.id))})}}),n.region&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.region.message})]})})]})]}),"ping_monitoring"===G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"IP or host to monitor"}),(0,i.jsx)(T.Qr,{name:"ip_host_monitor",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,label:"E.g. 80.75.11 . 12 or example.com",onChange:s,placeholder:"",error:!!n.name})}}),n.ip_host_monitor&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.ip_host_monitor.message})]})}),"port_monitoring"===G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,md:8,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"URL, IP or host to monitor"}),(0,i.jsx)(T.Qr,{name:"url_ip__monitor",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,label:"E.g. https://example.com or 80.75.11.12 or example.com",onChange:s,placeholder:"",error:!!n.name})}}),n.url_ip__monitor&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.url_ip__monitor.message})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,md:4,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"TCP port"}),(0,i.jsx)(T.Qr,{name:"tcp_port",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(m.Z,{onChange:s,value:r,error:!!n.status,children:(0,i.jsx)(c.Z,{value:!0,children:"eg.22"})})}}),n.tcp_port&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.tcp_port.message})]})}),(0,i.jsxs)(s.ZP,{item:!0,xs:12,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginBottom:2},children:"IP or host to monitor"}),(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"ip_host_monitor",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,label:"mail.google.com",onChange:s,placeholder:"",error:!!n.name})}}),n.ip_host_monitor&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.ip_host_monitor.message})]})]}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,md:3,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Friendly name: www.googlemail.com"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:9,children:(0,i.jsxs)(z.Z,{variant:"contained",size:"small",sx:{background:O.palette.background.lightgray,color:O.palette.text.secondary800,mr:3,borderRadius:"8px"},children:[(0,i.jsx)(q.Z,{}),"Rename"]})})]})})]})}),"Cron_Job_Heartbeat_Monitoring"===G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:2},children:"What do you want to monitor?"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:4,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"condition",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"E.g. Daily data sync",error:!!n.name})}}),n.condition&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.condition.message})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:2},children:"When should we expect your request?"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"We will expect the request from your service every 1 minute."})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:2,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"count1",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"",error:!!n.name})}}),n.count&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.count.message})]})}),(0,i.jsxs)(s.ZP,{item:!0,sm:12,md:4,children:[(0,i.jsx)(T.Qr,{name:"time_select1",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:"minutes",children:"Minutes"}),(0,i.jsx)(c.Z,{value:"second",children:"Second"})]})}}),n.time_select&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.time_select.message})]}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"We will wait max 30 seconds for your request to come before we consider it as not received."})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:2,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"count2",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"",error:!!n.name})}}),n.count&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.count.message})]})}),(0,i.jsxs)(s.ZP,{item:!0,sm:12,md:4,children:[(0,i.jsx)(T.Qr,{name:"time_select2",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:"minutes",children:"Minutes"}),(0,i.jsx)(c.Z,{value:"second",children:"Second"})]})}}),n.time_select&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.time_select.message})]})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,md:2,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"14px",marginTop:2},children:"How will we notify you?"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:10,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Here you can enter email ids to get monitor status emails.if no email is mentioned here , monitor down.email will be send to [email protected]."})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(Z.Z,{}),label:"Email Notifications",sx:{fontWeight:400,fontSize:"14px"}})}),(0,i.jsxs)(s.ZP,{item:!0,xs:12,children:[(0,i.jsx)(p.Z,{spacing:2,children:(0,i.jsx)(g.Z,{multiple:!0,freeSolo:!0,id:"tags-filled",options:[],value:R,onChange:(e,r)=>{r.length<=5&&B(r)},renderTags:(e,r)=>e.map((e,n)=>(0,i.jsx)(f.Z,{variant:"outlined",label:e,...r({index:n})},e)),renderInput:e=>(0,i.jsx)(x.Z,{...e,variant:"outlined",placeholder:"Enter email addresses"})})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"11px",marginTop:1},children:"You can add upto five email ids"})})]}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(Z.Z,{}),label:(0,i.jsxs)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%"},children:[(0,i.jsx)(d.Z,{variant:"body2",children:"SMS"}),(0,i.jsx)(k.Z,{style:{color:"blue"}})]})})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(Z.Z,{}),label:(0,i.jsxs)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%"},children:[(0,i.jsx)(d.Z,{variant:"body2",children:"Voice Call"}),(0,i.jsx)(k.Z,{style:{color:"blue"}})]}),sx:{fontSize:"14px",fontWeight:400}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(Z.Z,{}),label:(0,i.jsxs)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%"},children:[(0,i.jsx)(d.Z,{variant:"body2",children:"Mobile Push"}),(0,i.jsx)(k.Z,{style:{color:"blue"}})]}),sx:{fontWeight:400,fontSize:"14px"}})}),(0,i.jsxs)(s.ZP,{item:!0,xs:12,children:[(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:16,marginTop:5},children:"Monitor Interval"}),(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:14,marginTop:2},children:"Your monitor will be checked every 1 minute, we recommend to use atleast 1-miniute checks."}
1),(0,i.jsx)(P.ZP,{sx:{color:"#3CD670"},"aria-label":"Custom marks",defaultValue:16,getAriaValueText:er,step:null,marks:ee})]}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),"dns_monitoring"===G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,md:6,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"Number of checks to consider up/down"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"The number of checks to confirm the change of status"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"no_checks",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.no_checks,children:[(0,i.jsx)(c.Z,{value:1,children:"1"}),(0,i.jsx)(c.Z,{value:2,children:"2"})]})}}),n.no_checks&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.no_checks.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:6,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"Required response"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"Expected response for the DNS check. In case of multiple records (round-robin) you can list all records seperated by comma (,)"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"req_response",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(m.Z,{onChange:s,value:r,error:!!n.req_response,children:(0,i.jsx)(c.Z,{value:"fqdn",children:"FQDN"})})}}),n.req_response&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.req_response.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:6,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"Host to query"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"The FQDN for which the DNS check will be made"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"host_query",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.host_query,children:[(0,i.jsx)(c.Z,{value:"a",children:"A"}),(0,i.jsx)(c.Z,{value:"aaaa",children:"AAAA"}),(0,i.jsx)(c.Z,{value:"mx",children:"MX"}),(0,i.jsx)(c.Z,{value:"ns",children:"NS"}),(0,i.jsx)(c.Z,{value:"ptr",children:"PTR"}),(0,i.jsx)(c.Z,{value:"cname",children:"CNAME"}),(0,i.jsx)(c.Z,{value:"txt",children:"TXT"})]})}}),n.host_query&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.host_query.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,md:6,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"Query type"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"DNS query type for the DNS check"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"qyery_type",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(x.Z,{value:r,onChange:s,placeholder:"Response to the query ",error:!!n.name})}}),n.qyery_type&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.qyery_type.message})]})})]})})]})}),"dns_monitoring"!==G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"SSL certificate and Domain checks"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Check SSL Errors"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"ssl_error",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:!0,children:"Enabled"}),(0,i.jsx)(c.Z,{value:!1,children:"Disabled"})]})}}),n.ssl_error&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.ssl_error.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"SSL expiry reminders"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"ssl_expiry",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:!0,children:"Enabled"}),(0,i.jsx)(c.Z,{value:!1,children:"Disabled"})]})}}),n.ssl_expiry&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.ssl_expiry.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Domain expiry reminders"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"domain_expiry",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:!0,children:"Enabled"}),(0,i.jsx)(c.Z,{value:!1,children:"Disabled"})]})}}),n.domain_expiry&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.domain_expiry.message})]})})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),"dns_monitoring"!==G&&(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"16px",marginTop:5},children:"Advanced settings"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Request timeout"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1},children:"The request timeout is 30 seconds.The shorter the timeout the earlier we mark website as down"})}
1),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(P.ZP,{sx:{color:"#3CD670"},"aria-label":"Custom marks",defaultValue:16,getAriaValueText:er,step:null,marks:ee})})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(v.Z,{}),label:"Follow redirections",sx:{fontWeight:400,fontSize:"14px"}})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1,marginLeft:2},children:"If disabled we return redirections HTTP status code other than defined below."})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:2},children:"Up HTTP status codes"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1},children:"we will create incident when we recetve http request code other than defined below."})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(p.Z,{spacing:2,children:(0,i.jsx)(g.Z,{multiple:!0,freeSolo:!0,id:"tags-filled",options:[],value:L,onChange:(e,r)=>{U(r)},renderTags:(e,r)=>e.map((e,n)=>(0,i.jsx)(f.Z,{variant:"outlined",label:e,...r({index:n})},e)),renderInput:e=>(0,i.jsx)(x.Z,{...e,variant:"outlined"})})})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1,mb:[1,2,3]}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"Auth.type"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"auth_type",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsxs)(m.Z,{onChange:s,value:r,error:!!n.status,children:[(0,i.jsx)(c.Z,{value:"none",children:"None"}),(0,i.jsx)(c.Z,{value:"basic",children:"Basic"}),(0,i.jsx)(c.Z,{value:"digest",children:"Digest"})]})}}),n.auth_type&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.auth_type.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"},children:"Auth.credentials"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"auth_credentials",control:e,rules:{required:!0},render:e=>{let{field:{value:r,onChange:s}}=e;return(0,i.jsx)(m.Z,{onChange:s,value:r,error:!!n.status,children:(0,i.jsx)(c.Z,{value:"username",children:"Username"})})}}),n.auth_credentials&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.auth_credentials.message})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:4,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px"}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"password",control:e,render:e=>{var r;let{field:s}=e;return(0,i.jsx)(x.Z,{...s,type:F?"text":"password",label:"Password",placeholder:"Min. 8 characters",fullWidth:!0,margin:"normal",error:!!n.password,helperText:null===(r=n.password)||void 0===r?void 0:r.message,InputProps:{endAdornment:(0,i.jsx)(y.Z,{position:"end",children:(0,i.jsx)(b.Z,{onClick:()=>J(e=>!e),children:F?(0,i.jsx)(Q.Z,{}):(0,i.jsx)(E.Z,{})})})}})}}),n.domain_expiry&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.domain_expiry.message})]})})]})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"16px",marginTop:2},children:"HTTP method"})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1},children:"we suggest to use HEAD as it is lighter unless there is reason to use any specific method."})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(_.Z,{variant:"outlined",fullWidth:!0,children:null==K?void 0:K.map(e=>(0,i.jsx)(S.Z,{onClick:()=>X(e),fullWidth:!0,sx:{backgroundColor:V===e?"primary.main":"white",color:V===e?"white":"primary.main","&:hover":{backgroundColor:V===e?"darkblue":"#f0f0f0"},borderColor:O.palette.text.secondary300},children:e},e))})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"14px",marginTop:1},children:"Request body"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sx:{fontWeight:500,fontSize:"14px"},children:(0,i.jsx)(T.Qr,{name:"request_body",control:e,render:e=>{var r;let{field:s}=e;return(0,i.jsx)(x.Z,{...s,placeholder:"{'key':'value'}",fullWidth:!0,multiline:!0,error:!!n.request_body,helperText:null===(r=n.request_body)||void 0===r?void 0:r.message})}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(u.Z,{control:(0,i.jsx)(v.Z,{}),label:"Send as JSON (application/JSON) ",sx:{fontWeight:400,fontSize:"14px"}})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1},children:"Data will be send as standard POST(application/x-www-foem-urlencoded) unless you checkin JSON option."})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"14px",marginTop:2},children:"Auth.type"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,sm:5,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"x_header_name",control:e,render:e=>{var r;let{field:s}=e;return(0,i.jsx)(x.Z,{...s,placeholder:"X-Header-Name",fullWidth:!0,error:!!n.request_body,helperText:null===(r=n.request_body)||void 0===r?void 0:r.message})}}),n.x_header_name&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.x_header_name.message})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:10,sm:5,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"value",control:e,render:e=>{var r;let{field:s}=e;return(0,i.jsx)(x.Z,{...s,placeholder:"value",fullWidth:!0,error:!!n.value,helperText:null===(r=n.value)||void 0===r?void 0:r.message})}}),n.value&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.value.message})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:2,children:(0,i.jsx)(b.Z,{size:"large",color:"error",children:(0,i.jsx)(N.Z,{})})})]})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(j.Z,{sx:{mt:1}})}),(0,i.jsx)(s.ZP,{item:!0,sm:12,children:(0,i.jsxs)(s.ZP,{container:!0,spacing:[1,1.5,2],children:[(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:500,fontSize:"14px",marginTop:2},children:"Add tags"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{variant:"body2",sx:{fontWeight:400,fontSize:"12px",marginTop:1},children:"Optional.we use this to group monitors, so you are able to easy manage them in bulk or organize on status page"})}),(0,i.jsx)(s.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{fullWidth:!0,children:[(0,i.jsx)(T.Qr,{name:"tag",control:e,render:e=>{var r;let{field:s}=e;return(0,i.jsx)(x.Z,{...s,placeholder:"Click to add tag",fullWidth:!0,error:!!n.tag,helperText:null===(r=n.tag)||void 0===r?void 0:r.message})}}),n.tag&&(0,i.jsx)(h.Z,{sx:{color:"error.main"},children:n.tag.message})]})})]})}),(0,i.jsxs)(s.ZP,{item:!0,xs:12,sx:{mt:5,display:"flex",justifyContent:"flex-end"},children:[(0,i.jsx)(z.Z,{loading:w,type:"submit",variant:"contained",size:"large",sx:{background:O.palette.background.lightgray,color:O.palette.text.secondary800,mr:2},children:"Cancel"}),(0,i.jsx)(z.Z,{loading:w,type:"submit",variant:"contained",color:"primary",size:"large",children:"Create Monitor"})]})]})})})]})})})}}},function(e){e.O(0,[9514,2909,6861,1642,2886,7536,4902,2216,2892,2530,6736,2888,9774,179],function(){return e(e.s=885974)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.