AddEventSourceToAlarmDefinitionAsync

Adds an Event Source to an Alarm Definition Returns (Task.)

Register a new Event Source on the designated Alarm Definition.

Name Description
alarmDefinition The alarm definition.
eventSource The event source.

Add Event Source To Alarm Definition Async

Example in C#

// Returns: nothing
await client.AddEventSourceToAlarmDefinitionAsync(AlarmDefinitionInfo alarmDefinition, BaseInfo eventSource)

Example in CURL



           #In this example we are using a user for the event source
           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/alarmdefinitions/ALARMDEFINITION.KEY/collections/eventsources \
               -H 'Content-Type: application/javascript' \
               -d '"/api/f/INSTANCE.KEY/users/USER.KEY"'