Alarm: Use stevedore to load the service class
A deployer must choice a driver with a name not a python class This change does that but also keep backward compatibility. DocImpact Closes-Bug: #1362006 Change-Id: I41183b1a0c0f07c15efd6e0704a7a281b8ec7284
This commit is contained in:
@@ -222,6 +222,13 @@ ceilometer.alarm.evaluator =
|
||||
threshold = ceilometer.alarm.evaluator.threshold:ThresholdEvaluator
|
||||
combination = ceilometer.alarm.evaluator.combination:CombinationEvaluator
|
||||
|
||||
ceilometer.alarm.evaluator_service =
|
||||
singleton = ceilometer.alarm.service:SingletonAlarmService
|
||||
partitioned = ceilometer.alarm.service:PartitionedAlarmService
|
||||
# NOTE(sileht): for backward compatibility
|
||||
ceilometer.alarm.service.SingletonAlarmService = ceilometer.alarm.service:SingletonAlarmService
|
||||
ceilometer.alarm.service.PartitionedAlarmService = ceilometer.alarm.service:PartitionedAlarmService
|
||||
|
||||
ceilometer.alarm.notifier =
|
||||
log = ceilometer.alarm.notifier.log:LogAlarmNotifier
|
||||
test = ceilometer.alarm.notifier.test:TestAlarmNotifier
|
||||
|
||||
Reference in New Issue
Block a user