Simple helper to format an error trying to save a data point @param message The message to return to the user @param dp The datapoint that caused the error @return A hashmap with information @since 2.0
(final String message,
final IncomingDataPoint dp)
| 819 | * @since 2.0 |
| 820 | */ |
| 821 | final private HashMap<String, Object> getHttpDetails(final String message, |
| 822 | final IncomingDataPoint dp) { |
| 823 | final HashMap<String, Object> map = new HashMap<String, Object>(); |
| 824 | map.put("error", message); |
| 825 | map.put("datapoint", dp); |
| 826 | return map; |
| 827 | } |
| 828 | |
| 829 | /** |
| 830 | * Passes a data point off to the storage handler plugin if it has been |
no test coverage detected