ooici/coi-services — pull request #1308 by carueda (2013-09-04 00:15:47+00:00)
Title: dispatch _configure_aparams in PlatformAgent so the alert definitions are captured and processed

UI testing using

bin/pycc -x ion.processes.bootstrap.ion_loader.IONLoader op=load scenario=BETA,R2_DEMO loadui=True attachments=res/preload/r2_ioc/attachments ui_path="https://userexperience.oceanobservatories.org/database-exports/Candidates" path=master

In the UI adding the following alert def to the "Beta Demonstration Platform Device" platform:

{"stream_name": "parsed",
"alert_type": 1,
"name": "input_voltage_warning_interval",
"lower_bound": 111,
"aggregate_type": 2,
"alert_class": "IntervalAlert",
"value_id": "input_voltage",
"lower_rel_op": "<",
"description": "input_voltage is below the normal range of 111 and above."}

Then after putting the platform in monitoring state I can see the alerts being processed in the logs and also the corresponding "data" status icon changing color upon refresh of the page.

Note that there is no specific integration test yet exercising the alerts for the plaform agent. But we may want to merge this update now while those tests are added.