Skip to main content
Add a configuration of this metric for your organization, seeded from its Default. Edit it with PUT to change what it measures, then pin it where you want it used. Threshold metrics have no variants: their configuration comes from the metric they derive from. Metrics in a package that manages its own variants reject this too.
Calls POST /v1/metric/definitions/{idOrSlug}/variants

Arguments

string
required
Metric definition UUID or its stable slug.

Options

string
required
Name for the new variant. Must be unique for this metric within your organization and cannot be Default.

Example

Every command also takes the global options and sets one of the exit codes.