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

Method toString

src/stats/QueryStats.java:306–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 }
305
306 @Override
307 public String toString() {
308 // have to hack it to get the details. By default we dump just the highest
309 // level of stats.
310 final Map<String, Object> details = new HashMap<String, Object>();
311 details.put("queryStartTimestamp", getQueryStartTimestamp());
312 details.put("queryCompletedTimestamp", getQueryCompletedTimestamp());
313 details.put("exception", getException());
314 details.put("httpResponse", getHttpResponse());
315 details.put("numRunningQueries", getNumRunningQueries());
316 details.put("query", getQuery());
317 details.put("user", getUser());
318 details.put("requestHeaders", getRequestHeaders());
319 details.put("executed", getExecuted());
320 details.put("stats", getStats(true, true));
321 return JSON.serializeToString(details);
322 }
323
324 /**
325 * Marks a query as completed successfully with the 200 HTTP response code

Callers 7

markSentMethod · 0.95
markSendFailedMethod · 0.95
QueryStatsMethod · 0.45
markSerializedMethod · 0.45
getExceptionMethod · 0.45
getStatsMethod · 0.45
getQueryStatsMethod · 0.45

Calls 12

getExceptionMethod · 0.95
getHttpResponseMethod · 0.95
getNumRunningQueriesMethod · 0.95
getQueryMethod · 0.95
getUserMethod · 0.95
getRequestHeadersMethod · 0.95
getExecutedMethod · 0.95
getStatsMethod · 0.95
serializeToStringMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected