此处列出的所有功能均受支持:
下面列出的函数没有附加信息。点击该函数查看完整的详细信息。
/host/key
是引用主机监控项历史记录函数的常用强制性首选参数
(sec|#num)<:time shift>
是引用主机监控项历史记录函数的常用强制性次选参数 ,其中:
关于函数参数的一般性说明:
<
>
表示/host/key
和(sec|#num)<:time shift>
参数绝对不能加引号监控项的的未来值、最大值、最小值、增量或平均值。
支持的值类型:浮点、整数。
参数:
now
+ time
时刻的监控项值; max, min, delta 和avg预测在now
和 now
+ time
之间的间隔上估算监控项值。备注:
示例:
forecast(/host/key,#10,1h) #forecast the item value in one hour based on the last 10 values
forecast(/host/key,1h,30m) #forecast the item value in 30 minutes based on the last hour data
forecast(/host/key,1h:now-1d,12h) #forecast the item value in 12 hours based on one hour one day ago
forecast(/host/key,1h,10m,"exponential") #forecast the item value in 10 minutes based on the last hour data and exponential function
forecast(/host/key,1h,2h,"polynomial3","max") #forecast the maximum value the item can reach in the next two hours based on last hour data and cubic (third degree) polynomial
forecast(/host/key,#2,-20m) #estimate the item value 20 minutes ago based on the last two values (this can be more precise than using last(), especially if the item is updated rarely, say, once an hour)
监控项达到指定阈值所需的时间(以秒为单位)。
支持的值类型:浮点、整数。
参数:
备注:
示例:
timeleft(/host/key,#10,0) #the time until the item value reaches zero based on the last 10 values
timeleft(/host/key,1h,100) #the time until the item value reaches 100 based on the last hour data
timeleft(/host/key,1h:now-1d,100) #the time until the item value reaches 100 based on one hour one day ago
timeleft(/host/key,1h,200,"polynomial2") #the time until the item value reaches 200 based on the last hour data and assumption that the item behaves like a quadratic (second degree) polynomial
参见 所有支持的函数。