Events
Datapoints
Datasets
Projects
Experiments
Metrics
Create a new metric
Metrics
Create a new metric
Add a new metric
POST
/
metrics
import honeyhive
from honeyhive.models import components
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.metrics.create_metric(request=components.Metric(
name='<value>',
task='<value>',
type=components.MetricType.MODEL,
description='Fully-configurable neutral framework',
return_type=components.ReturnType.STRING,
))
if res is not None:
# handle response
pass
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
Metric created successfully
Was this page helpful?
import honeyhive
from honeyhive.models import components
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.metrics.create_metric(request=components.Metric(
name='<value>',
task='<value>',
type=components.MetricType.MODEL,
description='Fully-configurable neutral framework',
return_type=components.ReturnType.STRING,
))
if res is not None:
# handle response
pass