(config_namespace: str)
return AutoscalingConfig(
        excluded_resources=reader.read_list("autoscaling.excluded_resources", default=default_excluded_resources),
        setpoint=reader.read_float("autoscaling.setpoint", default=default_setpoint),
        target_capacity_margin=reader.read_float(
            "autoscaling.target_capacity_margin", default=default_target_capacity_margin,
        ),
        prevent_scale_down_after_capacity_loss=reader.read_bool(
            "autoscaling.prevent_scale_down_after_capacity_loss", default=False
        ),
        instance_loss_threshold=reader.read_int("autoscaling.instance_loss_threshold", default=0),
    )
Load autoscaling configuration values from the provided config_namespace, falling back to the
    values stored in the default namespace if none are specified.

    :param config_namespace: namespace to read from before falling back to the default namespace
    :returns: AutoscalingConfig object with loaded config values
Load autoscaling configuration values from the provided config_namespace, falling back to the
    values stored in the default namespace if none are specified.
Load autoscaling configuration values from the provided config_namespace falling back to the values stored in the default namespace if none are specified .
def get_autoscaling_config(config_namespace: str) -> AutoscalingConfig:
    """ Load autoscaling configuration values from the provided config_namespace, falling back to the
    values stored in the default namespace if none are specified.

    :param config_namespace: namespace to read from before falling back to the default namespace
    :returns: AutoscalingConfig object with loaded config values
    """
    default_excluded_resources = staticconf.read_list("autoscaling.excluded_resources", default=[])
    default_setpoint = staticconf.read_float("autoscaling.setpoint")
    default_target_capacity_margin = staticconf.read_float("autoscaling.target_capacity_margin")

    reader = staticconf.NamespaceReaders(config_namespace)
    return AutoscalingConfig(
        excluded_resources=reader.read_list("autoscaling.excluded_resources", default=default_excluded_resources),
        setpoint=reader.read_float("autoscaling.setpoint", default=default_setpoint),
        target_capacity_margin=reader.read_float(
            "autoscaling.target_capacity_margin", default=default_target_capacity_margin,
        ),
        prevent_scale_down_after_capacity_loss=reader.read_bool(
            "autoscaling.prevent_scale_down_after_capacity_loss", default=False
        ),
        instance_loss_threshold=reader.read_int("autoscaling.instance_loss_threshold", default=0),
    )
def get_autoscaling_config ( config_namespace : str ) -> AutoscalingConfig : default_excluded_resources = staticconf . read_list ( "autoscaling.excluded_resources" , default = [ ] ) default_setpoint = staticconf . read_float ( "autoscaling.setpoint" ) default_target_capacity_margin = staticconf . read_float ( "autoscaling.target_capacity_margin" ) reader = staticconf . NamespaceReaders ( config_namespace ) return AutoscalingConfig ( excluded_resources = reader . read_list ( "autoscaling.excluded_resources" , default = default_excluded_resources ) , setpoint = reader . read_float ( "autoscaling.setpoint" , default = default_setpoint ) , target_capacity_margin = reader . read_float ( "autoscaling.target_capacity_margin" , default = default_target_capacity_margin , ) , prevent_scale_down_after_capacity_loss = reader . read_bool ( "autoscaling.prevent_scale_down_after_capacity_loss" , default = False ) , instance_loss_threshold = reader . read_int ( "autoscaling.instance_loss_threshold" , default = 0 ) , )