|
4 | 4 | import com.microservice.quarkus.mapper.CompanyMapper; |
5 | 5 | import com.microservice.quarkus.model.Company; |
6 | 6 | import org.bson.types.ObjectId; |
7 | | -import org.eclipse.microprofile.metrics.MetricUnits; |
8 | | -import org.eclipse.microprofile.metrics.annotation.Counted; |
9 | | -import org.eclipse.microprofile.metrics.annotation.Metered; |
10 | | -import org.eclipse.microprofile.metrics.annotation.Timed; |
11 | 7 | import org.slf4j.Logger; |
12 | 8 | import org.slf4j.LoggerFactory; |
13 | 9 | import org.springframework.data.domain.Page; |
@@ -36,19 +32,6 @@ public class CompanyResource { |
36 | 32 |
|
37 | 33 | @GET |
38 | 34 | @RolesAllowed({"ROLE_ADMIN", "ROLE_COMPANY_READ", "ROLE_COMPANY_SAVE", "COMPANY_DELETE", "ROLE_COMPANY_CREATE", "SCOPE_openid"}) |
39 | | - @Timed(name = "getAllActiveCompaniesTimed", |
40 | | - description = "Monitor the time getAllActiveCompanies method takes", |
41 | | - unit = MetricUnits.MILLISECONDS, |
42 | | - absolute = true) |
43 | | - @Metered(name = "getAllActiveCompaniesMetered", |
44 | | - unit = MetricUnits.MILLISECONDS, |
45 | | - description = "Monitor the rate events occurred", |
46 | | - absolute = true) |
47 | | - @Counted( |
48 | | - name = "getAllActiveCompaniesCounted", |
49 | | - absolute = true, |
50 | | - displayName = "getAllActiveCompanies", |
51 | | - description = "Monitor how many times getAllActiveCompanies method was called") |
52 | 35 | public Page<CompanyDto> getAllActiveCompanies(@Context SecurityContext ctx, |
53 | 36 | @QueryParam("page") @DefaultValue("0") Integer page, |
54 | 37 | @QueryParam("size") @DefaultValue("10") Integer size) { |
|
0 commit comments