def METHOD_NAME(self, descs, result):
    """ Extract the set of metric values from a given pmResult """
    values = []
    for index, desc in enumerate(descs):
        if result.contents.get_numval(index) > 0:
            atom = self.context.pmExtractValue(
                            result.contents.get_valfmt(index),
                            result.contents.get_vlist(index, 0),
                            desc.contents.type, PM_TYPE_U32)
            values.append(int(atom.ul))
        else:
            values.append(int(0))
    return values