splash_leases.js 823 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
  3. * Licensed to the public under the Apache License 2.0.
  4. */
  5. 'use strict';
  6. 'require baseclass';
  7. return baseclass.extend({
  8. title: _('Splash Leases'),
  9. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  10. return {
  11. title: "%H: Splash Leases",
  12. vlabel: "Active Clients",
  13. y_min: "0",
  14. number_format: "%5.1lf",
  15. data: {
  16. sources: {
  17. splash_leases: [ "leased", "whitelisted", "blacklisted" ]
  18. },
  19. options: {
  20. splash_leases__leased : { color: "00CC00", title: "Leased", overlay: false },
  21. splash_leases__whitelisted: { color: "0000FF", title: "Whitelisted", overlay: false },
  22. splash_leases__blacklisted: { color: "FF0000", title: "Blacklisted", overlay: false }
  23. }
  24. }
  25. };
  26. }
  27. });