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

Method apiVersion

src/tsd/HttpQuery.java:122–124  ·  view source on GitHub ↗

Returns the version for an API request. If the request was for a deprecated API call (such as /q, /suggest, /logs) this value will be 0. If the request was for a new API call, the version will be 1 or higher. If the user does not supply a version, the MAX_API_VERSION value will be used. @since 2.0

()

Source from the content-addressed store, hash-verified

120 * @since 2.0
121 */
122 public int apiVersion() {
123 return this.api_version;
124 }
125
126 /** @return Whether or not to show stack traces in errors @since 2.0 */
127 public boolean showStackTrace() {

Calls

no outgoing calls