feature(loki-query): 新增 loki 日志查询
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.lanyuanxiaoyao.service.forest.service;
|
||||
|
||||
import com.dtflys.forest.annotation.BaseRequest;
|
||||
import com.dtflys.forest.annotation.Get;
|
||||
import com.dtflys.forest.annotation.Query;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.loki.LokiLogLine;
|
||||
import org.eclipse.collections.api.list.ImmutableList;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author lanyuanxiaoyao
|
||||
* @date 2023-05-25
|
||||
*/
|
||||
@BaseRequest(baseURL = "http://service-loki-query")
|
||||
public interface LokiService {
|
||||
@Get("/loki/query_range")
|
||||
ImmutableList<LokiLogLine> queryRange(@Query Map<String, String> queryMap);
|
||||
}
|
||||
Reference in New Issue
Block a user