[{"data":1,"prerenderedAt":869},["ShallowReactive",2],{"navigation_docs":3,"-docs-definitions-alerts":150,"-docs-definitions-alerts-surround":864},[4,23,41,99,128],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Quickstart","\u002Fdocs\u002Fgetting-started\u002Fquickstart","docs\u002F1.getting-started\u002F2.quickstart",{"title":19,"path":20,"stem":21},"How it works","\u002Fdocs\u002Fgetting-started\u002Fhow-it-works","docs\u002F1.getting-started\u002F3.how-it-works",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Connect an app","i-lucide-plug","\u002Fdocs\u002Fconnect","docs\u002F2.connect",[29,33,37],{"title":30,"path":31,"stem":32},"Adonis","\u002Fdocs\u002Fconnect\u002Fadonis","docs\u002F2.connect\u002F1.adonis",{"title":34,"path":35,"stem":36},"NestJS","\u002Fdocs\u002Fconnect\u002Fnestjs","docs\u002F2.connect\u002F2.nestjs",{"title":38,"path":39,"stem":40},"Any stack, no SDK","\u002Fdocs\u002Fconnect\u002Fany-stack","docs\u002F2.connect\u002F3.any-stack",{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":22},"Definitions","i-lucide-code","\u002Fdocs\u002Fdefinitions","docs\u002F3.definitions",[47,51,55,59,63,67,71,75,79,83,87,91,95],{"title":48,"path":49,"stem":50},"Overview","\u002Fdocs\u002Fdefinitions\u002Foverview","docs\u002F3.definitions\u002F01.overview",{"title":52,"path":53,"stem":54},"Log renderers","\u002Fdocs\u002Fdefinitions\u002Flog-renderers","docs\u002F3.definitions\u002F02.log-renderers",{"title":56,"path":57,"stem":58},"Error renderers","\u002Fdocs\u002Fdefinitions\u002Ferror-renderers","docs\u002F3.definitions\u002F03.error-renderers",{"title":60,"path":61,"stem":62},"Processes","\u002Fdocs\u002Fdefinitions\u002Fprocesses","docs\u002F3.definitions\u002F04.processes",{"title":64,"path":65,"stem":66},"Pages","\u002Fdocs\u002Fdefinitions\u002Fpages","docs\u002F3.definitions\u002F05.pages",{"title":68,"path":69,"stem":70},"Dashboards","\u002Fdocs\u002Fdefinitions\u002Fdashboards","docs\u002F3.definitions\u002F06.dashboards",{"title":72,"path":73,"stem":74},"Alerts","\u002Fdocs\u002Fdefinitions\u002Falerts","docs\u002F3.definitions\u002F07.alerts",{"title":76,"path":77,"stem":78},"Monitors","\u002Fdocs\u002Fdefinitions\u002Fmonitors","docs\u002F3.definitions\u002F08.monitors",{"title":80,"path":81,"stem":82},"Status page","\u002Fdocs\u002Fdefinitions\u002Fstatus-page","docs\u002F3.definitions\u002F09.status-page",{"title":84,"path":85,"stem":86},"Tools","\u002Fdocs\u002Fdefinitions\u002Ftools","docs\u002F3.definitions\u002F10.tools",{"title":88,"path":89,"stem":90},"Redactors","\u002Fdocs\u002Fdefinitions\u002Fredactors","docs\u002F3.definitions\u002F11.redactors",{"title":92,"path":93,"stem":94},"Catalog","\u002Fdocs\u002Fdefinitions\u002Fcatalog","docs\u002F3.definitions\u002F12.catalog",{"title":96,"path":97,"stem":98},"More definitions","\u002Fdocs\u002Fdefinitions\u002Fmore","docs\u002F3.definitions\u002F13.more",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":22},"Features","i-lucide-layers","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[105,109,112,116,120,124],{"title":106,"path":107,"stem":108},"Tasks","\u002Fdocs\u002Ffeatures\u002Ftasks","docs\u002F4.features\u002F1.tasks",{"title":80,"path":110,"stem":111},"\u002Fdocs\u002Ffeatures\u002Fstatus-page","docs\u002F4.features\u002F2.status-page",{"title":113,"path":114,"stem":115},"Alerts and notifications","\u002Fdocs\u002Ffeatures\u002Falerts","docs\u002F4.features\u002F3.alerts",{"title":117,"path":118,"stem":119},"MCP","\u002Fdocs\u002Ffeatures\u002Fmcp","docs\u002F4.features\u002F4.mcp",{"title":121,"path":122,"stem":123},"Releases","\u002Fdocs\u002Ffeatures\u002Freleases","docs\u002F4.features\u002F5.releases",{"title":125,"path":126,"stem":127},"Ask Vigie","\u002Fdocs\u002Ffeatures\u002Fask-vigie","docs\u002F4.features\u002F6.ask-vigie",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":22},"Self-hosting","i-lucide-server","\u002Fdocs\u002Fself-hosting","docs\u002F5.self-hosting",[134,138,142,146],{"title":135,"path":136,"stem":137},"Deploy","\u002Fdocs\u002Fself-hosting\u002Fdeploy","docs\u002F5.self-hosting\u002F1.deploy",{"title":139,"path":140,"stem":141},"Configuration","\u002Fdocs\u002Fself-hosting\u002Fconfiguration","docs\u002F5.self-hosting\u002F2.configuration",{"title":143,"path":144,"stem":145},"Security","\u002Fdocs\u002Fself-hosting\u002Fsecurity","docs\u002F5.self-hosting\u002F3.security",{"title":147,"path":148,"stem":149},"Backups and retention","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F5.self-hosting\u002F4.backups",{"id":151,"title":72,"body":152,"description":858,"extension":859,"links":860,"meta":861,"navigation":204,"path":73,"seo":862,"stem":74,"__hash__":863},"docs\u002Fdocs\u002F3.definitions\u002F07.alerts.md",{"type":153,"value":154,"toc":854},"minimark",[155,601,606,762,766,843,850],[156,157,163],"pre",{"className":158,"code":159,"filename":160,"language":161,"meta":162,"style":162},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineAlert } from 'vigie\u002Fsdk'\n\nexport const checkoutP95 = defineAlert({\n  id: 'checkout-p95',\n  name: 'Checkout slow',\n  family: 'Endpoint',\n  when: { source: 'route-p95', method: 'POST', route: '\u002Forders\u002F:id\u002Fcheckout', minRequests: 20 },\n  above: 2000,\n  window: '10m',\n  unit: 'ms',\n})\n\nexport const noPayments = defineAlert({\n  id: 'no-payments',\n  name: 'No payments ingested',\n  family: 'No activity',\n  when: { source: 'absence', taskKind: 'paynest.payment.ingest' },\n  below: 1,\n  window: '30m',\n  quiet: { from: '00:00', to: '07:00', timezone: 'Europe\u002FParis' },\n})\n","definitions\u002Falerts\u002Facme.ts","ts","",[164,165,166,199,206,231,252,269,286,351,364,381,398,407,412,430,446,462,478,514,527,543,594],"code",{"__ignoreMap":162},[167,168,171,175,179,183,186,189,192,196],"span",{"class":169,"line":170},"line",1,[167,172,174],{"class":173},"s7zQu","import",[167,176,178],{"class":177},"sMK4o"," {",[167,180,182],{"class":181},"sTEyZ"," defineAlert",[167,184,185],{"class":177}," }",[167,187,188],{"class":173}," from",[167,190,191],{"class":177}," '",[167,193,195],{"class":194},"sfazB","vigie\u002Fsdk",[167,197,198],{"class":177},"'\n",[167,200,202],{"class":169,"line":201},2,[167,203,205],{"emptyLinePlaceholder":204},true,"\n",[167,207,209,212,216,219,222,225,228],{"class":169,"line":208},3,[167,210,211],{"class":173},"export",[167,213,215],{"class":214},"spNyl"," const",[167,217,218],{"class":181}," checkoutP95 ",[167,220,221],{"class":177},"=",[167,223,182],{"class":224},"s2Zo4",[167,226,227],{"class":181},"(",[167,229,230],{"class":177},"{\n",[167,232,234,238,241,243,246,249],{"class":169,"line":233},4,[167,235,237],{"class":236},"swJcz","  id",[167,239,240],{"class":177},":",[167,242,191],{"class":177},[167,244,245],{"class":194},"checkout-p95",[167,247,248],{"class":177},"'",[167,250,251],{"class":177},",\n",[167,253,255,258,260,262,265,267],{"class":169,"line":254},5,[167,256,257],{"class":236},"  name",[167,259,240],{"class":177},[167,261,191],{"class":177},[167,263,264],{"class":194},"Checkout slow",[167,266,248],{"class":177},[167,268,251],{"class":177},[167,270,272,275,277,279,282,284],{"class":169,"line":271},6,[167,273,274],{"class":236},"  family",[167,276,240],{"class":177},[167,278,191],{"class":177},[167,280,281],{"class":194},"Endpoint",[167,283,248],{"class":177},[167,285,251],{"class":177},[167,287,289,292,294,296,299,301,303,306,308,311,314,316,318,321,323,325,328,330,332,335,337,339,342,344,348],{"class":169,"line":288},7,[167,290,291],{"class":236},"  when",[167,293,240],{"class":177},[167,295,178],{"class":177},[167,297,298],{"class":236}," source",[167,300,240],{"class":177},[167,302,191],{"class":177},[167,304,305],{"class":194},"route-p95",[167,307,248],{"class":177},[167,309,310],{"class":177},",",[167,312,313],{"class":236}," method",[167,315,240],{"class":177},[167,317,191],{"class":177},[167,319,320],{"class":194},"POST",[167,322,248],{"class":177},[167,324,310],{"class":177},[167,326,327],{"class":236}," route",[167,329,240],{"class":177},[167,331,191],{"class":177},[167,333,334],{"class":194},"\u002Forders\u002F:id\u002Fcheckout",[167,336,248],{"class":177},[167,338,310],{"class":177},[167,340,341],{"class":236}," minRequests",[167,343,240],{"class":177},[167,345,347],{"class":346},"sbssI"," 20",[167,349,350],{"class":177}," },\n",[167,352,354,357,359,362],{"class":169,"line":353},8,[167,355,356],{"class":236},"  above",[167,358,240],{"class":177},[167,360,361],{"class":346}," 2000",[167,363,251],{"class":177},[167,365,367,370,372,374,377,379],{"class":169,"line":366},9,[167,368,369],{"class":236},"  window",[167,371,240],{"class":177},[167,373,191],{"class":177},[167,375,376],{"class":194},"10m",[167,378,248],{"class":177},[167,380,251],{"class":177},[167,382,384,387,389,391,394,396],{"class":169,"line":383},10,[167,385,386],{"class":236},"  unit",[167,388,240],{"class":177},[167,390,191],{"class":177},[167,392,393],{"class":194},"ms",[167,395,248],{"class":177},[167,397,251],{"class":177},[167,399,401,404],{"class":169,"line":400},11,[167,402,403],{"class":177},"}",[167,405,406],{"class":181},")\n",[167,408,410],{"class":169,"line":409},12,[167,411,205],{"emptyLinePlaceholder":204},[167,413,415,417,419,422,424,426,428],{"class":169,"line":414},13,[167,416,211],{"class":173},[167,418,215],{"class":214},[167,420,421],{"class":181}," noPayments ",[167,423,221],{"class":177},[167,425,182],{"class":224},[167,427,227],{"class":181},[167,429,230],{"class":177},[167,431,433,435,437,439,442,444],{"class":169,"line":432},14,[167,434,237],{"class":236},[167,436,240],{"class":177},[167,438,191],{"class":177},[167,440,441],{"class":194},"no-payments",[167,443,248],{"class":177},[167,445,251],{"class":177},[167,447,449,451,453,455,458,460],{"class":169,"line":448},15,[167,450,257],{"class":236},[167,452,240],{"class":177},[167,454,191],{"class":177},[167,456,457],{"class":194},"No payments ingested",[167,459,248],{"class":177},[167,461,251],{"class":177},[167,463,465,467,469,471,474,476],{"class":169,"line":464},16,[167,466,274],{"class":236},[167,468,240],{"class":177},[167,470,191],{"class":177},[167,472,473],{"class":194},"No activity",[167,475,248],{"class":177},[167,477,251],{"class":177},[167,479,481,483,485,487,489,491,493,496,498,500,503,505,507,510,512],{"class":169,"line":480},17,[167,482,291],{"class":236},[167,484,240],{"class":177},[167,486,178],{"class":177},[167,488,298],{"class":236},[167,490,240],{"class":177},[167,492,191],{"class":177},[167,494,495],{"class":194},"absence",[167,497,248],{"class":177},[167,499,310],{"class":177},[167,501,502],{"class":236}," taskKind",[167,504,240],{"class":177},[167,506,191],{"class":177},[167,508,509],{"class":194},"paynest.payment.ingest",[167,511,248],{"class":177},[167,513,350],{"class":177},[167,515,517,520,522,525],{"class":169,"line":516},18,[167,518,519],{"class":236},"  below",[167,521,240],{"class":177},[167,523,524],{"class":346}," 1",[167,526,251],{"class":177},[167,528,530,532,534,536,539,541],{"class":169,"line":529},19,[167,531,369],{"class":236},[167,533,240],{"class":177},[167,535,191],{"class":177},[167,537,538],{"class":194},"30m",[167,540,248],{"class":177},[167,542,251],{"class":177},[167,544,546,549,551,553,555,557,559,562,564,566,569,571,573,576,578,580,583,585,587,590,592],{"class":169,"line":545},20,[167,547,548],{"class":236},"  quiet",[167,550,240],{"class":177},[167,552,178],{"class":177},[167,554,188],{"class":236},[167,556,240],{"class":177},[167,558,191],{"class":177},[167,560,561],{"class":194},"00:00",[167,563,248],{"class":177},[167,565,310],{"class":177},[167,567,568],{"class":236}," to",[167,570,240],{"class":177},[167,572,191],{"class":177},[167,574,575],{"class":194},"07:00",[167,577,248],{"class":177},[167,579,310],{"class":177},[167,581,582],{"class":236}," timezone",[167,584,240],{"class":177},[167,586,191],{"class":177},[167,588,589],{"class":194},"Europe\u002FParis",[167,591,248],{"class":177},[167,593,350],{"class":177},[167,595,597,599],{"class":169,"line":596},21,[167,598,403],{"class":177},[167,600,406],{"class":181},[602,603,605],"h2",{"id":604},"what-to-watch","What to watch",[607,608,609,624],"table",{},[610,611,612],"thead",{},[613,614,615,621],"tr",{},[616,617,618],"th",{},[164,619,620],{},"when.source",[616,622,623],{},"Value",[625,626,627,638,651,665,675,688,702,735,745],"tbody",{},[613,628,629,635],{},[630,631,632],"td",{},[164,633,634],{},"request-error-rate",[630,636,637],{},"Share of requests that answered 5xx, in %.",[613,639,640,644],{},[630,641,642],{},[164,643,305],{},[630,645,646,647,650],{},"p95 duration of one route, or of every route. ",[164,648,649],{},"minRequests"," ignores quiet windows.",[613,652,653,658],{},[630,654,655],{},[164,656,657],{},"task-failure-rate",[630,659,660,661,664],{},"Share of failed task attempts, in %, for one ",[164,662,663],{},"kind"," or all.",[613,666,667,672],{},[630,668,669],{},[164,670,671],{},"oldest-due",[630,673,674],{},"Age of the oldest task waiting for a worker, in seconds.",[613,676,677,681],{},[630,678,679],{},[164,680,495],{},[630,682,683,684,687],{},"Attempts of a task kind. Use with ",[164,685,686],{},"below: 1",".",[613,689,690,695],{},[630,691,692],{},[164,693,694],{},"log-count",[630,696,697,698,701],{},"Events matching ",[164,699,700],{},"where"," fields.",[613,703,704,709],{},[630,705,706],{},[164,707,708],{},"metric",[630,710,711,712,715,716,719,720,723,724,727,728,731,732,687],{},"A metric by ",[164,713,714],{},"name",", with ",[164,717,718],{},"agg"," ",[164,721,722],{},"avg",", ",[164,725,726],{},"max"," or ",[164,729,730],{},"latest",", and ",[164,733,734],{},"attributes",[613,736,737,742],{},[630,738,739],{},[164,740,741],{},"new-error",[630,743,744],{},"An error never seen before.",[613,746,747,752],{},[630,748,749],{},[164,750,751],{},"sql",[630,753,754,755,758,759,687],{},"Any query returning ",[164,756,757],{},"t"," and ",[164,760,761],{},"v",[602,763,765],{"id":764},"when-it-fires","When it fires",[607,767,768,778],{},[610,769,770],{},[613,771,772,775],{},[616,773,774],{},"Field",[616,776,777],{},"What it does",[625,779,780,793,803,813,823,833],{},[613,781,782,790],{},[630,783,784,723,787],{},[164,785,786],{},"above",[164,788,789],{},"below",[630,791,792],{},"A fixed threshold.",[613,794,795,800],{},[630,796,797],{},[164,798,799],{},"sigma",[630,801,802],{},"Fire when the value is that many standard deviations above its own last 7 days, instead of a fixed threshold.",[613,804,805,810],{},[630,806,807],{},[164,808,809],{},"window",[630,811,812],{},"The time the value is computed over.",[613,814,815,820],{},[630,816,817],{},[164,818,819],{},"for",[630,821,822],{},"How long it has to hold before firing.",[613,824,825,830],{},[630,826,827],{},[164,828,829],{},"quiet",[630,831,832],{},"Hours when it keeps recording but holds the notification until they end.",[613,834,835,840],{},[630,836,837],{},[164,838,839],{},"notify",[630,841,842],{},"One channel by name. Without it, every channel. A name that no longer exists falls back to every channel: an alert never goes silent.",[844,845,846,847,687],"p",{},"Alerts that fire within 30 seconds of each other go out as one message, with the errors behind them and what to do. See ",[848,849,113],"a",{"href":114},[851,852,853],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":162,"searchDepth":201,"depth":201,"links":855},[856,857],{"id":604,"depth":201,"text":605},{"id":764,"depth":201,"text":765},"defineAlert watches error rates, latency, tasks, metrics, missing activity or any SQL, every 30 seconds.","md",null,{},{"title":72,"description":858},"2YhA2hHBez4scTARqCfHhBcsmH9LgSIc6VvLnwdD5GE",[865,867],{"title":68,"path":69,"stem":70,"description":866,"children":-1},"defineDashboard lays out widgets from SQL on a 12-column grid.",{"title":76,"path":77,"stem":78,"description":868,"children":-1},"defineMonitor checks a URL every minute and opens an outage after two failures in a row.",1795043962290]