AddAlarmDefinitionAsync

Add a new Alarm defintion to a folder Returns (Task.)

Create an Alarm Definition in the designated Folder.

Name Description
folder The folder.
alarmDefintion The alarm defintion.

Add Alarm Definition Async

Example in C#

// Returns: AlarmDefinitionInfo
var alarmDefinitionInfo = await client.AddAlarmDefinitionAsync(FolderInfo folder, AlarmDefinitionInfo alarmDefintion)

Example in CURL



           curl -X POST \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/alarmdefinitions \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.AlarmDefinitionInfo, Feenics.Keep.WebApi.Model",
                   "Priority":null,
                   "MessageTemplateLong":null,
                   "MessageTemplateShort":null,
                   "RequiresAcknowledgement":null,
                   "FilterQuery":null,
                   "Key":null,
                   "CommonName":"AlarmDefinition_for_cURL",
                   "InFolderHref":null,
                   "InFolderKey":null,
                   "Links":[],
                   "ObjectLinks":null,
                   "Metadata":null,
                   "Notes":null,
                   "Tags":null,
                   "Monikers":null,
                   "Href":null
               }'