Embedded informatics toward a metallic self-healing material