The Amazon CloudWatch API operation that publishes numerical metric observations with associated timestamps, units, and…