feature(loki-query): 新增 loki 日志查询

This commit is contained in:
2023-05-25 11:49:23 +08:00
parent af24551a6b
commit ac2bdbc2df
14 changed files with 448 additions and 2 deletions

View File

@@ -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);
}