anchor.diff:          ++ couchbase_view_stats_descriptions(BucketId)
           ++ couchbase_replication_stats_descriptions(BucketId)
           ++ case AddQuery of
  -               true -> couchbase_query_stats_descriptions(BucketId);
  +               true -> couchbase_query_stats_descriptions();
                  false -> []
              end
           ++ [{struct,[{blockName,<<"Incoming XDCR Operations">>},
  
positive.code:               [MyStats|Stats]
        end, [], DictBySig).
  
  couchbase_query_stats_descriptions(Bucket) ->
      Classes = case Bucket of
                    "@query" ->
                        <<"">>;
                    _ ->
                        <<"dynamic_closed analytics_query_block">>
                end,
      [{struct, [{blockName, <<"Query">>},
                 {extraCSSClasses, Classes},
                 {stats,
                  [{struct, [{title, <<"Requests/sec">>},
                             {name, <<"query_requests">>},
  
negative.code:     [{struct, server_resources_stats_description()} | Base].
  
  serve_stats_directory(_PoolId, BucketId, Req) ->
      Params = Req:parse_qs(),
      AddQuery = proplists:get_value("addq", Params, "") =/= "",
      BaseDescription = base_stats_directory(BucketId, AddQuery),
      Prefix = menelaus_util:concat_url_path(["pools", "default", "buckets", BucketId, "stats"]),
      Desc = [{struct, add_specific_stats_url(BD, Prefix)} || {struct, BD} <- BaseDescription],
      menelaus_util:reply_json(Req, {struct, [{blocks, Desc}]}).
  