Rework LuCI build system
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / conntrack.lua
1 --[[
2
3 Luci statistics - conntrack plugin diagram definition
4 (c) 2011 Jo-Philipp Wich <xm@subsignal.org>
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 $Id$
13
14 ]]--
15
16 module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
17
18 function rrdargs( graph, plugin, plugin_instance, dtype )
19         return {
20                 title = "%H: Conntrack entries",
21                 vlabel = "Count",
22                 number_format = "%5.0lf",
23                 data = {
24                         sources = {
25                                 conntrack = { "value" }
26                         },
27                         options = {
28                                 conntrack = { 
29                                         color = "0000ff",
30                                         title = "Tracked connections"
31                                 }
32                         }
33                 }
34         }
35 end