Skip to main content
GET
/
v1
/
metrics
/
{metric_id}
/
threshold
Get metric threshold
curl --request GET \
  --url https://api.coval.dev/v1/metrics/{metric_id}/threshold \
  --header 'X-API-Key: <api-key>'
{
  "threshold": {
    "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"
  }
}

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}$

Response

Threshold retrieved successfully

threshold
object
required

Org-specific threshold for a metric