コード例 #1
0
ファイル: api.py プロジェクト: my-master-yang/xiong
def _get_engine(request):
    connection_str = PROFILER_SETTINGS.get('receiver_connection_string',
                                           "mongodb://")
    kwargs = _get_engine_kwargs(request, connection_str)
    return profiler_get_driver(connection_str, **kwargs)
コード例 #2
0
ファイル: api.py プロジェクト: hemantsonawane95/horizon-1
def _get_engine():
    connection_str = horizon_settings.get_dict_config(
        'OPENSTACK_PROFILER', 'receiver_connection_string')
    return profiler_get_driver(connection_str)
コード例 #3
0
def _get_engine(request):
    connection_str = horizon_settings.get_dict_config(
        'OPENSTACK_PROFILER', 'receiver_connection_string')
    kwargs = _get_engine_kwargs(request, connection_str)
    return profiler_get_driver(connection_str, **kwargs)
コード例 #4
0
ファイル: api.py プロジェクト: noironetworks/horizon
def _get_engine(request):
    connection_str = PROFILER_SETTINGS.get(
        'receiver_connection_string', "mongodb://")
    kwargs = _get_engine_kwargs(request, connection_str)
    return profiler_get_driver(connection_str, **kwargs)