Hi’
I’ve got question around doing some date comparison. We currently doing project to monitor our various agents installed on the device, and one criteria is that they would like us to report all date fields in following format “YYYY-MM-DD HH:MM:SS”. I’ve found some relevance to do this (Thx Jason Walker).
Issue is we sometimes have to check if agent has been reporting recently and problem now is that the above date format is returned as “singular string”
Q: value of settings “_PG_AgentLastRun_AgentXXX” of client
A: 2022-09-15 10:10:48
T: 0.136 ms
I: singular string
I would like to do something like below to check agent has reported in last 24 hours or something similar
value of settings “_PG_AgentLastRun_AgentXXX” of client > now - 1*day
if it’s singular string that will not work
if I keep it in the time format then it works just fine
Q: value of settings “_PG_AgentLastRun_AgentXXX” of client
A: Thu, 15 Sep 2022 09:45:03 +0200
T: 1.402 ms
I: plural time
Looking for easy way to accomplish this, I could create parameter and find way to convert it back to singular time, but that’s to overcomplicated in my opinion also want to try and keep it standard across various agents when possible, as we also collect these settings as Properties that will be used for PowerBI Dashboard
any ideas/suggestion are welcome.