diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-10-13 22:02:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-13 22:02:42 +0300 |
commit | 703cd248680d9fd5bae647487ce702ec8d86410f (patch) | |
tree | 9213c98821728adad6798649fa39cb0f88f7a893 /applications/luci-app-statistics/luasrc/model | |
parent | 7eff2de5d4651bc64d0c35e73709a12f788ea04a (diff) | |
parent | 2d1830422b90d3dadc07b2d1ee05b0dc8ef7c583 (diff) |
Merge pull request #2209 from jinchizhong/luci-app-statistics-add-curl
luci-app-statistics: add support for cUrl
Diffstat (limited to 'applications/luci-app-statistics/luasrc/model')
-rw-r--r-- | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/curl.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/curl.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/curl.lua new file mode 100644 index 000000000..606e1cb0d --- /dev/null +++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/curl.lua @@ -0,0 +1,24 @@ +-- Copyright 2018 Chizhong Jin <pjincz@gmail.com> +-- Licensed to the public under the BSD 3-clause license + +m = Map("luci_statistics", + translate("cUrl Plugin Configuration")) + +s = m:section(NamedSection, "collectd_curl") +s_enable = s:option(Flag, "enable", translate("Enable this plugin")) +s_enable.default = 0 + +page = m:section(TypedSection, "collectd_curl_page") +page.addremove = true +page.anonymous = true +page.template = "cbi/tblsection" +page.sortable = true + +page_enable = page:option(Flag, "enable", translate("Enable")) +page_enable.default = 1 + +page_name = page:option(Value, "name", translate("Name")) + +page_addr = page:option(Value, "url", translate("URL")) + +return m |