From 7a17e9a1df01776875e8b4f6a71b833100a01d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Mon, 15 May 2023 18:23:48 +0300 Subject: [MAIN-169] Minor improve for strategy description --- examples/custom_strategy.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/custom_strategy.py b/examples/custom_strategy.py index 5b38f68..1b6d9d6 100644 --- a/examples/custom_strategy.py +++ b/examples/custom_strategy.py @@ -14,6 +14,11 @@ class CustomStrategySettings(StrategySettings): class CustomStrategy(BaseStrategy[CustomStrategySettings]): + """ + A custom strategy that uses the provided parameters for CPU and memory. + Made only in order to demonstrate how to create a custom strategy. + """ + def run(self, history_data: HistoryData, object_data: K8sObjectData) -> RunResult: return { ResourceType.CPU: ResourceRecommendation(request=self.settings.param_1, limit=None), -- cgit v1.2.3