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

Method usage

src/tools/CliQuery.java:39–57  ·  view source on GitHub ↗

Prints usage and exits with the given retval.

(final ArgP argp, final String errmsg,
                            final int retval)

Source from the content-addressed store, hash-verified

37
38 /** Prints usage and exits with the given retval. */
39 private static void usage(final ArgP argp, final String errmsg,
40 final int retval) {
41 System.err.println(errmsg);
42 System.err.println("Usage: query"
43 + " [Gnuplot opts] START-DATE [END-DATE] <query> [queries...]\n"
44 + "A query has the form:\n"
45 + " FUNC [rate] [counter,max,reset] [downsample N FUNC] SERIES [TAGS]\n"
46 + "For example:\n"
47 + " 2010/03/11-20:57 sum my.awsum.metric host=blah"
48 + " sum some.other.metric host=blah state=foo\n"
49 + "Dates must follow this format: YYYY/MM/DD-HH:MM[:SS] or Unix Epoch\n"
50 + " or relative time such as 1y-ago, 2d-ago, etc.\n"
51 + "Supported values for FUNC: " + Aggregators.set()
52 + "\nGnuplot options are of the form: +option=value");
53 if (argp != null) {
54 System.err.print(argp.usage());
55 }
56 System.exit(retval);
57 }
58
59 public static void main(String[] args) throws Exception {
60 ArgP argp = new ArgP();

Callers 2

mainMethod · 0.95
doQueryMethod · 0.95

Calls 1

setMethod · 0.95

Tested by

no test coverage detected