Skip to main content
GET
/
metrics
List Metrics
curl --request GET \
  --url http://localhost/api/metrics
{
  "data": [
    {
      "id": "<string>",
      "attributes": {
        "id": 123,
        "name": "<string>",
        "suffix": "<string>",
        "description": "<string>",
        "default_value": "<string>",
        "display_chart": true,
        "places": 123,
        "threshold": 123,
        "order": 123,
        "created": {
          "human": "<string>",
          "string": "<string>"
        },
        "updated": {
          "human": "<string>",
          "string": "<string>"
        }
      },
      "relationships": {
        "points": {
          "data": [
            {
              "id": "<string>"
            }
          ]
        }
      }
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 123,
    "from": 123,
    "path": "<string>",
    "per_page": 123,
    "to": 123
  },
  "included": [
    {
      "id": "<string>",
      "attributes": {
        "id": 123,
        "metric_id": 123,
        "calculated_value": "<string>",
        "value": 123,
        "counter": 123,
        "created": {
          "human": "<string>",
          "string": "<string>"
        },
        "updated": {
          "human": "<string>",
          "string": "<string>"
        }
      },
      "relationships": {
        "metric": {
          "data": {
            "id": "<string>"
          }
        }
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cachethq.io/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

sort
string

Available sorts are name, order, id. You can sort by multiple options by separating them with a comma. To sort in descending order, use - sign in front of the sort, for example: -name.

include
string

Available includes are points, pointsCount, pointsExists. You can include multiple options by separating them with a comma.

per_page
integer
default:15

How many items to show per page.

page
integer

Which page to show.

filter[name]
string

Filter by name.

filter[calc_type]
enum<integer>

Filter by calculation type.

Available options:
0,
1

Response

200 - application/vnd.api+json

Paginated set of Metric

data
Metric · object[]
required
meta
object
required
included
MetricPoint · object[]