diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-03-13 14:09:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-03-13 14:09:27 +0000 |
commit | 490834698eef6c8c0ef31c9a50f8695487b7f961 (patch) | |
tree | c4594cf83f1b78a515cc95ad992503508b2c45da /cps-service/src | |
parent | 8e08dc797c89f6e85347c10cc7a2e877c126432a (diff) | |
parent | 03ded02d63b196fed2724b1a541457525c3885bc (diff) |
Merge "Add new metrics to the get data node method"
Diffstat (limited to 'cps-service/src')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/api/impl/CpsQueryServiceImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpsQueryServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpsQueryServiceImpl.java index 7b9043a608..a63faabac4 100644 --- a/cps-service/src/main/java/org/onap/cps/api/impl/CpsQueryServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpsQueryServiceImpl.java @@ -20,6 +20,7 @@ package org.onap.cps.api.impl; +import io.micrometer.core.annotation.Timed; import java.util.Collection; import lombok.RequiredArgsConstructor; import org.onap.cps.api.CpsQueryService; @@ -37,6 +38,8 @@ public class CpsQueryServiceImpl implements CpsQueryService { private final CpsValidator cpsValidator; @Override + @Timed(value = "cps.data.service.datanode.query", + description = "Time taken to query data nodes") public Collection<DataNode> queryDataNodes(final String dataspaceName, final String anchorName, final String cpsPath, final FetchDescendantsOption fetchDescendantsOption) { cpsValidator.validateNameCharacters(dataspaceName, anchorName); |