Metric conditions

List metric conditions

Returns the team's metric conditions, oldest first.

get/metric-conditions

Request

  • Base URL
    https://api.spectate.net/v1
  • Auth
    HTTP bearer

Query parameters

filter[host_id]string uuid

Only conditions attached to this host directly (not through its project).

filter[project_id]string uuid

Only conditions attached to this project.

pageinteger

Page number, from 1.

per_pageinteger

Conditions per page, 1 to 100.

Response

Paginated set of MetricCondition

current_pageinteger required
first_page_urlstring nullable required
frominteger nullable required
last_page_urlstring nullable required
last_pageinteger required
next_page_urlstring nullable required
pathstring nullable required

Base path for paginator generated URLs.

per_pageinteger required

Number of items shown per page.

prev_page_urlstring nullable required
tointeger nullable required

Number of the last item in the slice.

totalinteger required

Total number of items being paginated.

Example response

{
  "data": [
    {
      "threshold": 90,
      "duration_minutes": 5,
      "hosts": [
        {
          "label": "web-1"
        }
      ],
      "projects": [
        {
          "name": "Production"
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.