Events
Datapoints
Datasets
Projects
Experiments
Metrics
Get all metrics
Retrieve a list of all metrics
GET
/
metrics
Copy
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
Copy
[
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Project name associated with metrics
Response
200 - application/json
A list of metrics
The response is of type object[]
.
Was this page helpful?
Copy
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
Copy
[
{
"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>"
}
]
Assistant
Responses are generated using AI and may contain mistakes.