Skip to content

Commit a9ed9ee

Browse files
authored
Remove alarm trend, add metricsSnapshot and name for message (#143)
1 parent 092856b commit a9ed9ee

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

alarm.graphqls

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,29 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# the trend alarm trigger times
18-
type AlarmTrend {
19-
numOfAlarm: [Int]!
17+
type MQEMetric {
18+
name: String!
19+
results: [MQEValues!]!
20+
}
21+
22+
type AlarmSnapshot {
23+
# The MQE expression of the alarm rule.
24+
expression: String!
25+
# The metrics snapshot
26+
metrics: [MQEMetric!]!
2027
}
2128

2229
type AlarmMessage {
2330
startTime: Long!
2431
scope: Scope
2532
id: ID!
33+
# The entity name of the alarm triggered.
34+
name: String!
2635
message: String!
2736
events: [Event!]!
2837
tags: [KeyValue!]!
38+
# The snapshot when the alarm triggered.
39+
snapshot: AlarmSnapshot!
2940
}
3041

3142
type Alarms {
@@ -38,7 +49,6 @@ input AlarmTag {
3849
}
3950

4051
extend type Query {
41-
getAlarmTrend(duration: Duration!): AlarmTrend!
4252
getAlarm(duration: Duration!, scope: Scope, keyword: String, paging: Pagination!, tags: [AlarmTag]): Alarms
4353
# Read the list of searchable keys
4454
queryAlarmTagAutocompleteKeys(duration: Duration!):[String!]

0 commit comments

Comments
 (0)