This is an automated email from the ASF dual-hosted git repository. nixon pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new 6ced16b ATLAS-4315 - An entity when updated via REST api, is not reflected in debug metrics. 6ced16b is described below commit 6ced16be4cc8c367a16fdfea3a11185c5a3206ef Author: mayanknj <mayank.j...@freestoneinfotech.com> AuthorDate: Mon May 31 20:48:42 2021 +0530 ATLAS-4315 - An entity when updated via REST api, is not reflected in debug metrics. Signed-off-by: nixonrodrigues <ni...@apache.org> --- .../org/apache/atlas/web/service/AtlasDebugMetricsSource.java | 10 ++++++++++ .../java/org/apache/atlas/web/service/DebugMetricsWrapper.java | 2 ++ 2 files changed, 12 insertions(+) diff --git a/webapp/src/main/java/org/apache/atlas/web/service/AtlasDebugMetricsSource.java b/webapp/src/main/java/org/apache/atlas/web/service/AtlasDebugMetricsSource.java index ec64b01..63e979a 100644 --- a/webapp/src/main/java/org/apache/atlas/web/service/AtlasDebugMetricsSource.java +++ b/webapp/src/main/java/org/apache/atlas/web/service/AtlasDebugMetricsSource.java @@ -41,7 +41,9 @@ public class AtlasDebugMetricsSource { protected @Metric(always = true) MutableRate entityREST_getById; protected @Metric(always = true) MutableRate entityREST_createOrUpdate; + protected @Metric(always = true) MutableRate entityREST_partialUpdateEntityAttrByGuid; protected @Metric(always = true) MutableRate entityREST_deleteByGuid; + protected @Metric(always = true) MutableRate entityREST_getClassification; protected @Metric(always = true) MutableRate entityREST_getClassifications; protected @Metric(always = true) MutableRate entityREST_addClassificationsByUniqAttr; protected @Metric(always = true) MutableRate entityREST_addClassifications; @@ -583,10 +585,18 @@ public class AtlasDebugMetricsSource { entityREST_createOrUpdate.add(timeConsumed); break; + case EntityREST_partialUpdateEntityAttrByGuid: + entityREST_partialUpdateEntityAttrByGuid.add(timeConsumed); + break; + case EntityREST_deleteByGuid: entityREST_deleteByGuid.add(timeConsumed); break; + case EntityREST_getClassification: + entityREST_getClassification.add(timeConsumed); + break; + case EntityREST_getClassifications: entityREST_getClassifications.add(timeConsumed); break; diff --git a/webapp/src/main/java/org/apache/atlas/web/service/DebugMetricsWrapper.java b/webapp/src/main/java/org/apache/atlas/web/service/DebugMetricsWrapper.java index 564a946..0d2da1b 100644 --- a/webapp/src/main/java/org/apache/atlas/web/service/DebugMetricsWrapper.java +++ b/webapp/src/main/java/org/apache/atlas/web/service/DebugMetricsWrapper.java @@ -69,7 +69,9 @@ public class DebugMetricsWrapper { public static final String EntityREST_getById = EntityRESTPrefix + "getById(..)"; public static final String EntityREST_createOrUpdate = EntityRESTPrefix + "createOrUpdate(..)"; + public static final String EntityREST_partialUpdateEntityAttrByGuid = EntityRESTPrefix + "partialUpdateEntityAttrByGuid(..)"; public static final String EntityREST_deleteByGuid = EntityRESTPrefix + "deleteByGuid(..)"; + public static final String EntityREST_getClassification = EntityRESTPrefix + "getClassification(..)"; public static final String EntityREST_getClassifications = EntityRESTPrefix + "getClassifications(..)"; public static final String EntityREST_addClassificationsByUA = EntityRESTPrefix + "addClassificationsByUniqueAttribute(..)"; public static final String EntityREST_addClassifications = EntityRESTPrefix + "addClassifications(..)";