Rework LuCI build system
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / splash_leases.lua
1 --[[
2     
3 Luci statistics - splash_leases plugin diagram definition
4 (c) 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
5                                      
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at             
9                        
10     http://www.apache.org/licenses/LICENSE-2.0
11                           
12
13 ]]--
14     
15 module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
16                                        
17 function rrdargs( graph, plugin, plugin_instance, dtype )
18                              
19     return {
20         title = "%H: Splash Leases",
21         vlabel = "Active Clients",  
22         y_min = "0",          
23         number_format = "%5.1lf",
24         data = {         
25             sources = {
26                 splash_leases = { "leased", "whitelisted", "blacklisted" }
27             },                                
28               
29             options = {
30                 splash_leases__leased      = { color = "00CC00", title = "Leased",      overlay = false },
31                 splash_leases__whitelisted = { color = "0000FF", title = "Whitelisted", overlay = false },
32                 splash_leases__blacklisted = { color = "FF0000", title = "Blacklisted", overlay = false } 
33             }                                                 
34         }    
35     }
36
37 end