Skip to main content
GET
/
v1
/
metrics
/
{metric_id}
/
versions
List versions for a metric
curl --request GET \
  --url https://api.honeyhive.ai/v1/metrics/{metric_id}/versions \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "name": "<string>",
      "full_sha": "<string>",
      "message": "<string>",
      "date": "2023-11-07T05:31:56Z",
      "deployed": true,
      "content": {
        "name": "<string>",
        "criteria": "<string>",
        "description": "<string>",
        "enabled_in_prod": true,
        "needs_ground_truth": true,
        "sampling_percentage": 50,
        "filters": {
          "filterArray": [
            {
              "field": "<string>",
              "value": "<string>"
            }
          ]
        },
        "model_provider": "<string>",
        "model_name": "<string>",
        "scale": 123,
        "threshold": {
          "min": 123,
          "max": 123,
          "pass_when": true,
          "passing_categories": [
            "<string>"
          ]
        },
        "categories": [
          {
            "category": "<string>",
            "score": 123
          }
        ],
        "child_metrics": [
          {
            "name": "<string>",
            "weight": 123,
            "id": "<string>",
            "scale": 123
          }
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metric_id
string
required

The unique identifier of the metric whose versions are being listed

Response

Metric versions retrieved successfully

Response for GET /v1/metrics/{metric_id}/versions

success
enum<boolean>
required
Available options:
true
data
object[]
required