Extracting make_resource_metadata method
Extracting make_resource_metadata method

Dividing this method into multiple helps to reuse it in
some tools scripts for generating data.

Change-Id: I45230cd43d82e946fab394c4b6a1fe6b64cd8937
Related-Bug: #1349791

mathslinux/ceilometer,MisterPup/Ceilometer-Juno-Extension,m1093782566/openstack_org_ceilometer,pkilambi/ceilometer,isyippee/ceilometer,pczerkas/aodh,MisterPup/Ceilometer-Juno-Extension,ityaptin/ceilometer,idegtiarov/ceilometer,mathslinux/ceilometer,isyippee/ceilometer,sileht/aodh,chungg/aodh,r-mibu/ceilometer,fabian4/ceilometer,Juniper/ceilometer,froyobin/ceilometer,openstack/aodh,maestro-hybrid-cloud/ceilometer,m1093782566/openstack_org_ceilometer,openstack/aodh,luogangyi/Ceilometer-oVirt,eayunstack/ceilometer,idegtiarov/ceilometer,cernops/ceilometer,maestro-hybrid-cloud/ceilometer,r-mibu/ceilometer,fabian4/ceilometer,Juniper/ceilometer,sileht/aodh,openstack/ceilometer,ityaptin/ceilometer,eayunstack/ceilometer,pczerkas/aodh,cernops/ceilometer,openstack/ceilometer,chungg/aodh,froyobin/ceilometer,redhat-openstack/ceilometer,pkilambi/ceilometer,redhat-openstack/ceilometer,luogangyi/Ceilometer-oVirt