Refactor alarm schema
This commit is contained in:
parent
f0c2be4346
commit
af6d91dfba
|
|
@ -22,6 +22,7 @@ package org.apache.skywalking.apm.collector.storage.ui.alarm;
|
|||
* @author peng-yongsheng
|
||||
*/
|
||||
public class AlarmItem {
|
||||
private String id;
|
||||
private String title;
|
||||
private String content;
|
||||
private String startTime;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ import org.apache.skywalking.apm.collector.storage.ui.alarm.AlarmType;
|
|||
import org.apache.skywalking.apm.collector.storage.ui.common.Duration;
|
||||
import org.apache.skywalking.apm.collector.storage.ui.common.Pagination;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* @author peng-yongsheng
|
||||
*/
|
||||
|
|
@ -32,6 +34,7 @@ public class AlarmQuery implements Query {
|
|||
public Alarm loadAlarmList(String keyword, AlarmType alarmType, Duration duration, Pagination paging) {
|
||||
Alarm alarm = new Alarm();
|
||||
alarm.setTotal(0);
|
||||
alarm.setItems(Collections.emptyList());
|
||||
return alarm;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ type Alarm {
|
|||
}
|
||||
|
||||
type AlarmItem {
|
||||
id: ID!
|
||||
# Typical include: Application Code + cause type. This is a short description.
|
||||
title: String!
|
||||
# Include all related info to trigger this alarm.
|
||||
|
|
|
|||
Loading…
Reference in New Issue