-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/75092/
-----------------------------------------------------------

(Updated July 17, 2024, 12:07 p.m.)


Review request for atlas, chaitali, Jayendra Parab, Madhan Neethiraj, and Pinal 
Shah.


Bugs: ATLAS-4886
    https://issues.apache.org/jira/browse/ATLAS-4886


Repository: atlas


Description
-------

Need to add time related fields to the response of utility like 
startTime,endTime,duration

startTime =  It is message creation time of the first message received from the 
hook

endTime =  It is message creation time of the last message received from the 
hook

duration = It is the difference between the startTime and endTime


Diffs
-----

  
tools/notification-analyzer/src/main/java/org/apache/atlas/tools/NotificationAnalyzer.java
 20b106546 


Diff: https://reviews.apache.org/r/75092/diff/2/


Testing (updated)
-------

the fields added to response are
"startTime":"2024-06-28 19:01:13",
"endTime":"2024-06-28 19:02:33",
"duration":"DAYS: 0, HOURS: 0, MINUTES: 1, SECONDS: 20"

Response :

{"messages":1321,"notifications":1073,"notificationLengthAvg":33105,"notificationLengthMax":514910,"splitNotifications":1,"splitNotificationLengthAvg":514910,"splitNotificationLengthMax":514910,"entities":496,"notificationEntities":1073,"notificationByType":{"ENTITY_CREATE_V2":1073},"notificationEntityByType":{"hdfs_path":12,"spark_application":475,"rdbms_table":111,"spark_process":475},"entityOperations":{"CREATE":496,"UPDATE":577},"entityOperationsByType":{"CREATE":{"hdfs_path":2,"rdbms_table":3,"spark_application":16,"spark_process":475},"UPDATE":{"hdfs_path":10,"rdbms_table":108,"spark_application":459}},
"startTime":"2024-06-28 19:01:13",
"endTime":"2024-06-28 19:02:33",
"duration":"DAYS: 0, HOURS: 0, MINUTES: 1, SECONDS: 20"
}


Thanks,

Prashant Satam

Reply via email to