def get_decision_policy(name): """ Returns a decision policy matching the given name. Decision policies determine the direction a service needs to be scaled in. Each decision policy returns one of the following values: -1: autoscale down 0: don't autoscale 1: autoscale up """ return get_autoscaling_component(name, DECISION_POLICY_KEY)
def get_forecast_policy(name): """ Returns a forecast policy matching the given name. Only used by decision policies that try to forecast load, like the proportional decision policy. """ return get_autoscaling_component(name, FORECAST_POLICY_KEY)
def get_service_metrics_provider(name): """ Returns a service metrics provider matching the given name. """ return get_autoscaling_component(name, SERVICE_METRICS_PROVIDER_KEY)