MeasurementScheduleRequest request, ResourceType resourceType, String deploymentName) {
String metricName = metricProperty.getName();
MetaType type = metricProperty.getMetaType();
MetaValue value = metricProperty.getValue();
if (value != null) {
MeasurementAdapter measurementAdapter = MeasurementAdapterFactory.getMeasurementPropertyAdapter(type);
MeasurementDefinition measurementDefinition = ResourceTypeUtils.getMeasurementDefinition(resourceType,
metricName);
if (measurementDefinition != null) {
measurementAdapter.setMeasurementData(report, value, request, measurementDefinition);
}
} else {
LOG.debug("Unable to obtain metric data for resource: " + deploymentName + " metric: " + metricName);
}
}