The form of animal behavior that this prairie dog on guard duty exhibits is altruistic behavior.
This means that the dog isn't only thinking about itself, but rather about the others as well. Since it escaped danger, it alarmed other dogs as well, so that they could also be safe and not injured by the golden eagle. It seems that not only humans, but also animals are capable of showing such a behavior.