Buckets are used to regulate the percentage of data that will be sent. The bucket number must belong to the interval of 0…255. It is usually calculated as a hash(device_id) % 256.