mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Update several commands for recent ejabberd_commands changes
This commit is contained in:
parent
846b520edc
commit
cf975da8f2
4 changed files with 21 additions and 2 deletions
|
@ -115,6 +115,7 @@ commands() ->
|
|||
|
||||
#ejabberd_commands{name = num_active_users, tags = [accounts, stats],
|
||||
desc = "Get number of users active in the last days",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = num_active_users,
|
||||
args = [{host, binary}, {days, integer}],
|
||||
result = {users, integer}},
|
||||
|
@ -173,11 +174,13 @@ commands() ->
|
|||
result = {res, rescode}},
|
||||
#ejabberd_commands{name = status_num_host, tags = [session, stats],
|
||||
desc = "Number of logged users with this status in host",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = status_num,
|
||||
args = [{host, binary}, {status, binary}],
|
||||
result = {users, integer}},
|
||||
#ejabberd_commands{name = status_num, tags = [session, stats],
|
||||
desc = "Number of logged users with this status",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = status_num,
|
||||
args = [{status, binary}],
|
||||
result = {users, integer}},
|
||||
|
@ -361,8 +364,9 @@ commands() ->
|
|||
}}},
|
||||
#ejabberd_commands{name = get_roster, tags = [roster],
|
||||
desc = "Get roster of a local user",
|
||||
policy = user,
|
||||
module = ?MODULE, function = get_roster,
|
||||
args = [{user, binary}, {host, binary}],
|
||||
args = [],
|
||||
result = {contacts, {list, {contact, {tuple, [
|
||||
{jid, string},
|
||||
{nick, string},
|
||||
|
@ -456,6 +460,13 @@ commands() ->
|
|||
args = [{user, binary}, {host, binary}, {group, binary}, {grouphost, binary}],
|
||||
result = {res, rescode}},
|
||||
|
||||
#ejabberd_commands{name = get_offline_count,
|
||||
tags = [offline],
|
||||
desc = "Get the number of unread offline messages",
|
||||
policy = user,
|
||||
module = mod_offline, function = get_queue_length,
|
||||
args = [],
|
||||
result = {res, integer}},
|
||||
#ejabberd_commands{name = send_message, tags = [stanza],
|
||||
desc = "Send a message to a local or remote bare of full JID",
|
||||
module = ?MODULE, function = send_message,
|
||||
|
@ -475,11 +486,13 @@ commands() ->
|
|||
|
||||
#ejabberd_commands{name = stats, tags = [stats],
|
||||
desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = stats,
|
||||
args = [{name, binary}],
|
||||
result = {stat, integer}},
|
||||
#ejabberd_commands{name = stats_host, tags = [stats],
|
||||
desc = "Get statistical value for this host: registeredusers onlineusers",
|
||||
policy = admin,
|
||||
module = ?MODULE, function = stats,
|
||||
args = [{name, binary}, {host, binary}],
|
||||
result = {stat, integer}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue