X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Fresources%2Fmcxapp_interface.robot;h=27c6edb6292509fa5aebc95e2661326838bf7c77;hb=refs%2Fchanges%2F99%2F3799%2F9;hp=3194aada5a3fa0854c64d34ab6628c649511999c;hpb=cc685917b28444e6e9fc70f1a96b14e073d8cec7;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/nanobot/configmap-src/public/resources/mcxapp_interface.robot b/ric_robot_suite/helm/nanobot/configmap-src/public/resources/mcxapp_interface.robot index 3194aad..27c6edb 100644 --- a/ric_robot_suite/helm/nanobot/configmap-src/public/resources/mcxapp_interface.robot +++ b/ric_robot_suite/helm/nanobot/configmap-src/public/resources/mcxapp_interface.robot @@ -44,21 +44,22 @@ Parse Listener Statistics # lines are sorted by timestamp, it's not something i'm # going to take for granted. ${stats} = Create Dictionary - :FOR ${statLine} IN @{logLines} - \ ${match} ${ts} ${mtype} ${tWrites} ${tDrops} ${rWrites} ${rDrops} = - ... Should Match Regexp ${statLine} ${listenerStatRegex} - \ ${stat} = Create Dictionary - ... timestamp=${ts} - ... totalWrites=${tWrites} - ... totalDrops=${tDrops} - ... recentWrites=${rWrites} - ... recentDrops=${rDrops} - \ ${s} ${d} = Run Keyword And Ignore Error - ... Get From Dictionary ${stats} ${mtype} - \ ${prevTS} = Run Keyword If "${s}" == "PASS" - ... Get From Dictionary ${d} timestamp - ... ELSE - ... Set Variable -1 - \ Run Keyword If ${ts} > ${prevTS} - ... Set To Dictionary ${stats} ${mtype} ${stat} + FOR ${statLine} IN @{logLines} + ${match} ${ts} ${mtype} ${tWrites} ${tDrops} ${rWrites} ${rDrops} = + ... Should Match Regexp ${statLine} ${listenerStatRegex} + ${stat} = Create Dictionary + ... timestamp=${ts} + ... totalWrites=${tWrites} + ... totalDrops=${tDrops} + ... recentWrites=${rWrites} + ... recentDrops=${rDrops} + ${s} ${d} = Run Keyword And Ignore Error + ... Get From Dictionary ${stats} ${mtype} + ${prevTS} = Run Keyword If "${s}" == "PASS" + ... Get From Dictionary ${d} timestamp + ... ELSE + ... Set Variable -1 + Run Keyword If ${ts} > ${prevTS} + ... Set To Dictionary ${stats} ${mtype} ${stat} + END [Return] ${stats}