Skip to content

Commit

Permalink
http_client Change names of counters and RPC call
Browse files Browse the repository at this point in the history
  • Loading branch information
oej committed Feb 3, 2016
1 parent 9ffff61 commit 0af10a2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
34 changes: 17 additions & 17 deletions modules/http_client/README
Expand Up @@ -56,13 +56,13 @@ Carsten Bock

6. RPC Commands

6.1. curl.listcon
6.1. httpclient.listcon

7. Counters

7.1. curl.connections
7.2. curl.connok
7.3. curl.connfail
7.1. httpclient.connections
7.2. httpclient.connok
7.3. httpclient.connfail

List of Examples

Expand Down Expand Up @@ -115,13 +115,13 @@ Chapter 1. Admin Guide

6. RPC Commands

6.1. curl.listcon
6.1. httpclient.listcon

7. Counters

7.1. curl.connections
7.2. curl.connok
7.3. curl.connfail
7.1. httpclient.connections
7.2. httpclient.connok
7.3. httpclient.connfail

1. Overview

Expand Down Expand Up @@ -458,29 +458,29 @@ switch ($retcode) {

6. RPC Commands

6.1. curl.listcon
6.1. httpclient.listcon

6.1. curl.listcon
6.1. httpclient.listcon

Lists all defined CURL connections
Lists all defined connections

Parameters:
* No parameters

7. Counters

7.1. curl.connections
7.2. curl.connok
7.3. curl.connfail
7.1. httpclient.connections
7.2. httpclient.connok
7.3. httpclient.connfail

7.1. curl.connections
7.1. httpclient.connections

The number of connection definitions that are in-memory.

7.2. curl.connok
7.2. httpclient.connok

The number of successful connections since Kamailio start

7.3. curl.connfail
7.3. httpclient.connfail

The number of failed connections since Kamailio start
2 changes: 1 addition & 1 deletion modules/http_client/curlrpc.c
Expand Up @@ -89,7 +89,7 @@ static void curl_rpc_listcon(rpc_t* rpc, void* ctx)
}

rpc_export_t curl_rpc_cmds[] = {
{"curl.listcon", curl_rpc_listcon,
{"httpclient.listcon", curl_rpc_listcon,
curl_rpc_listcon_doc, 0},
{0, 0, 0, 0}
};
Expand Down
10 changes: 5 additions & 5 deletions modules/http_client/doc/http_client_admin.xml
Expand Up @@ -495,9 +495,9 @@ switch ($retcode) {
<section>
<title>RPC Commands</title>
<section>
<title><function moreinfo="none">curl.listcon</function></title>
<title><function moreinfo="none">httpclient.listcon</function></title>
<para>
Lists all defined CURL connections
Lists all defined connections
</para>
<para>Parameters:</para>
<itemizedlist>
Expand All @@ -510,23 +510,23 @@ switch ($retcode) {
<title>Counters</title>
<section >
<title>
<function moreinfo="none">curl.connections</function>
<function moreinfo="none">httpclient.connections</function>
</title>
<para>
The number of connection definitions that are in-memory.
</para>
</section>
<section >
<title>
<function moreinfo="none">curl.connok</function>
<function moreinfo="none">httpclient.connok</function>
</title>
<para>
The number of successful connections since &kamailio; start
</para>
</section>
<section >
<title>
<function moreinfo="none">curl.connfail</function>
<function moreinfo="none">httpclient.connfail</function>
</title>
<para>
The number of failed connections since &kamailio; start
Expand Down
6 changes: 3 additions & 3 deletions modules/http_client/http_client.c
Expand Up @@ -204,9 +204,9 @@ static void destroy_shmlock(void)
/* Init counters */
static void curl_counter_init()
{
counter_register(&connections, "curl", "connections", 0, 0, 0, "Counter of connection definitions (curlcon)", 0);
counter_register(&connok, "curl", "connok", 0, 0, 0, "Counter of successful connections (200 OK)", 0);
counter_register(&connfail, "curl", "connfail", 0, 0, 0, "Counter of failed connections (not 200 OK)", 0);
counter_register(&connections, "httpclient", "connections", 0, 0, 0, "Counter of connection definitions (curlcon)", 0);
counter_register(&connok, "httpclient", "connok", 0, 0, 0, "Counter of successful connections (200 OK)", 0);
counter_register(&connfail, "httpclient", "connfail", 0, 0, 0, "Counter of failed connections (not 200 OK)", 0);
}


Expand Down

0 comments on commit 0af10a2

Please sign in to comment.