Hydra Set and Rimeheart: Does it work?

Simple question, does rimehearts effect work even though youre not technically attacking, its the hydra attacking? And are hydras pets?

I do not believe Hydra a proc coefficient, so they should not trigger Rimeheart.