mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Change tag name because there's already a command called "stats"
This commit is contained in:
parent
f8a02f5d9d
commit
6f565147cb
@ -513,13 +513,13 @@ needed_connections_number(Ls, MaxS2SConnectionsNumber,
|
||||
|
||||
get_commands_spec() ->
|
||||
[#ejabberd_commands{
|
||||
name = incoming_s2s_number, tags = [stats, s2s],
|
||||
name = incoming_s2s_number, tags = [statistics, s2s],
|
||||
desc = "Number of incoming s2s connections on the node",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = incoming_s2s_number,
|
||||
args = [], result = {s2s_incoming, integer}},
|
||||
#ejabberd_commands{
|
||||
name = outgoing_s2s_number, tags = [stats, s2s],
|
||||
name = outgoing_s2s_number, tags = [statistics, s2s],
|
||||
desc = "Number of outgoing s2s connections on the node",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = outgoing_s2s_number,
|
||||
|
@ -985,7 +985,7 @@ get_commands_spec() ->
|
||||
result_desc = "List of users sessions",
|
||||
result_example = [<<"user1@example.com">>, <<"user2@example.com">>],
|
||||
result = {connected_users, {list, {sessions, string}}}},
|
||||
#ejabberd_commands{name = connected_users_number, tags = [session, stats],
|
||||
#ejabberd_commands{name = connected_users_number, tags = [session, statistics],
|
||||
desc = "Get the number of established sessions",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = connected_users_number,
|
||||
|
@ -275,7 +275,7 @@ get_commands_spec() ->
|
||||
result = {res, rescode},
|
||||
result_example = ok,
|
||||
result_desc = "Status code: 0 on success, 1 otherwise"},
|
||||
#ejabberd_commands{name = status_num_host, tags = [session, stats],
|
||||
#ejabberd_commands{name = status_num_host, tags = [session, statistics],
|
||||
desc = "Number of logged users with this status in host",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = status_num,
|
||||
@ -285,7 +285,7 @@ get_commands_spec() ->
|
||||
result = {users, integer},
|
||||
result_example = 23,
|
||||
result_desc = "Number of connected sessions with given status type"},
|
||||
#ejabberd_commands{name = status_num, tags = [session, stats],
|
||||
#ejabberd_commands{name = status_num, tags = [session, statistics],
|
||||
desc = "Number of logged users with this status",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = status_num,
|
||||
@ -770,7 +770,7 @@ get_commands_spec() ->
|
||||
args_desc = ["Username", "Server name", "Query XML element"],
|
||||
result = {res, rescode}},
|
||||
|
||||
#ejabberd_commands{name = stats, tags = [stats],
|
||||
#ejabberd_commands{name = stats, tags = [statistics],
|
||||
desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds processes",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = stats,
|
||||
@ -780,7 +780,7 @@ get_commands_spec() ->
|
||||
result_example = 6,
|
||||
result_desc = "Integer statistic value",
|
||||
result = {stat, integer}},
|
||||
#ejabberd_commands{name = stats_host, tags = [stats],
|
||||
#ejabberd_commands{name = stats_host, tags = [statistics],
|
||||
desc = "Get statistical value for this host: registeredusers onlineusers",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = stats,
|
||||
|
Loading…
Reference in New Issue
Block a user