From 5df54ea3fbbc961eb28663782d6562faf1265e87 Mon Sep 17 00:00:00 2001 From: Hidekazu Nakamura Date: Wed, 6 Sep 2017 12:05:25 +0900 Subject: [PATCH] Remove unused efficacy indicators AverageCpuLoad and MigrationEfficacy efficacy indicators are not used. This patch removes unused indicators. Change-Id: I2b21defd442c135d26f8fd45f6faf9f67c770bde --- .../goal/efficacy/indicators.py | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/watcher/decision_engine/goal/efficacy/indicators.py b/watcher/decision_engine/goal/efficacy/indicators.py index 1b2426291..ff5e4be49 100644 --- a/watcher/decision_engine/goal/efficacy/indicators.py +++ b/watcher/decision_engine/goal/efficacy/indicators.py @@ -72,38 +72,6 @@ class IndicatorSpecification(object): return str(self.to_dict()) -class AverageCpuLoad(IndicatorSpecification): - - def __init__(self): - super(AverageCpuLoad, self).__init__( - name="avg_cpu_percent", - description=_("Average CPU load as a percentage of the CPU time."), - unit="%", - ) - - @property - def schema(self): - return voluptuous.Schema( - voluptuous.Range(min=0, max=100), required=True) - - -class MigrationEfficacy(IndicatorSpecification): - - def __init__(self): - super(MigrationEfficacy, self).__init__( - name="migration_efficacy", - description=_("Represents the percentage of released nodes out of " - "the total number of migrations."), - unit="%", - required=True - ) - - @property - def schema(self): - return voluptuous.Schema( - voluptuous.Range(min=0, max=100), required=True) - - class ComputeNodesCount(IndicatorSpecification): def __init__(self): super(ComputeNodesCount, self).__init__(