diff options
3 files changed, 10 insertions, 3 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java index ef70a3763..be33c6a01 100755 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java @@ -30,6 +30,7 @@ import static org.onap.cps.ncmp.api.impl.operations.OperationType.DELETE; import static org.onap.cps.ncmp.api.impl.operations.OperationType.PATCH; import static org.onap.cps.ncmp.api.impl.operations.OperationType.UPDATE; +import io.micrometer.core.annotation.Timed; import java.util.Collection; import java.util.List; import java.util.Map; @@ -92,16 +93,14 @@ public class NetworkCmProxyController implements NetworkCmProxyApi { * @param includeDescendants whether to include descendants or not * @return {@code ResponseEntity} response from dmi plugin */ - @Override + @Timed(value = "cps.ncmp.controller.get", description = "Time taken to get resource data from datastore") public ResponseEntity<Object> getResourceDataForCmHandle(final String datastoreName, final String cmHandle, final String resourceIdentifier, final String optionsParamInQuery, final String topicParamInQuery, final Boolean includeDescendants) { - - final NcmpDatastoreRequestHandler ncmpDatastoreRequestHandler = getNcmpDatastoreRequestHandler(datastoreName); return ncmpDatastoreRequestHandler.executeRequest(datastoreName, cmHandle, resourceIdentifier, optionsParamInQuery, topicParamInQuery, includeDescendants); diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiDataOperations.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiDataOperations.java index b8edeccf2..fa18767db 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiDataOperations.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiDataOperations.java @@ -26,6 +26,7 @@ import static org.onap.cps.ncmp.api.NcmpResponseStatus.UNABLE_TO_READ_RESOURCE_D import static org.onap.cps.ncmp.api.impl.operations.DatastoreType.PASSTHROUGH_RUNNING; import static org.onap.cps.ncmp.api.impl.operations.OperationType.READ; +import io.micrometer.core.annotation.Timed; import java.util.Collection; import java.util.List; import java.util.Map; @@ -80,6 +81,9 @@ public class DmiDataOperations extends DmiOperations { * @param requestId requestId for async responses * @return {@code ResponseEntity} response entity */ + @Timed(value = "cps.ncmp.dmi.get", + description = "Time taken to fetch the resource data from operational data store for given cm handle " + + "identifier on given resource using dmi client") public ResponseEntity<Object> getResourceDataFromDmi(final String dataStoreName, final String cmHandleId, final String resourceId, diff --git a/releases/3.3.10.yaml b/releases/3.3.10.yaml new file mode 100644 index 000000000..720f552eb --- /dev/null +++ b/releases/3.3.10.yaml @@ -0,0 +1,4 @@ +distribution_type: maven +log_dir: cps-maven-stage-montreal/1/ +project: cps +version: 3.3.10
\ No newline at end of file |