MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getHttpDetails

Method getHttpDetails

src/tsd/PutDataPointRpc.java:821–827  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

processDataPointMethod · 0.95
callMethod · 0.45
runMethod · 0.45

Calls 1

putMethod · 0.80

Tested by

no test coverage detected