pub async fn get_logs(
levels: Vec<String>,
target: Option<String>,
query: Option<String>,
before_id: Option<i64>,
limit: i32,
) -> Result<LogsPage, ServerFnError>Expand description
分页查询运行日志(id DESC 游标分页)。
levels:级别白名单过滤,空 vec = 全部;target:精确匹配 tracing target;query:message 子串匹配(参数化 ILIKE);before_id:游标(WHERE id < before_id),None = 从最新开始;limit:clamp 到 1..=500。
§Handler information
- Method:
post - Path:
<auto>