mirror of https://github.com/ZhongFuCheng3y/austin
parent
38fb551286
commit
24e61dd93c
@ -1,10 +1,25 @@
|
||||
package com.java3y.austin.web.service;
|
||||
|
||||
import com.java3y.austin.web.vo.amis.EchartsVo;
|
||||
import com.java3y.austin.web.vo.amis.TimeLineItemVo;
|
||||
|
||||
/**
|
||||
* 数据链路追踪获取接口
|
||||
*
|
||||
* @author 3y
|
||||
*/
|
||||
public interface DataService {
|
||||
|
||||
/**
|
||||
* 获取全链路追踪 用户维度信息
|
||||
*/
|
||||
TimeLineItemVo getTraceUserInfo(String receiver);
|
||||
|
||||
|
||||
/**
|
||||
* 获取全链路追踪 消息模板维度信息
|
||||
*/
|
||||
EchartsVo getTraceMessageTemplateInfo(String businessId);
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,125 @@
|
||||
package com.java3y.austin.web.vo.amis;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 3y
|
||||
* 图表的Vo
|
||||
* https://aisuda.bce.baidu.com/amis/zh-CN/components/chart
|
||||
* https://www.runoob.com/echarts/echarts-setup.html
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class EchartsVo {
|
||||
/**
|
||||
* title 标题
|
||||
*/
|
||||
private TitleVO title;
|
||||
/**
|
||||
* tooltip 提示
|
||||
*/
|
||||
private TooltipVO tooltip;
|
||||
/**
|
||||
* legend 图例
|
||||
*/
|
||||
private LegendVO legend;
|
||||
/**
|
||||
* xAxis x轴
|
||||
*/
|
||||
private XAxisVO xAxis;
|
||||
/**
|
||||
* yAxis y轴
|
||||
*/
|
||||
private YAxisVO yAxis;
|
||||
/**
|
||||
* series 系列列表
|
||||
* <p>
|
||||
* 每个系列通过 type 决定自己的图表类型
|
||||
*/
|
||||
private List<SeriesVO> series;
|
||||
|
||||
/**
|
||||
* TitleVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class TitleVO {
|
||||
/**
|
||||
* text
|
||||
*/
|
||||
private String text;
|
||||
}
|
||||
|
||||
/**
|
||||
* TooltipVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class TooltipVO {
|
||||
}
|
||||
|
||||
/**
|
||||
* LegendVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class LegendVO {
|
||||
/**
|
||||
* data
|
||||
*/
|
||||
private List<String> data;
|
||||
}
|
||||
|
||||
/**
|
||||
* XAxisVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class XAxisVO {
|
||||
/**
|
||||
* data
|
||||
*/
|
||||
private List<String> data;
|
||||
}
|
||||
|
||||
/**
|
||||
* YAxisVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class YAxisVO {
|
||||
}
|
||||
|
||||
/**
|
||||
* SeriesVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
public static class SeriesVO {
|
||||
/**
|
||||
* name
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* type
|
||||
*/
|
||||
private String type;
|
||||
/**
|
||||
* data
|
||||
*/
|
||||
private List<Integer> data;
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.java3y.austin.web.vo.amis;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* https://aisuda.bce.baidu.com/amis/zh-CN/components/timeline#timeline-item
|
||||
*
|
||||
* @author 3y
|
||||
* 时间线 Vo
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TimeLineItemVo {
|
||||
|
||||
/**
|
||||
* items
|
||||
*/
|
||||
private List<TimeLineItemVo.ItemsVO> items;
|
||||
|
||||
/**
|
||||
* ItemsVO
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public static class ItemsVO {
|
||||
/**
|
||||
* time
|
||||
*/
|
||||
private String time;
|
||||
/**
|
||||
* title
|
||||
*/
|
||||
private String title;
|
||||
/**
|
||||
* detail
|
||||
*/
|
||||
private String detail;
|
||||
/**
|
||||
* color
|
||||
*/
|
||||
private String color;
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
private String icon;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue