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

Authorization
string
header
required

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

Body

application/json

Response

200

Metric created successfully