HoneyHive AI · Schema
CreateMetricRequest
Request body for POST /metrics
CompanyArtificial IntelligenceObservabilityAgentsPlatform
Properties
| Name | Type | Description |
|---|---|---|
| name | string | |
| type | string | |
| criteria | string | |
| description | string | |
| return_type | string | |
| enabled_in_prod | boolean | |
| sampling_percentage | number | |
| model_provider | stringnull | |
| model_name | stringnull | |
| scale | integernull | |
| threshold | objectnull | |
| categories | arraynull | |
| needs_ground_truth | boolean | Deprecated and ignored. Ground-truth use is inferred from the evaluator definition. |
| child_metrics | arraynull | Deprecated and ignored. Composite metrics are no longer supported. |
| filters | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-create-metric-request-schema.json",
"title": "CreateMetricRequest",
"description": "Request body for POST /metrics",
"x-generated": "2026-12-03",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/honeyhive-ai-openapi.json#/components/schemas/CreateMetricRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"type": {
"type": "string",
"enum": [
"PYTHON",
"LLM",
"HUMAN",
"COMPOSITE"
]
},
"criteria": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"default": ""
},
"return_type": {
"type": "string",
"enum": [
"float",
"boolean",
"string",
"categorical"
],
"default": "float"
},
"enabled_in_prod": {
"type": "boolean",
"default": false
},
"sampling_percentage": {
"type": "number",
"minimum": 0,
"maximum": 100,
"default": 10
},
"model_provider": {
"type": [
"string",
"null"
]
},
"model_name": {
"type": [
"string",
"null"
]
},
"scale": {
"type": [
"integer",
"null"
],
"exclusiveMinimum": 0
},
"threshold": {
"type": [
"object",
"null"
],
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"pass_when": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "number"
}
]
},
"passing_categories": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"minItems": 1
}
},
"additionalProperties": false
},
"categories": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/CreateMetricRequestCategoriesItem"
},
"minItems": 1
},
"needs_ground_truth": {
"type": "boolean",
"description": "Deprecated and ignored. Ground-truth use is inferred from the evaluator definition.",
"deprecated": true
},
"child_metrics": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/CreateMetricRequestChildMetricsItem"
},
"minItems": 1,
"description": "Deprecated and ignored. Composite metrics are no longer supported.",
"deprecated": true
},
"filters": {
"$ref": "#/$defs/CreateMetricRequestFilters"
}
},
"required": [
"name",
"type",
"criteria"
],
"additionalProperties": false,
"$defs": {
"CreateMetricRequestCategoriesItem": {
"type": "object",
"properties": {
"category": {
"type": "string",
"maxLength": 200
},
"score": {
"type": [
"number",
"null"
]
}
},
"required": [
"category",
"score"
],
"additionalProperties": false
},
"CreateMetricRequestChildMetricsItem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"maxLength": 200
},
"weight": {
"type": "number"
},
"scale": {
"type": [
"integer",
"null"
],
"exclusiveMinimum": 0
}
},
"required": [
"name",
"weight"
],
"additionalProperties": false
},
"CreateMetricRequestFilters": {
"type": "object",
"properties": {
"filterArray": {
"$ref": "#/$defs/FiltersArray"
}
},
"default": {
"filterArray": []
},
"required": [
"filterArray"
],
"additionalProperties": false
},
"FiltersArray": {
"type": "array",
"items": {
"$ref": "#/$defs/SingleFilter"
}
},
"SingleFilter": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"exists",
"not exists",
"is",
"is not",
"contains",
"not contains",
"greater than",
"less than",
"after",
"before"
]
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"type": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"datetime"
]
}
},
"required": [
"field",
"operator",
"value",
"type"
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/honeyhive-ai-create-metric-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.