Skip to content

Commit

Permalink
日志与调用链探索式查询功能支持
Browse files Browse the repository at this point in the history
  • Loading branch information
ieven committed Dec 1, 2017
1 parent 13b4505 commit 463eeb9
Show file tree
Hide file tree
Showing 20 changed files with 946 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -989,21 +989,28 @@ public void loadAppProfileDetail(String data, @Suspended AsyncResponse response)
@GET
@Path("profile/q/cache")
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
public void loadAppProfileList(@Suspended AsyncResponse response) {
public void loadAppProfileList(@QueryParam("fkey") String fkey, @QueryParam("fvalue") String fvalue,
@Suspended AsyncResponse response) {

UAVHttpMessage message = new UAVHttpMessage();
message.setIntent("profile");

String groups = getUserGroupsByFilter(request);
if ("NOMAPPING".equals(groups)) {
response.resume("{\"rs\":\"{}\"}");
}
else if ("ALL".equals(groups)) {
loadAppProfileListFromHttp(message, response);
if (StringHelper.isEmpty(fkey) || StringHelper.isEmpty(fvalue)) {
String groups = getUserGroupsByFilter(request);
if ("NOMAPPING".equals(groups)) {
response.resume("{\"rs\":\"{}\"}");
}
else if ("ALL".equals(groups)) {
loadAppProfileListFromHttp(message, response);
}
else {
message.putRequest("fkey", "appgroup");
message.putRequest("fvalue", groups);
loadAppProfileListFromHttp(message, response);
}
}
else {
message.putRequest("fkey", "appgroup");
message.putRequest("fvalue", groups);
message.putRequest("fkey", fkey);
message.putRequest("fvalue", fvalue);
loadAppProfileListFromHttp(message, response);
}

Expand Down
Loading

0 comments on commit 463eeb9

Please sign in to comment.