Given a NodeMetrics it returns the HeapMemory data if the nodeMetrics contains necessary heap metrics.
Given a NodeMetrics it returns the HeapMemory data if the nodeMetrics contains necessary heap metrics.
if possible a tuple matching the HeapMemory constructor parameters