1import{r as m,af as e,ao as p,ap as g,aq as h,ar as f}from"./vendor-B2oIjyY4.js";import{b,z as y,E as x,p as v,F as w,R as o,G as j,L as l,k as S,J as n,K as s,D as A,i as M}from"./main-CJK8sxkW.js";import{H as T}from"./resource-health-alerts-DfBbkWOr.js";import"./bounded-range-fetch-CggGfMWc.js";import"./vendor-charts-BqgCVUWx.js";import"./use-alerts-for-syncs-p4kreA7r.js";import"./utils-BcWOQ0Uw.js";import"./muted-badge-i6hCe4QD.js";const N=()=>{const c=b(),[u,t]=m.useState(!1),i=y(),r=x(),{workspace:a}=v(),d=async()=>{await r.mutateAsync({id:a==null?void 0:a.id,input:{alerting_v2_enabled:!0}}),await i.mutateAsync({}),c("/alerting")};return e.jsxs(e.Fragment,{children:[e.jsx(w,{hideLogos:!0,eyebrow:"Advanced Alerting",heading:"New alerting features are available for early access",description:"Detect, triage, and resolve issues with your syncs before they impact customers and internal teams. With advanced alerting, you can receive actionable alerts based on custom monitors for sync throughput, row-level errors, and other metrics. Reduce alert fatigue and set custom routing rules to loop in the relevant teams when things break. Now in beta.",visual:e.jsx(T,{editAlerts:p.noop,resourceId:"",statuses:[{conditionType:s.SyncRejectedRows,id:"throughput",eventTime:g(new Date,15).toISOString(),text:"More than 10% of rows were rejected during a sync run",displayStatus:n.Unhealthy,metadata:null},{conditionType:s.SyncDuration,id:"slow",eventTime:h(new Date,8).toISOString(),text:"Sync has been running for more than 2 hours",displayStatus:n.Warning,metadata:null},{conditionType:s.SyncSequentialFailures,id:"rejected",eventTime:f(new Date,2).toISOString(),text:"3 or more consecutive sync runs experienced fatal errors",displayStatus:n.Unhealthy,metadata:null}]}),actions:e.jsxs(o,{alignItems:"baseline",gap:4,children:[e.jsx(j,{unauthorizedTooltip:"You must be an admin to enable beta features",permission:{v2:{resource:"workspace",grant:"can_update"}},variant:"primary",onClick:()=>t(!0),children:"Enable beta features"}),e.jsxs(l,{href:"/extensions/alerting/configuration",children:["Continue to alerting settings ",e.jsx(S,{})]})]})}),e.jsx(A,{title:"Almost there! Please watch this video before migrating.",width:"4xl",isOpen:u,variant:"form",actions:e.jsxs(o,{alignItems:"baseline",justifyContent:"space-between",w:"100%",children:[e.jsx(l,{href:"",onClick:()=>t(!1),children:"Never mind, do not enable beta features"}),e.jsx(M,{isLoading:i.isLoading||r.isLoading,variant:"primary",onClick:()=>d(),children:"Enable and migrate existing alerts"})]}),onClose:()=>t(!1),children:e.jsx("video",{controls:!0,src:"https://cdn.sanity.io/files/pwmfmi47/production/494785d34ebf8fa1bc7086370f750a9696d21ae3.mp4",poster:"https://cdn.sanity.io/images/pwmfmi47/production/228a3f8aba24888f9b90ce33a61cc41fd8c469f6-1891x1064.jpg?fm=png"})})]})};export{N as AdvancedAlertingSplashPage}; 2//# sourceMappingURL=splash-page-BH6F8ZLv.js.map
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.