<% import 'saas_disaster_alerts.macros' as alerts_macros %>
<% from 'saas_disaster_alerts_services' import services %>

<% set alerts = [
    {
        "name": "5xx-rate",
        "signal": "div(
            saas_unistat-search-{ctype}-{service}-5xx_dmmm,
            sum(
                saas_unistat-search-{ctype}-{service}-2xx_dmmm,
                saas_unistat-search-{ctype}-{service}-5xx_dmmm,
                mul(const(99), normal())
            )
        )",
        "limits": (0.01, 0.15),
        "description": "SAAS 5xx searchproxy alerts"
    }
] %>

<< alerts_macros.generate(services, alerts) >>
