(self, meta)
Save `BlobMeta` in the metadata database
Save `BlobMeta` in the metadata database
Save BlobMeta in the metadata database
def put(self, meta):
        """Save `BlobMeta` in the metadata database"""
        meta.save()
        length = meta.stored_content_length
        tags = _meta_tags(meta)
        metrics_counter('commcare.blobs.added.count', tags=tags)
        metrics_counter('commcare.blobs.added.bytes', value=length, tags=tags)
        if meta.expires_on is not None:
            metrics_counter('commcare.temp_blobs.count', tags=tags)
            metrics_counter('commcare.temp_blobs.bytes_added', value=length, tags=tags)
def put ( self , meta ) : meta . save ( ) length = meta . stored_content_length tags = _meta_tags ( meta ) metrics_counter ( 'commcare.blobs.added.count' , tags = tags ) metrics_counter ( 'commcare.blobs.added.bytes' , value = length , tags = tags ) if meta . expires_on is not None : metrics_counter ( 'commcare.temp_blobs.count' , tags = tags ) metrics_counter ( 'commcare.temp_blobs.bytes_added' , value = length , tags = tags )