def create_influxdb_points_body(hostname, measurements, timestamp):
    """
    :param str hostname: the hostname
    :param dict measurements: a mapping of str measurement names to float values
    :param timestamp: Unix timestamp in seconds
    :type timestamp: :class:`datetime.datetime`
    :return: a `list` of `dict`s
    """
    return [
        dict(
            measurement=name,
            tags=dict(
                host=hostname,
            ),
            time=timestamp,
            fields=dict(
                value=value,
            )
        ) for name, value in measurements.items()
    ]