forked from kidgrow-microservices-platform

zhaoxiaohao
2020-11-16 644b8469f2f67cec36b35d4baf7076e3f6c36384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.kidgrow.log.controller;
 
import com.kidgrow.searchcenter.client.service.IQueryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.Map;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 *
 * @Description: 访问统计<br>
 * @Project: <br>
 * @CreateDate: Created in 2020/2/24 11:23 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 */
@RestController
public class AggregationController {
    @Autowired
    private IQueryService queryService;
 
    @ApiOperation(value = "访问统计")
    @GetMapping(value = "/requestStat")
    public Map<String, Object> requestStatAgg() {
        return queryService.requestStatAgg("point-log-*","request-statistics");
    }
}