2020-02-13 19:45:26 +00:00
|
|
|
/*
|
|
|
|
Copyright 2013 Thomas Endt <tmo26@gmx.de>
|
|
|
|
|
2020-05-06 15:14:25 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the License).
|
|
|
|
You may not use this file except in compliance with the License.
|
2020-02-13 19:45:26 +00:00
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
2020-04-03 08:00:06 +00:00
|
|
|
'require baseclass';
|
2020-02-13 19:45:26 +00:00
|
|
|
|
2020-04-03 08:00:06 +00:00
|
|
|
return baseclass.extend({
|
2020-02-13 19:45:26 +00:00
|
|
|
title: _('Uptime'),
|
|
|
|
|
|
|
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
|
|
|
return {
|
|
|
|
title: "%H: Uptime",
|
|
|
|
vlabel: "seconds",
|
|
|
|
number_format: "%5.0lf%s",
|
|
|
|
data: {
|
|
|
|
types: [ "uptime" ],
|
|
|
|
options: {
|
|
|
|
uptime: {
|
|
|
|
title: "Uptime %di",
|
|
|
|
noarea: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|