GET /api/v1/metrics/catalog
Authenticate with Authorization: Bearer YOUR_API_KEY and X-Project-Id: YOUR_PROJECT_ID. Replace path placeholders and example values with your project's values.
Parameters
| Name | Location | Type | Presence | Description |
|---|---|---|---|---|
X-Project-Id | header | string (uuid) | Required | Project UUID. Use the project associated with your API key. |
service | query | string | Optional | |
search | query | string | Optional | |
limit | query | integer | Optional | |
offset | query | integer | Optional | |
active | query | boolean | Optional |
Examples
curl --request GET 'https://api.monoscope.tech/api/v1/metrics/catalog' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'X-Project-Id: YOUR_PROJECT_ID'import requests
response = requests.get(
"https://api.monoscope.tech/api/v1/metrics/catalog",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"X-Project-Id": "YOUR_PROJECT_ID"
},
timeout=30,
)
response.raise_for_status()
print(response.text)const response = await fetch("https://api.monoscope.tech/api/v1/metrics/catalog", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"X-Project-Id": "YOUR_PROJECT_ID"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());Responses
HTTP 200
Response defined by the API schema.
| Field | Type | Presence | Description |
|---|---|---|---|
active | boolean | Required | |
activeSince | string (yyyy-mm-ddThh:MM:ssZ) | Required | |
hasMore | boolean | Required | |
metrics | object[] | Required | |
search | string | Optional | |
service | string | Optional | |
total | integer | Required |
JSON schema
{
"properties": {
"active": {
"type": "boolean"
},
"activeSince": {
"$ref": "#/components/schemas/UTCTime"
},
"hasMore": {
"type": "boolean"
},
"metrics": {
"items": {
"$ref": "#/components/schemas/MetricChartListData"
},
"type": "array"
},
"search": {
"type": "string"
},
"service": {
"type": "string"
},
"total": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
}
},
"required": [
"metrics",
"total",
"active",
"hasMore",
"activeSince"
],
"type": "object"
}HTTP 400
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}HTTP 401
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}