Skip to content
Snippets Groups Projects
Commit 648cd2b7 authored by Tobias Bruns's avatar Tobias Bruns
Browse files

OZG-7942 add timed for all vorgang list loading

parent 66575b36
Branches
Tags
1 merge request!28Ozg 7942 fix performance issues
......@@ -80,6 +80,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "byStatus" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_STATUS })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByStatus(@RequestParam int page, @RequestParam Integer limit,
@RequestParam VorgangStatus status) {
......@@ -89,6 +90,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "search" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_SEARCH })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllBySearchBy(@RequestParam int page, @RequestParam Integer limit,
@RequestParam String searchBy) {
......@@ -97,6 +99,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "byAssignedTo" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_ASSIGNED_TO })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByAssignedTo(@RequestParam int page, @RequestParam Integer limit,
@RequestParam UserId assignedTo) {
......@@ -106,6 +109,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "byAssignedTo", "search" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_ASSIGNED_TO, PARAM_SEARCH })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByAssignedToAndSearchBy(@RequestParam int page, @RequestParam Integer limit,
@RequestParam UserId assignedTo, @RequestParam String searchBy) {
......@@ -117,6 +121,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "byAssignedTo", "status" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_ASSIGNED_TO, PARAM_STATUS })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByAssignedToAndStatus(@RequestParam int page, @RequestParam Integer limit,
@RequestParam UserId assignedTo, @RequestParam VorgangStatus status) {
......@@ -129,6 +134,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "wiedervorlageFrist" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_NEXT_WIEDERVORLAGE_FRIST })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByHasNextWiedervorlageFrist(@RequestParam int page, @RequestParam Integer limit,
@RequestParam String nextFrist) {
......@@ -140,6 +146,7 @@ public class VorgangController {
return handleGetAllRequest(requestCriteria);
}
@Timed(value = "http_vorgang_getAll", extraTags = { "byAssignedTo", "hasWiedervorlageFrist" })
@GetMapping(params = { PARAM_PAGE, PARAM_LIMIT, PARAM_ASSIGNED_TO, PARAM_NEXT_WIEDERVORLAGE_FRIST })
public RepresentationModel<EntityModel<EnhancedVorgang>> getAllByAssignedToAndHasNextWiedervorlageFrist(@RequestParam int page,
@RequestParam Integer limit,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment