metrics

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricKey

type MetricKey string

MetricKey represents metrics keys collected and sent to charmhub.

const (
	// Controller is used in RequestMetrics
	Controller MetricKey = "controller"

	// Model is used in RequestMetrics
	Model MetricKey = "model"

	// UUID is the uuid of a model, either controller or model.
	UUID MetricKey = "uuid"
	// JujuVersion is the version of juju running in this model.
	JujuVersion MetricKey = "juju-version"

	// Provider matches the provider type defined in juju.
	Provider MetricKey = "provider"
	// Region is the region this model is operating in.
	Region MetricKey = "region"
	// Cloud is the name of the cloud this model is operating in.
	Cloud MetricKey = "cloud"
	// NumApplications is the number of applications in the model.
	NumApplications MetricKey = "applications"
	// NumMachines is the number of machines in the model.
	NumMachines MetricKey = "machines"
	// NumUnits is the number of units in the model.
	NumUnits MetricKey = "units"

	// Relations is a common separated list of charms currently related
	// to an application.  (no spaces)
	Relations MetricKey = "relations"
)

func (MetricKey) String

func (c MetricKey) String() string

Jump to

Keyboard shortcuts

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