Retrieve a list of all metrics
Python
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>" } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Project name associated with metrics
A list of metrics
The response is of type object[].
object[]
Was this page helpful?