diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-15 18:23:48 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-15 18:23:48 +0300 |
| commit | 7a17e9a1df01776875e8b4f6a71b833100a01d5c (patch) | |
| tree | 7d89c56f253e97683c5eac943994d75a84e293a0 /examples | |
| parent | fabf1b4fd2c1ae0245d2f0c6000ff8d9d197a29e (diff) | |
[MAIN-169] Minor improve for strategy description
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/custom_strategy.py | 5 |
1 files changed, 5 insertions, 0 deletions
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), |
