Merge branch 'trace-log-detail-api' of https://github.com/zhongwencool/emqx into trace-log-detail-api

This commit is contained in:
Zhongwen Deng 2022-10-17 09:49:55 +08:00
commit c0ed8b82aa
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ schema("/trace/:name/log_detail") ->
#{ #{
'operationId' => log_file_detail, 'operationId' => log_file_detail,
get => #{ get => #{
description => "get trace log file's detail message, such as size, last update time", description => "get trace log file's metadata, such as size, last update time",
tags => ?TAGS, tags => ?TAGS,
parameters => [hoconsc:ref(name)], parameters => [hoconsc:ref(name)],
responses => #{ responses => #{

View File

@ -63,4 +63,4 @@ trace_file_detail(Nodes, File) ->
| {eof, non_neg_integer()} | {eof, non_neg_integer()}
| {badrpc, _}. | {badrpc, _}.
read_trace_file(Node, Name, Position, Limit) -> read_trace_file(Node, Name, Position, Limit) ->
rpc:call(Node, emqx_mgmt_api_trace, read_trace_file, [Name, Position, Limit]). rpc:call(Node, emqx_mgmt_api_trace, read_trace_file, [Name, Position, Limit], 15000).