def get_hello_from_background_worker(http_context, config, sessions):
    return api_function_wrapper(
        http_context=http_context,
        config=config,
        sessions=sessions,
        module=sys.modules[__name__],
        function_name=say_hello_from_background_worker.__name__)
예제 #2
0
def dashboard_history(http_context,
                      config=None,
                      sessions=None):
    return api_function_wrapper(config,
                                http_context,
                                sessions,
                                metrics,
                                'get_history_metrics_queue')
예제 #3
0
def dashboard_n_cpu(http_context,
                    config=None,
                    sessions=None):
    return api_function_wrapper(config,
                                http_context,
                                sessions,
                                metrics,
                                'get_n_cpu')
예제 #4
0
def dashboard_memory(http_context,
                     config=None,
                     sessions=None):
    return api_function_wrapper(config,
                                http_context,
                                sessions,
                                metrics,
                                'get_memory_usage')
예제 #5
0
def dashboard_loadaverage(http_context,
                          config=None,
                          sessions=None):
    return api_function_wrapper(config,
                                http_context,
                                sessions,
                                metrics,
                                'get_loadaverage')
def get_hello(http_context, config=None, sessions=None):
    """
    Parameters:
        http_context: HTTP context containing HTTP paramaters and variables.
        config: Agent configuration.
        sessions: List of current sessions.
    """
    return api_function_wrapper(config, http_context, sessions,
                                sys.modules[__name__], 'say_hello_world')
예제 #7
0
def dashboard_config(http_context, config=None, sessions=None):
    return api_function_wrapper(config, http_context, sessions, config_module,
                                'get_config')
def get_hello_something(http_context, config=None, sessions=None):
    return api_function_wrapper(config, http_context, sessions,
                                sys.modules[__name__], 'say_hello_something')