ATLAS-4315 - An entity when updated via REST api, is not reflected in debug metrics.

Signed-off-by: nixonrodrigues <nixon@apache.org>
This commit is contained in:
mayanknj 2021-05-31 20:48:42 +05:30 committed by nixonrodrigues
parent eec5d77f27
commit 6ced16be4c
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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(..)";