diff options
Diffstat (limited to 'examples/custom_strategy.py')
| -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), |
