<% set projects = fetch("https://api.wall-e.yandex-team.ru/v1/projects?tags=rtc&fields=id", parse="json").result|map(attribute="id")|list %>
<% set signals = [] %>
<% for p in projects %>
<% do signals.append("hosts-project-%s-hostman-ready-errors_attt"|format(p)) %>
<% endfor %>
[
  {
    "name": "rtc_manual.hostman-ready",
    "abc": "hostmanager",
    "signal": "sum(<<signals|join(", ")>>)",
    "mgroups": [
        "ASEARCH"
    ],
    "tags": {
        "itype": [
            "wallecron"
        ],
    },
    "juggler_check": {
        "refresh_time": 5,
        "tags": [
            "a_itype_runtimecloud",
            "a_mark_yasm_hostman_ready"
        ],
        "alert_interval": null,
        "notifications": [
            {
                "template_name": "on_status_change",
                "description": null,
                "template_kwargs": {
                    "status": [
                        "CRIT"
                    ],
                    "login": [
                        "hostman-dev"
                    ],
                    "method": [
                        "telegram"
                    ]
                }
            }
        ],
        "host": "yasm_hostman",
        "ttl": 900,
        "active": null,
        "check_options": null,
        "methods": [],
        "service": "hostman_ready",
        "aggregator": "logic_or",
        "namespace": "rtc",
        "mark": null,
        "aggregator_kwargs": {
            "nodata_mode": "force_crit"
        },
        "flaps": null,
        "active_kwargs": null
    },
    "warn": [
        10,
        20
    ],
    "crit": [
        20,
        null
    ]
  }
]
