alarm group addAlarms

Add alarms to a group.

Syntax

CLI
maprcli alarm group addAlarms
    [ -cluster cluster_name ]
    -groupname <group name> 
    -alarms <alarm name>
REST API
Request Type POST
Request URL
http[s]://<host>:<port>/rest/alarm/group/addAlarms??<parameters>  

Parameters

Parameter Description
cluster (Optional) The cluster on which to run the command. The default is the cluster on which the command is run.
groupname (Required) The name of the alarm group to create. If necessary, run listGroup to retrieve the list of alarm groups.
alarms (Required) The comma-separated list of alarms to add to the group.

Example

Add alarms to the alarm group:

CLI
maprcli alarm group addAlarms 
    -groupname cldb.alarm.group.info 
    -alarms NODE_ALARM_HB_PROCESSING_SLOW,CLUSTER_ALARM_CLUSTER_ALMOST_FULL
REST
curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/group/addAlarms?groupname=cldb.alarm.group.info&alarms=NODE_ALARM_HB_PROCESSING_SLOW,CLUSTER_ALARM_CLUSTER_ALMOST_FULL