diff options
author | Luke Gleeson <luke.gleeson@est.tech> | 2023-01-31 11:41:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-01-31 11:41:54 +0000 |
commit | 447c872eb3c9bd57631127651bc9744c5c1a8643 (patch) | |
tree | 9c2e17873cb6f77001ad5c25b301e00632e45c1c /cps-ncmp-rest | |
parent | afc6055b34af379ab3dd5895d0ecd1ff63a7c9dd (diff) | |
parent | 0fa2fabeec18763bab060d85f5123bceff8ee34c (diff) |
Merge "Introduce Instrumentation"
Diffstat (limited to 'cps-ncmp-rest')
-rwxr-xr-x | cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java index 98da15093c..0c27d3efb0 100755 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java @@ -1,7 +1,7 @@ /* * ============LICENSE_START======================================================= * Copyright (C) 2021-2022 Bell Canada - * Modifications Copyright (C) 2022 Nordix Foundation + * Modifications Copyright (C) 2022-2023 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ package org.onap.cps.ncmp.rest.controller; +import io.micrometer.core.annotation.Timed; import java.util.List; import java.util.Set; import java.util.stream.Collectors; @@ -78,6 +79,8 @@ public class NetworkCmProxyInventoryController implements NetworkCmProxyInventor * @param restDmiPluginRegistration the registration data */ @Override + @Timed(value = "cps.ncmp.inventory.controller.update", + description = "Time taken to handle registration request") public ResponseEntity updateDmiPluginRegistration( final @Valid RestDmiPluginRegistration restDmiPluginRegistration) { final DmiPluginRegistrationResponse dmiPluginRegistrationResponse = |