From: Benjamin Diaz Date: Tue, 9 Oct 2018 18:04:24 +0000 (-0300) Subject: Adds support for cooldown-time variable in scaling-policy X-Git-Tag: v5.0.0~15 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=cb76d133adebeda011a00b73c1df161ef3d6db8c;hp=cb76d133adebeda011a00b73c1df161ef3d6db8c;p=osm%2FPOL.git Adds support for cooldown-time variable in scaling-policy Cooldown time defines the minimum time that needs to happen between each scaling action. If an alarm triggers before this has happened, no action should be executed. When POL receives an alarm notification it will check that the difference between the current time and the last scaling action of the alarm's scaling policy is bigger than the cooldown time. During configuration of the scaling groups, POL will now store the cooldown time of the scaling policy. Also, it adds a new last_scale var to ScalingPolicy, which has as default the oldest time supported by Python datetime. Signed-off-by: Benjamin Diaz Change-Id: I6d110ccc7f89af29500c602d05054e7ba78808a0 ---