'Generate a list of Sample from the data returned by inspector
:param host_url: host url of the endpoint
:param data: list of data returned by the corresponding inspector'

def generate_samples(self, host_url, data):

    samples = []
    definition = self.meter_definition
    for (value, metadata, extra) in data:
        s = util.make_sample_from_host(host_url, name=definition.name, sample_type=definition.type, unit=definition.unit, volume=value, res_metadata=metadata, extra=extra, name_prefix=None)
        samples.append(s)
    return samples
