Skip to main content
GET
/
v1
/
metrics
/
{metric_id}
/
thresholds
List metric thresholds
curl --request GET \
  --url https://api.coval.dev/v1/metrics/{metric_id}/thresholds \
  --header 'X-API-Key: <api-key>'
{
  "thresholds": [
    {
      "name": "metrics/abc123def456ghi789jklm/threshold",
      "comparison_operator": "eq",
      "target_float_upper": 0.8,
      "target_float_lower": 123,
      "target_values": [
        "<string>"
      ],
      "source": "manual",
      "create_time": "2023-11-07T05:31:56Z",
      "update_time": "2023-11-07T05:31:56Z"
    }
  ],
  "next_page_token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.coval.dev/llms.txt

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

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

metric_id
string
required

22-character metric ID

Pattern: ^[a-zA-Z0-9]{22}$

Query Parameters

page_size
integer
default:50

Maximum results per page

Required range: 1 <= x <= 100
page_token
string

Pagination token from previous response

Response

Thresholds retrieved successfully

thresholds
object[]
required
next_page_token
string | null