{$layout} {$template "/code_editor"} {$template "menu"}

监控项 修改

{$ if not ( isNil .sourcePresentation ) }
{$ end} {$ if not ( isNil .sourcePresentation ) } {$.sourcePresentation.HTML} {$end}
监控项名称 {{item.name}}
是否启用 启用中 未启用   快速启用 快速关闭
AgentID {{agentId}}
AppID {{app.id}}
监控项ID {{item.id}}

可以在Agent主机上通过运行 bin/teaweb-agent run {{item.id}} 来测试这个监控项的数据源

数据源 {{sourceOptions.summary.name}}   立即执行

{{sourceOptions.summary.description}}提供的数据变量

该数据源提供的数据变量: - {{var1.description}}
数据格式 {{sourceOptions.dataFormat.name}} 没有设置
刷新间隔 {{item.interval}}
阈值设置(通知触发条件) 还没有设置
{{threshold.param}} {{threshold.operator}} {{threshold.value}} [{{threshold.levelName}}:{{threshold.noticeMessage}}] [{{threshold.levelName}}] [{{threshold.actions.length}}动作] [连续{{threshold.maxFails}}次]
成功判定 {{item.recoverSuccesses}}次

如果因为触发了某个阈值而发生了错误,则在{{item.recoverSuccesses}}次成功获取数据后,发送成功级别的通知。

外部监控API 点此查看
/api/v1/agent/{{agent.id}}/app/{{app.id}}/item/{{item.id}}/latest?TeaKey=当前登录用户密钥

可以通过此API获取该监控项的最新的一条数值记录,点这里查看帮助