Add a new metric
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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