You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2018/09/27 12:21:14 UTC

[incubator-skywalking] branch fix/alarm-query-mock created (now f96a0d7)

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a change to branch fix/alarm-query-mock
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git.


      at f96a0d7  Avoid query error by adding initial instance to AlarmTrend

This branch includes the following new commits:

     new f96a0d7  Avoid query error by adding initial instance to AlarmTrend

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-skywalking] 01/01: Avoid query error by adding initial instance to AlarmTrend

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch fix/alarm-query-mock
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git

commit f96a0d7e8d887c75c79813d4649e605c42625e83
Author: hanahmily <ha...@gmail.com>
AuthorDate: Thu Sep 27 20:20:50 2018 +0800

    Avoid query error by adding initial instance to AlarmTrend
---
 .../java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
index fcfae74..a64d10f 100644
--- a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
+++ b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
@@ -18,8 +18,9 @@
 
 package org.apache.skywalking.oap.query.graphql.type;
 
+import java.util.ArrayList;
 import java.util.List;
 
 public class AlarmTrend {
-    private List<Integer> numOfAlarm;
+    private List<Integer> numOfAlarm = new ArrayList<>();
 }