+
+ // Check the interface to be used for raise or clear the alarm
+ rmr_or_http, _ := flags["if"].GetString()
+ if rmr_or_http == "rmr" {
+ alarmClient := NewAlarmClient("my-pod", "my-app")
+ if alarmClient == nil {
+ return
+ }
+
+ // Wait until RMR is up-and-running
+ for !alarmClient.alarmer.IsRMRReady() {
+ time.Sleep(100 * time.Millisecond)
+ }
+
+ if action == alarm.AlarmActionRaise {
+ alarmClient.alarmer.Raise(a)
+ }
+
+ if action == alarm.AlarmActionClear {
+ alarmClient.alarmer.Clear(a)
+ }
+ return
+ }
+