尝试创建一个仅显示20分钟停机时间的门户。无法让startime正常工作。已尝试2种不同的格式。总是从1970年1月1日开始。请给我建议。
[configuration]
title = ECP_PROD_PEAKVIEW
width-units = 6
height-units = 8
offset-right = 50
update-interval = 15
display-date = true
startime = 2017-12-21 09:20:00
endtime = 2017-12-21 09:45:00
auto-scale = true
auto-period = true
entity = dnvrco-ecp01
endtime = now
alert-style = fill: red; stroke: red
and
[configuration]
title = ECP_PROD_PEAKVIEW
width-units = 6
height-units = 8
offset-right = 50
update-interval = 15
display-date = true
startime = 2017-12-21T09:20:00Z
endtime = 2017-12-21T09:45:00Z
auto-scale = true
auto-period = true
entity = dnvrco-ecp01
endtime = now
alert-style = fill: red; stroke: red发布于 2017-12-22 19:09:54
看起来startime设置缺少t。
starttime = 2017-12-21 09:20:00 可以添加短划线符号以使参数更具可读性:
start-time = 2017-12-21 09:20:00
end-time = 2017-12-21 09:45:00示例:https://apps.axibase.com/chartlab/47fbef76
我还会删除[configuration]部分中的duplicate endtime设置。
如果需要显示最近的20分钟,只需指定timespan并删除start-time和end-time即可。
start-time和end-time设置都接受calendar expressions。
start-time = previous_hour
end-time = current_hour或者,或者:
timespan = 1 hour
end-time = current_hourhttps://stackoverflow.com/questions/47931568
复制相似问题