Skip to content

Commit

Permalink
Fix the links to the api documents
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Nov 21, 2016
1 parent 1105cd2 commit 2600fd0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkr - Command Line Tool For Mackerel written in Go.

# DESCRIPTION

mkr is a command-line interface tool for the [Mackerel API](http://help-ja.mackerel.io/entry/spec/api/v0) written in Go.
mkr is a command-line interface tool for the [Mackerel API](https://mackerel.io/api-docs/) written in Go.
mkr helps to automate tedious daily server operations to best leverage Mackerel's and Unix's tools.
mkr output format is JSON, so it can be filtered with a JSON processor such as [jq](http://stedolan.github.io/jq/).

Expand Down
2 changes: 1 addition & 1 deletion alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var commandAlerts = cli.Command{
Usage: "Retrieve/Close alerts",
Description: `
Retrieve/Close alerts. With no subcommand specified, this will show all alerts.
Requests APIs under "/api/v0/alerts". See http://help-ja.mackerel.io/entry/spec/api/v0 .
Requests APIs under "/api/v0/alerts". See https://mackerel.io/api-docs/entry/alerts .
`,
Action: doAlertsRetrieve,
Subcommands: []cli.Command{
Expand Down
14 changes: 7 additions & 7 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var commandStatus = cli.Command{
Usage: "Show the host",
Description: `
Show the information of the host identified with <hostId>.
Requests "GET /api/v0/hosts/<hostId>". See http://help-ja.mackerel.io/entry/spec/api/v0#host-get.
Requests "GET /api/v0/hosts/<hostId>". See https://mackerel.io/api-docs/entry/hosts#get .
`,
Action: doStatus,
Flags: []cli.Flag{
Expand All @@ -47,7 +47,7 @@ var commandHosts = cli.Command{
Usage: "List hosts",
Description: `
List the information of the hosts refined by host name, service name, role name and/or status.
Requests "GET /api/v0/hosts.json". See http://help-ja.mackerel.io/entry/spec/api/v0#hosts-list.
Requests "GET /api/v0/hosts.json". See https://mackerel.io/api-docs/entry/hosts#list .
`,
Action: doHosts,
Flags: []cli.Flag{
Expand All @@ -73,7 +73,7 @@ var commandCreate = cli.Command{
Usage: "Create a new host",
Description: `
Create a new host with status and/or roleFullname.
Requests "POST /api/v0/hosts". See http://help-ja.mackerel.io/entry/spec/api/v0#host-create.
Requests "POST /api/v0/hosts". See https://mackerel.io/api-docs/entry/hosts#create .
`,
Action: doCreate,
Flags: []cli.Flag{
Expand All @@ -91,7 +91,7 @@ var commandUpdate = cli.Command{
Usage: "Update the host",
Description: `
Update the host identified with <hostId>.
Requests "PUT /api/v0/hosts/<hostId>". See http://help-ja.mackerel.io/entry/spec/api/v0#host-update.
Requests "PUT /api/v0/hosts/<hostId>". See https://mackerel.io/api-docs/entry/hosts#update-information .
`,
Action: doUpdate,
Flags: []cli.Flag{
Expand All @@ -113,7 +113,7 @@ var commandThrow = cli.Command{
Description: `
Post metric values to 'host metric' or 'service metric'.
Output format of metric values are compatible with that of a Sensu plugin.
Requests "POST /api/v0/tsdb". See http://help-ja.mackerel.io/entry/spec/api/v0#metric-value-post.
Requests "POST /api/v0/tsdb". See https://mackerel.io/api-docs/entry/host-metrics#post .
`,
Action: doThrow,
Flags: []cli.Flag{
Expand All @@ -127,7 +127,7 @@ var commandFetch = cli.Command{
Usage: "Fetch latest metric values",
Description: `
Fetch latest metric values about the hosts.
Requests "GET /api/v0/tsdb/latest". See http://help-ja.mackerel.io/entry/spec/api/v0#tsdb-latest.
Requests "GET /api/v0/tsdb/latest". See https://mackerel.io/api-docs/entry/host-metrics#get-latest .
`,
Action: doFetch,
Flags: []cli.Flag{
Expand All @@ -144,7 +144,7 @@ var commandRetire = cli.Command{
Usage: "Retire hosts",
Description: `
Retire host identified by <hostId>. Be careful because this is an irreversible operation.
Requests POST /api/v0/hosts/<hostId>/retire parallelly. See http://help-ja.mackerel.io/entry/spec/api/v0#host-retire.
Requests POST /api/v0/hosts/<hostId>/retire parallelly. See https://mackerel.io/api-docs/entry/hosts#retire .
`,
Action: doRetire,
Flags: []cli.Flag{
Expand Down
2 changes: 1 addition & 1 deletion monitors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var commandMonitors = cli.Command{
Usage: "Manipulate monitors",
Description: `
Manipulate monitor rules. With no subcommand specified, this will show all monitor rules.
Requests APIs under "/api/v0/monitors". See http://help-ja.mackerel.io/entry/spec/api/v0 .
Requests APIs under "/api/v0/monitors". See https://mackerel.io/api-docs/entry/monitors .
`,
Action: doMonitorsList,
Subcommands: []cli.Command{
Expand Down

0 comments on commit 2600fd0

Please sign in to comment.