async def send(self, metric):
message = json.dumps(metric).encode('<STR_LIT:utf-8>')<EOL>await self.loop.create_datagram_endpoint(<EOL>lambda: UDPClientProtocol(message),<EOL>remote_addr=(self.ip, self.port))<EOL>
Transform metric to JSON bytestring and send to server.

        Args:
            metric (dict): Complete metric to send as JSON.