def METHOD_NAME(
    feature: Feature, environment_id: int, period: int = 30
) -> List[FeatureEvaluationData]:
    if settings.USE_POSTGRES_FOR_ANALYTICS:
        return get_feature_evaluation_data_from_local_db(
            feature, environment_id, period
        )
    return get_feature_evaluation_data_from_influxdb(
        feature_name=feature.name, environment_id=environment_id, period=f"{period}d"
    )