def add_serialization_status_metric(status, hostname):
 interval = 10.0
 value = 1
 return {'tags': ['status:{0}'.format(status)], 'metric': 'datadog.dogstatsd.serialization_status', 'interval': interval, 'device_name': None, 'host': hostname, 'points': [(time(), (value / interval))], 'type': MetricTypes.RATE}

def add_serialization_status_metric ( status , hostname ) : interval = 10.0 value = 1 return { 'tags' : [ 'status:{0}' . format ( status ) ] , 'metric' : 'datadog.dogstatsd.serialization_status' , 'interval' : interval , 'device_name' : None , 'host' : hostname , 'points' : [ ( time ( ) , ( value / interval ) ) ] , 'type' : MetricTypes . RATE }
add a metric to track the number of metric serializations .