Refactor alarm schema

This commit is contained in:
hanahmily 2018-02-09 14:18:26 +08:00
parent f0c2be4346
commit af6d91dfba
3 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

@ -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.