summaryrefslogtreecommitdiff
path: root/doc/counter-api.txt
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2010-06-30 19:22:55 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-06-30 19:28:16 +0200
commit5de3cf4ef49b9a66866bd8bd0cdcfaaf767577c9 (patch)
tree18aff7ae941d9716f51eb0fcaa3091c985f0aca9 /doc/counter-api.txt
parent14236b2a2b6121963d1fc1e1eead753a380498f2 (diff)
downloadconnman-5de3cf4ef49b9a66866bd8bd0cdcfaaf767577c9.tar.gz
connman-5de3cf4ef49b9a66866bd8bd0cdcfaaf767577c9.tar.bz2
connman-5de3cf4ef49b9a66866bd8bd0cdcfaaf767577c9.zip
Update service statistics
Instead of collecting statistics on interface name base and storing it local in counter.c, update the Service object. counter.c maps interface names to Service objects. The assumption is made that there is a 1:1 mapping between Service objects and interface name. A Counter object will only show Service object statistics for services in the ready state. There is no interface (yet) for retrieving information on Service objects in idle/failure/configuration/.. state.
Diffstat (limited to 'doc/counter-api.txt')
-rw-r--r--doc/counter-api.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/counter-api.txt b/doc/counter-api.txt
index 593e932d..14e5a010 100644
--- a/doc/counter-api.txt
+++ b/doc/counter-api.txt
@@ -12,3 +12,22 @@ Methods void Release()
cleanup tasks. There is no need to unregister the
counter, because when this method gets called it has
already been unregistered.
+
+ Usage(object service, dict)
+
+ This signal indicates a change in the counter values
+ for the service object. The counter is reset by calling
+ the service ResetCounters method.
+
+ The dict argument contains following entries:
+
+ TX.Bytes
+
+ Total number of bytes sent.
+
+ RX.Bytes
+
+ Total number of bytes received.
+
+ Time
+ Total number of seconds online.