summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/rrdtool
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-10-13 22:02:42 +0300
committerGitHub <noreply@github.com>2018-10-13 22:02:42 +0300
commit703cd248680d9fd5bae647487ce702ec8d86410f (patch)
tree9213c98821728adad6798649fa39cb0f88f7a893 /applications/luci-app-statistics/luasrc/statistics/rrdtool
parent7eff2de5d4651bc64d0c35e73709a12f788ea04a (diff)
parent2d1830422b90d3dadc07b2d1ee05b0dc8ef7c583 (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/statistics/rrdtool')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/curl.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/curl.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/curl.lua
new file mode 100644
index 000000000..89a65a6b5
--- /dev/null
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/curl.lua
@@ -0,0 +1,22 @@
+-- Copyright 2018 Chizhong Jin <pjincz@gmail.com>
+-- Licensed to the public under the BSD 3-clause license
+
+module("luci.statistics.rrdtool.definitions.curl", package.seeall)
+
+function rrdargs( graph, plugin, plugin_instance, dtype )
+ return {
+ title = "%H: cUrl Response Time for #%pi",
+ y_min = "0",
+ alt_autoscale_max = true,
+ vlabel = "Response Time",
+ number_format = "%5.1lf%Ss",
+ data = {
+ types = { "response_time" },
+ options = {
+ response_time = {
+ title = ""
+ }
+ }
+ }
+ }
+end