import time


def get_balance_metrics(balance_data, ts=None):
    """
    Return a list of balance metrics.

    Parsed from the [balance](http://dev.datasift.com/docs/api/1/balance)
    endpoint.
    """
    ts = ts or time.time()

    return [
        ('datasift.balance.credit', (ts, balance_data['balance']['credit']))
    ]