def produce(self, data, data_type="monitoring"):
     if data_type == "monitoring":
         return post_auklet_url(
             build_url(self.client.base_url,
                       "private/sampledstacktraces/store/"),
             self.client.apikey, data)
     elif data_type == "event":
         self.producer.publish().channel(
             self.producer_types[data_type]).message(data).sync()
     return True
 def create_device(self):
     return post_auklet_url(build_url(self.base_url, "private/devices/"),
                            self.apikey, {
                                "mac_address_hash": self.mac_hash,
                                "application": self.app_id
                            })