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

wu-sheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git


The following commit(s) were added to refs/heads/master by this push:
     new a5395c9  alarm: add `layers` filter on getAlarm and `layers` on 
AlarmMessage (#155)
a5395c9 is described below

commit a5395c9190dad62538dbf3ef3387c75439989b78
Author: 吴晟 Wu Sheng <[email protected]>
AuthorDate: Fri May 15 23:43:21 2026 +0800

    alarm: add `layers` filter on getAlarm and `layers` on AlarmMessage (#155)
---
 alarm.graphqls | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/alarm.graphqls b/alarm.graphqls
index bc6ded6..a14f736 100644
--- a/alarm.graphqls
+++ b/alarm.graphqls
@@ -33,6 +33,12 @@ type AlarmMessage {
     id: ID!
     # The entity name of the alarm triggered.
     name: String!
+    # The layers of the alarmed entity (service / instance / endpoint / 
process and their
+    # relations) belongs to at the time the alarm was raised. A service can be 
observed
+    # under multiple layers simultaneously (e.g., GENERAL + MESH); each entry 
here
+    # corresponds to one layer of the underlying entity served at alarm time.
+    # for the list of layer names.
+    layers: [String!]!
     message: String!
     events: [Event!]!
     tags: [KeyValue!]!
@@ -50,7 +56,11 @@ input AlarmTag {
 }
 
 extend type Query {
-    getAlarm(duration: Duration!, scope: Scope, keyword: String, paging: 
Pagination!, tags: [AlarmTag]): Alarms
+    # `layers` (optional) filters to alarms whose underlying entity belongs to 
ANY of the
+    # given layers (set union, OR semantics). Empty or omitted = no layer 
filter applied.
+    # Layer values are the free-form strings used elsewhere in the protocol; 
see
+    # `Service.layers` and metadata-v2.graphqls for the canonical layer list.
+    getAlarm(duration: Duration!, scope: Scope, layers: [String!], keyword: 
String, paging: Pagination!, tags: [AlarmTag]): Alarms
     # Read the list of searchable keys
     queryAlarmTagAutocompleteKeys(duration: Duration!):[String!]
     # Search the available value options of the given key.

Reply via email to