TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
HostgroupsGroupsMetersMetricsProduct
PluginsRelaysSourcesSynchronize Data
Tenants
Terms

PUT/v2/alarms/:alarmId

Updates an alarm

URL parameters

alarmId integer

The alarm to update

Request body parameters

Any missing request body parameters will be defaulted to the existing values.

Please refer to the create alarm documentation for a full list of body parameters.

Example request:

curl https://api.truesight.bmc.com/v2/alarms/:alarmId \
-X PUT \
-u <email>:<api-token> \
-H "Content-Type: application/json" \
-d '
{
   "hostgroupId": 200,
   "isDisabled": false,
   "metric": "CPU",
   "name": "Hostgroup 200 CPU",
   "note": "Notify when host AVG CPU is high",
   "notifyClear": true,
   "notifySet": true,
   "perHostNotify": true,
   "timeoutInterval": 259200000,
   "triggerInterval": 60000,
   "triggerPredicate": {
      "agg": "avg",
      "op": "gt",
      "val": 0.8
   },
   "typeId": 3
}'