splash_leases.lua 1.1 KB

123456789101112131415161718192021222324252627
  1. -- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. title = "%H: Splash Leases",
  7. vlabel = "Active Clients",
  8. y_min = "0",
  9. number_format = "%5.1lf",
  10. data = {
  11. sources = {
  12. splash_leases = { "leased", "whitelisted", "blacklisted" }
  13. },
  14. options = {
  15. splash_leases__leased = { color = "00CC00", title = "Leased", overlay = false },
  16. splash_leases__whitelisted = { color = "0000FF", title = "Whitelisted", overlay = false },
  17. splash_leases__blacklisted = { color = "FF0000", title = "Blacklisted", overlay = false }
  18. }
  19. }
  20. }
  21. end