diff --git a/api-ref/source/v1/samples/custom-config/get-custom-config-show-response.json b/api-ref/source/v1/samples/custom-config/get-custom-config-show-response.json index 895a7fd..6347782 100644 --- a/api-ref/source/v1/samples/custom-config/get-custom-config-show-response.json +++ b/api-ref/source/v1/samples/custom-config/get-custom-config-show-response.json @@ -1,4 +1,5 @@ { - "log_save_days": "30" - + "log_save_days": "30", + "anomaly_record_save_days": "30", + "log_max_gb": "100" } diff --git a/venus/modules/custom_config/controller.py b/venus/modules/custom_config/controller.py index 47ed321..2be1087 100644 --- a/venus/modules/custom_config/controller.py +++ b/venus/modules/custom_config/controller.py @@ -28,7 +28,10 @@ class CustomConfigController(wsgi.Controller): @wsgi.wrap_check_policy def get_config(self, req): result = dict() - result["log_save_days"] = self.config_api.get_config("log_save_days") + configs = ["log_save_days", "anomaly_record_save_days", "log_max_gb"] + for config in configs: + result[config] = self.config_api.get_config(config) + return result @wsgi.wrap_check_policy