fbpx
GEThttps://api.spotinst.io/spectrum/metrics/metricMetadata?namespace={NAMESPACE}&dimension={DIMENSION}&metric={METRIC}&accountId={ACCOUNT_ID}

Get metric metadata by filters.

URL Parameters

Parameter Type Description
NAMESPACE * String

The name of the namespace.

Example: myNamespace
DIMENSION * String

The name of the dimension

Example: myDimension
METRIC * String

The name of the metric.

Example: myMetric
ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${TOKEN}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
	"request": {
		"id": "6a8b8af3-ee67-4351-8ba4-428dc12e6136",
		"url": "/spectrum/metrics/metricMetadata",
		"method": "GET",
		"timestamp": "1970-01-01T00:00:00.000+0000"
	},
	"response": {
		"status": {
			"code": 200,
			"message": "OK"
		},
		"kind": "spotinst:spectrum:metricMetadata",
		"items": [{
			"namespace": "myNamespace",
			"dimension": "myDimension",
			"metric": "MyMetric",
			"updatedAt": "1970-01-01T00:00:00.000+0000",
			"createdAt": "1970-01-01T00:00:00.000+0000"
		}]
	}
}