Commit 7db7e7c8 authored by Thorsten Simons's avatar Thorsten Simons

1.4.3 - documentation updates

parent cf46e086
......@@ -127,45 +127,41 @@ Rules:
Columns in the ``logrecs`` table
--------------------------------
=============== ======= ========================================================
column type description
=============== ======= ========================================================
node TEXT the HCP nodes backend IP address
--------------- ------- --------------------------------------------------------
clientip TEXT the requesting clients IP address
--------------- ------- --------------------------------------------------------
user TEXT the user who did the request
--------------- ------- --------------------------------------------------------
timestamp FLOAT the point in time of the request (seconds since Epoch)
--------------- ------- --------------------------------------------------------
timestampstr TEXT the point in time of the request (string)
--------------- ------- --------------------------------------------------------
request TEXT the HTTP request
--------------- ------- --------------------------------------------------------
path TEXT the requested object
--------------- ------- --------------------------------------------------------
httpcode INT the HTTP return code
--------------- ------- --------------------------------------------------------
size INT the size of the transfers body
--------------- ------- --------------------------------------------------------
namespace TEXT the HCP Namespace accessed
--------------- ------- --------------------------------------------------------
latency INT the internal latency needed to fullfil the request
=============== ======= ========================================================
Non-standard SQL functions
--------------------------
* ``tp(size, latency)``
Calculates the throughput (in bytes/second) from an objects size and the
internal latency.
================ ======= ========================================================
column type description
================ ======= ========================================================
``node`` TEXT the HCP nodes backend IP address
---------------- ------- --------------------------------------------------------
``clientip`` TEXT the requesting clients IP address
---------------- ------- --------------------------------------------------------
``user`` TEXT the user who did the request
---------------- ------- --------------------------------------------------------
``timestamp`` FLOAT the point in time of the request (seconds since Epoch)
---------------- ------- --------------------------------------------------------
``timestampstr`` TEXT the point in time of the request (string)
---------------- ------- --------------------------------------------------------
``request`` TEXT the HTTP request
---------------- ------- --------------------------------------------------------
``path`` TEXT the requested object
---------------- ------- --------------------------------------------------------
``httpcode`` INT the HTTP return code
---------------- ------- --------------------------------------------------------
``size`` INT the size of the transfers body
---------------- ------- --------------------------------------------------------
``namespace`` TEXT the HCP Namespace accessed (usually, in the form of
``namespace.tenant[@protocol]``)
---------------- ------- --------------------------------------------------------
``latency`` INT the internal latency needed to fullfil the request
================ ======= ========================================================
Private SQL functions that can be used in queries
-------------------------------------------------
* ``getNamespace(path, namespace)``
Extract the name of the Namespace (bucket, container) from the ``path`` and
``namespace`` database column.
``namespace`` database columns.
* ``getTenant(namespace)``
......@@ -174,14 +170,12 @@ Non-standard SQL functions
* ``getProtocol(namespace)``
Extract the access protocol used from the ``namespace`` database column.
Non-standard SQL aggregate functions
------------------------------------
Returns either ``S3``, ``Swift`` or ``native REST``.
* ``percentile(column, float)``
Calculates the percentage (given by *float*) of *column* from all selected
records.
Aggregate function that calculates the percentage (given by *float*) of
*column* from all selected records.
.. Warning::
......@@ -193,4 +187,8 @@ Non-standard SQL aggregate functions
* no of rows selected
* 24 bytes
* ``tp(size, latency)``
Calculates the throughput (in bytes/second) from an objects size and the
internal latency.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment