Adding start and end timestamp columns in csv (#1128)

* Adding start and end timestamp columns in csv

* Adding assert check for the counter timestamps

---------

Co-authored-by: Gopesh Bhardwaj <gopesh.bhardwaj@amd.com>
This commit is contained in:
Manjunath P Jakaraddi
2024-10-16 23:01:00 -07:00
committed by GitHub
parent 28a6918b33
commit 673c21c6db
5 changed files with 14 additions and 8 deletions
+1
View File
@@ -60,6 +60,7 @@ def test_counter_values(input_data):
agent = get_agent(agent_id)
scaling_factor = get_scaling_factor(agent_id)
assert agent is not None, f"itr={itr}\nagent={agent}"
assert itr["start_timestamp"] < itr["end_timestamp"]
for ritr in itr["records"]:
value = ritr["counter_value"]
if int(round(value, 0)) > 0: