class StatsTrendAction extends Action<StatsTrendRequest> {

    @Override
    public ActionResponse execute(StatsTrendRequest parameter) {
        SearchRequestBuilder searchRequestBuilder = getRequestBuilder(parameter);

        try {
            SearchResponse response = searchRequestBuilder.execute()
                    .actionGet(getGetQueryTimeout());
            return getResponse(response, parameter);
        }
        catch (ElasticsearchException e) {
            throw FoxtrotExceptions.createQueryExecutionException(parameter, e);
        }
    }

    public  StatsTrendAction(StatsTrendRequest parameter, AnalyticsLoader analyticsLoader);

}