metric_names

package
v0.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:      "metric-names",
	Usage:     "Fetch metric names",
	ArgsUsage: "[--host | -H <hostId>] [--service | -s <service>] [--jq <formula>]",
	Description: `
    Fetch metric names of 'host metric' or 'service metric'.
    Requests "/api/v0/hosts/<hostId>/metric-names" or "/api/v0/services/<serviceName>/metric-names".
    See https://mackerel.io/api-docs/entry/hosts#metric-names, https://mackerel.io/api-docs/entry/services#metric-names
`,
	Action: doMetricNames,
	Flags: []cli.Flag{
		cli.StringFlag{Name: "host, H", Value: "", Usage: "Fetch host metric names of <hostID>."},
		cli.StringFlag{Name: "service, s", Value: "", Usage: "Fetch service metric names of <service>."},
		jq.CommandLineFlag,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL