@@ -73,7 +73,7 @@ Return the detailed information of the alarm running rule.
7373 {
7474 "scope" : " SERVICE" ,
7575 "name" : " mock_b_service" ,
76- "formattedMessage" : " Response time of mock_b_service is more than upper baseline in 1 minutes of last 10 minutes. "
76+ "formattedMessage" : " Service mock_b_service response time is more than 1000ms of last 10 minutes"
7777 }
7878 ],
7979 "tags" : [
@@ -108,12 +108,12 @@ Return the detailed information of the alarm running rule.
108108 {
109109 "scope" : " SERVICE" ,
110110 "name" : " mock_a_service" ,
111- "formattedMessage" : " Response time of mock_a_service is more than upper baseline in 1 minutes of last 10 minutes."
111+ "formattedMessage" : " Service mock_a_service response time is more than 1000ms of last 10 minutes."
112112 },
113113 {
114114 "scope" : " SERVICE" ,
115115 "name" : " mock_c_service" ,
116- "formattedMessage" : " Response time of service mock_c_service is more than upper baseline in 1 minutes of last 10 minutes."
116+ "formattedMessage" : " Service mock_c_service response time is more than 1000ms of last 10 minutes."
117117 }
118118 ],
119119 "tags" : [
@@ -155,13 +155,13 @@ Return the running context of the alarm rule.
155155 "status" : {
156156 "ruleId" : " service_resp_time_rule" ,
157157 "expression" : " sum(service_resp_time > 1000) >= 1" ,
158- "endTime" : " 2025-11-10T09:39 :00.000" ,
158+ "endTime" : " 2025-11-19T15:20 :00.000" ,
159159 "additionalPeriod" : 0 ,
160160 "size" : 10 ,
161- "silencePeriod" : 3 ,
162- "recoveryObservationPeriod" : 2 ,
161+ "silencePeriod" : 10 ,
162+ "recoveryObservationPeriod" : 0 ,
163163 "silenceCountdown" : 10 ,
164- "recoveryObservationCountdown" : 2 ,
164+ "recoveryObservationCountdown" : 0 ,
165165 "currentState" : " FIRING" ,
166166 "entityName" : " mock_b_service" ,
167167 "windowValues" : [
@@ -195,26 +195,30 @@ Return the running context of the alarm rule.
195195 },
196196 {
197197 "index" : 7 ,
198+ "metrics" : []
199+ },
200+ {
201+ "index" : 8 ,
198202 "metrics" : [
199203 {
200204 "name" : " service_resp_time" ,
201- "timeBucket" : 202502121437 ,
205+ "timeBucket" : 202511191519 ,
202206 "value" : " 6000"
203207 }
204208 ]
205209 },
206- {
207- "index" : 8 ,
208- "metrics" : []
209- },
210210 {
211211 "index" : 9 ,
212212 "metrics" : []
213213 }
214214 ],
215215 "mqeMetricsSnapshot" : {
216- "service_resp_time" : " [{\" metric\" :{\" labels\" :[]},\" values\" :[{\" id\" :\" 202502121430\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121431\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121432\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121433\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121434\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121435\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121436\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121437\" ,\" doubleValue\" :6000.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121438\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202502121439\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true}]}]" ,
217- "baseline(service_resp_time,upper)" : " [{\" metric\" :{\" labels\" :[]},\" values\" :[{\" id\" :\" 202502121430\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121431\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121432\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121433\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121434\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121435\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121436\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121437\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121438\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false},{\" id\" :\" 202502121439\" ,\" doubleValue\" :10.0,\" isEmptyValue\" :false}]}]"
216+ "service_resp_time" : " [{\" metric\" :{\" labels\" :[]},\" values\" :[{\" id\" :\" 202511191511\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191512\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191513\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191514\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191515\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191516\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191517\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191518\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191519\" ,\" doubleValue\" :6000.0,\" isEmptyValue\" :false},{\" id\" :\" 202511191520\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true}]}]"
217+ },
218+ "lastAlarmTime" : " 1763536823628" ,
219+ "lastAlarmMessage" : " Service mock_b_service response time is more than 1000ms of last 10 minutes." ,
220+ "lastAlarmMqeMetricsSnapshot" : {
221+ "service_resp_time" : " [{\" metric\" :{\" labels\" :[]},\" values\" :[{\" id\" :\" 202511191511\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191512\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191513\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191514\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191515\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191516\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191517\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191518\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true},{\" id\" :\" 202511191519\" ,\" doubleValue\" :6000.0,\" isEmptyValue\" :false},{\" id\" :\" 202511191520\" ,\" doubleValue\" :0.0,\" isEmptyValue\" :true}]}]"
218222 }
219223 }
220224 },
@@ -227,7 +231,8 @@ Return the running context of the alarm rule.
227231 "size" : 0 ,
228232 "silenceCountdown" : 0 ,
229233 "recoveryObservationCountdown" : 0 ,
230- "windowValues" : []
234+ "windowValues" : [],
235+ "lastAlarmTime" : 0
231236 }
232237 }
233238 ]
@@ -237,8 +242,11 @@ Return the running context of the alarm rule.
237242` silenceCountdown ` is the countdown of the silence period. -1 means silence countdown is not running.
238243` recoveryObservationCountdown ` is the countdown of the recovery observation period.
239244` windowValues ` is the original metrics data when the metrics come in. The ` index ` is the index of the window, starting from 0.
240- ` mqeMetricsSnapshot ` is the metrics data in the MQE format which is generated when executing the checking.
245+ ` mqeMetricsSnapshot ` is the current metrics data in the MQE format which is generated when executing the checking.
241246These data will be calculated according to the expression.
247+ ` lastAlarmTime ` is the last time when the alarm is triggered. It will be reset to 0 when the alarm recovers.
248+ ` lastAlarmMessage ` is the last alarm message when the alarm is triggered.
249+ ` lastAlarmMqeMetricsSnapshot ` is the metrics data snapshot in the MQE format when the last alarm is triggered.
242250
243251## Get Errors When Querying Status from OAP Instances
244252
0 commit comments