I am working on a ceph mgr plugin. I have a dict that I get from self.get('health')
. The keys and values in the dict changes depending on the health of the system.
What I want to achieve is to write a function in python that gets the value of self.get('health')
every 1 minute and compare it with the previous value i.e. oldDictValue
compared to newDictValue
where newDictValue
is the dict value gotten after 1 minute.
oldDictValue
and newDictValue
are variables holding values from self.get('health')
at different times.