Merge pull request #9468 from sstrigler/EMQX-7993-get-trace-name-log-actual-response-is-inconsistent-with-docs
Various doc fixes for /trace API
This commit is contained in:
commit
cfd792add4
|
@ -72,7 +72,7 @@ schema("/trace") ->
|
||||||
description => "List all trace",
|
description => "List all trace",
|
||||||
tags => ?TAGS,
|
tags => ?TAGS,
|
||||||
responses => #{
|
responses => #{
|
||||||
200 => hoconsc:ref(trace)
|
200 => hoconsc:array(hoconsc:ref(trace))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
post => #{
|
post => #{
|
||||||
|
@ -140,7 +140,8 @@ schema("/trace/:name/download") ->
|
||||||
'application/octet-stream' =>
|
'application/octet-stream' =>
|
||||||
#{schema => #{type => "string", format => "binary"}}
|
#{schema => #{type => "string", format => "binary"}}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
404 => emqx_dashboard_swagger:error_codes(['NOT_FOUND'], <<"Trace Name Not Found">>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -172,9 +173,12 @@ schema("/trace/:name/log") ->
|
||||||
responses => #{
|
responses => #{
|
||||||
200 =>
|
200 =>
|
||||||
[
|
[
|
||||||
{items, hoconsc:mk(binary(), #{example => "TEXT-LOG-ITEMS"})}
|
{items, hoconsc:mk(binary(), #{example => "TEXT-LOG-ITEMS"})},
|
||||||
| fields(bytes) ++ fields(position)
|
{meta, fields(bytes) ++ fields(position)}
|
||||||
]
|
],
|
||||||
|
400 => emqx_dashboard_swagger:error_codes(
|
||||||
|
['READ_FILE_ERROR', 'RPC_ERROR', 'NODE_ERROR'], <<"Trace Log Failed">>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.
|
}.
|
||||||
|
|
|
@ -19,3 +19,5 @@
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
|
||||||
- Fix that the obsolete SSL files aren't deleted after the ExHook config update [#9432](https://github.com/emqx/emqx/pull/9432).
|
- Fix that the obsolete SSL files aren't deleted after the ExHook config update [#9432](https://github.com/emqx/emqx/pull/9432).
|
||||||
|
|
||||||
|
- Fix doc and schema for `/trace` API [#9468](https://github.com/emqx/emqx/pull/9468).
|
||||||
|
|
|
@ -18,3 +18,5 @@
|
||||||
## 修复
|
## 修复
|
||||||
|
|
||||||
- 修复 ExHook 更新 SSL 相关配置后,过时的 SSL 文件没有被删除的问题 [#9432](https://github.com/emqx/emqx/pull/9432)。
|
- 修复 ExHook 更新 SSL 相关配置后,过时的 SSL 文件没有被删除的问题 [#9432](https://github.com/emqx/emqx/pull/9432)。
|
||||||
|
|
||||||
|
- 修复 /trace API 的返回值格式和相关文档 [#9468](https://github.com/emqx/emqx/pull/9468)。
|
||||||
|
|
Loading…
Reference in New Issue