HoneyHive AI · Schema

UpdateMetricRequest

Request body for PUT /metrics/{metric_id}

CompanyArtificial IntelligenceObservabilityAgentsPlatform

Properties

Name Type Description
name string
type string
criteria string
description stringnull
return_type string
enabled_in_prod boolean
sampling_percentage number
model_provider stringnull
model_name stringnull
scale integernull
threshold object
categories array
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
View JSON Schema on GitHub

JSON Schema

honeyhive-ai-update-metric-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-update-metric-request-schema.json",
  "title": "UpdateMetricRequest",
  "description": "Request body for PUT /metrics/{metric_id}",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/honeyhive-ai-openapi.json#/components/schemas/UpdateMetricRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200
    },
    "type": {
      "type": "string",
      "enum": [
        "PYTHON",
        "LLM",
        "HUMAN",
        "COMPOSITE"
      ]
    },
    "criteria": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "return_type": {
      "type": "string",
      "enum": [
        "float",
        "boolean",
        "string",
        "categorical"
      ]
    },
    "enabled_in_prod": {
      "type": "boolean"
    },
    "sampling_percentage": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "model_provider": {
      "type": [
        "string",
        "null"
      ]
    },
    "model_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "scale": {
      "type": [
        "integer",
        "null"
      ],
      "exclusiveMinimum": 0
    },
    "threshold": {
      "$ref": "#/$defs/UpdateMetricRequestThreshold"
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UpdateMetricRequestCategoriesItem"
      },
      "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/UpdateMetricRequestChildMetricsItem"
      },
      "minItems": 1,
      "description": "Deprecated and ignored. Composite metrics are no longer supported.",
      "deprecated": true
    },
    "filters": {
      "$ref": "#/$defs/UpdateMetricRequestFilters"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "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"
      ]
    },
    "UpdateMetricRequestCategoriesItem": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string",
          "maxLength": 200
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "category",
        "score"
      ],
      "additionalProperties": false
    },
    "UpdateMetricRequestChildMetricsItem": {
      "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
    },
    "UpdateMetricRequestFilters": {
      "type": "object",
      "properties": {
        "filterArray": {
          "$ref": "#/$defs/FiltersArray"
        }
      },
      "required": [
        "filterArray"
      ],
      "additionalProperties": false
    },
    "UpdateMetricRequestThreshold": {
      "type": "object",
      "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
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/honeyhive-ai-update-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.