GET
/
metrics
import honeyhive

s = honeyhive.HoneyHive(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.metrics.get_metrics(project_name='<value>')

if res.metrics is not None:
    # handle response
    pass
[
  {
    "name": "<string>",
    "criteria": "<string>",
    "code_snippet": "<string>",
    "prompt": "<string>",
    "task": "<string>",
    "type": "custom",
    "description": "<string>",
    "enabled_in_prod": true,
    "needs_ground_truth": true,
    "return_type": "boolean",
    "threshold": {
      "min": 123,
      "max": 123
    },
    "pass_when": true,
    "_id": "<string>",
    "event_name": "<string>",
    "event_type": "<string>"
  }
]

Authorizations

Authorization
string
header
required

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

Query Parameters

project_name
string
required

Project name associated with metrics

Response

200 - application/json
A list of metrics

The response is of type object[].