Adapt basic_consolidation strategy to multiple datasource backend
Change-Id: Ie30308fd08ed1fd103b70f58f1d17b3749a6fe04
This commit is contained in:
@@ -119,12 +119,13 @@ class FakeGnocchiMetrics(object):
|
||||
return mock[str(uuid)]
|
||||
|
||||
@staticmethod
|
||||
def get_usage_node_cpu(uuid):
|
||||
def get_usage_node_cpu(*args, **kwargs):
|
||||
"""The last VM CPU usage values to average
|
||||
|
||||
:param uuid: instance UUID
|
||||
:return: float value
|
||||
"""
|
||||
uuid = args[0]
|
||||
# Normalize
|
||||
mock = {}
|
||||
# node 0
|
||||
@@ -155,13 +156,13 @@ class FakeGnocchiMetrics(object):
|
||||
return float(mock[str(uuid)])
|
||||
|
||||
@staticmethod
|
||||
def get_average_usage_instance_cpu(uuid):
|
||||
def get_average_usage_instance_cpu(*args, **kwargs):
|
||||
"""The last VM CPU usage values to average
|
||||
|
||||
:param uuid: instance UUID
|
||||
:return: int value
|
||||
"""
|
||||
|
||||
uuid = args[0]
|
||||
# Normalize
|
||||
mock = {}
|
||||
# node 0
|
||||
|
||||
Reference in New Issue
Block a user