{% extends "portal/layout.html" %} {% block content %}
模板基本信息
name: {{ data.tpl.tpl_name }} {% if data.tpl.parent %} ¦ parent: {{ data.tpl.parent.tpl_name }} {% endif %}
{% if data.tpl.writable(g.user) %} {% endif %}
该模板中的策略列表
max: 最大报警次数 P:报警级别(<3: 既发短信也发邮件 >=3: 只发邮件) run:生效时间,不指定就是全天生效
{% for s in data.ss %} {% else %} {% endfor %}
metric/tags [note] condition max P run
{{ s.metric }}{% if s.tags %}/{{ s.tags }}{% endif %} {% if s.note %}[{{ s.note }}]{% endif %} {{ s.func }}{{ s.op }}{{ s.right_value }} {{ s.max_step }} {{ s.priority }} {% if s.run_begin and s.run_end %}{{ s.run_begin }}-{{ s.run_end }}{% endif %}
no records
模板报警配置,对模板中的所有策略生效
{% if data.tpl.action %} uic: {{ data.tpl.action.uic_href() | safe }}
{% else %} 没有配置报警接收人哦
{% endif %} {% if data.tpl.action.url %}
callback: {{ data.tpl.action.url }}
{% endif %}
{% endblock %}