in postgresql_metrics/default_metrics.py [0:0]
def create_default_metric(value, attributes=None):
metric = {
'type': DEFAULT_METRIC_TYPE,
'key': DEFAULT_METRIC_NAMESPACE,
'value': value,
}
if attributes:
metric['attributes'] = dict(attributes)
return metric