Browse Source

s/${command}/ dogapi/

pull/14/head
Brett Langdon 11 years ago
parent
commit
4b4183622c
9 changed files with 30 additions and 30 deletions
  1. +6
    -6
      bin/dogapi
  2. +3
    -3
      lib/api/event.js
  3. +2
    -2
      lib/api/host.js
  4. +1
    -1
      lib/api/infrastructure.js
  5. +2
    -2
      lib/api/metric.js
  6. +9
    -9
      lib/api/monitor.js
  7. +1
    -1
      lib/api/serviceCheck.js
  8. +5
    -5
      lib/api/tag.js
  9. +1
    -1
      lib/api/user.js

+ 6
- 6
bin/dogapi View File

@ -11,11 +11,11 @@ dogapi.initialize(config);
var usage = [
"Usage:",
"${command} --help",
"${command} <command> --help",
"${command} --version",
"${command} now",
"${command} then <seconds-ago>"
"dogapi --help",
"dogapi <command> --help",
"dogapi --version",
"dogapi now",
"dogapi then <seconds-ago>"
];
var help = [];
for(var key in dogapi){
@ -34,7 +34,7 @@ for(var key in dogapi){
}
usage = usage.concat(help);
usage = usage.join("\r\n").replace(/\$\{command\}/g, " dogapi");
usage = usage.join("\r\n");
var args = minimist(process.argv);
var command = args._[2];


+ 3
- 3
lib/api/event.js View File

@ -142,9 +142,9 @@ module.exports = {
query: query,
getUsage: function(){
return [
"${command} event get <event-id>",
"${command} event query <from> <to> [--priority <priority>] [--sources <sources>] [--tags <tags>]",
"${command} event create <title> <text> [--time <timestamp>] [--priority <priority>] [--host <host>] [--tags <tags>] [--type <type>] [--agg-key <agg-key>] [--source <source>]"
" dogapi event get <event-id>",
" dogapi event query <from> <to> [--priority <priority>] [--sources <sources>] [--tags <tags>]",
" dogapi event create <title> <text> [--time <timestamp>] [--priority <priority>] [--host <host>] [--tags <tags>] [--type <type>] [--agg-key <agg-key>] [--source <source>]"
];
},
getHelp: function(){


+ 2
- 2
lib/api/host.js View File

@ -75,8 +75,8 @@ module.exports = {
unmute: unmute,
getUsage: function(){
return [
"${command} host mute <host> [--end <end>] [--override]",
"${command} host unmute <host>"
" dogapi host mute <host> [--end <end>] [--override]",
" dogapi host unmute <host>"
];
},
getHelp: function(){


+ 1
- 1
lib/api/infrastructure.js View File

@ -35,7 +35,7 @@ module.exports = {
search: search,
getUsage: function(){
return [
"${command} infrastructure search <query>"
" dogapi infrastructure search <query>"
]
},
getHelp: function(){


+ 2
- 2
lib/api/metric.js View File

@ -145,8 +145,8 @@ module.exports = {
query: query,
getUsage: function(){
return [
"${command} metric send <metric> <point> [--tags <tags>] [--host <host>] [--type <type>]",
"${command} metric query <from> <to> <query>"
" dogapi metric send <metric> <point> [--tags <tags>] [--host <host>] [--type <type>]",
" dogapi metric query <from> <to> <query>"
]
},
getHelp: function(){


+ 9
- 9
lib/api/monitor.js View File

@ -328,15 +328,15 @@ module.exports = {
unmuteAll: unmuteAll,
getUsage: function(){
return [
"${command} monitor create <type> <query> [--name <name>] [--message <message>]",
"${command} monitor get <monitor-id> [--states <states>]",
"${command} monitor getall [--states <states>] [--tags <tags>]",
"${command} monitor mute <monitor-id> [--scope <scope>] [--end <end>]",
"${command} monitor muteall",
"${command} monitor remove <monitor-id>",
"${command} monitor unmute <monitor-id> [--scope <scope>]",
"${command} monitor unmuteall",
"${command} monitor update <monitor-id> <query> [--name <name>] [--message <message>]"
" dogapi monitor create <type> <query> [--name <name>] [--message <message>]",
" dogapi monitor get <monitor-id> [--states <states>]",
" dogapi monitor getall [--states <states>] [--tags <tags>]",
" dogapi monitor mute <monitor-id> [--scope <scope>] [--end <end>]",
" dogapi monitor muteall",
" dogapi monitor remove <monitor-id>",
" dogapi monitor unmute <monitor-id> [--scope <scope>]",
" dogapi monitor unmuteall",
" dogapi monitor update <monitor-id> <query> [--name <name>] [--message <message>]"
];
},
getHelp: function(){


+ 1
- 1
lib/api/serviceCheck.js View File

@ -54,7 +54,7 @@ module.exports = {
check: check,
getUsage: function(){
return [
"${command} servicecheck check <check> <host> <status> [--time <timestamp>] [--message <message>] [--tags <tags>]"
" dogapi servicecheck check <check> <host> <status> [--time <timestamp>] [--message <message>] [--tags <tags>]"
];
},
getHelp: function(){


+ 5
- 5
lib/api/tag.js View File

@ -212,11 +212,11 @@ module.exports = {
remove: remove,
getUsage: function(){
return [
"${command} tag getall [--source <source>]",
"${command} tag get <host> [--source <source>] [--by-source]",
"${command} tag remove <host> [--source <source>]",
"${command} tag create <host> <tags> [--source <source>]",
"${command} tag update <host> <tags> [--source <source>]"
" dogapi tag getall [--source <source>]",
" dogapi tag get <host> [--source <source>] [--by-source]",
" dogapi tag remove <host> [--source <source>]",
" dogapi tag create <host> <tags> [--source <source>]",
" dogapi tag update <host> <tags> [--source <source>]"
];
},
getHelp: function(){


+ 1
- 1
lib/api/user.js View File

@ -32,7 +32,7 @@ module.exports = {
invite: invite,
getUsage: function(){
return [
"${command} user invite <address>..."
" dogapi user invite <address>..."
];
},
getHelp: function(){


Loading…
Cancel
Save