LaunchDarkly · Schema

MetricBody

The request body for creating a new metric.

Feature FlagsFeature ManagementExperimentationObservabilityContinuous DeliveryDevOpsAI AgentsRelease ManagementDeveloper ToolsT1

Properties

Name Type Description
name string The human-readable name of the metric.
key string The metric key.
kind string The type of metric.
description string A description of the metric.
tags array Tags to apply to the metric.
selector string The CSS selector for click metrics.
urls array URL patterns for pageview and click metrics.
View JSON Schema on GitHub

JSON Schema

launchdarkly-metricbody-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricBody",
  "title": "MetricBody",
  "type": "object",
  "description": "The request body for creating a new metric.",
  "required": [
    "name",
    "key",
    "kind"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The human-readable name of the metric."
    },
    "key": {
      "type": "string",
      "description": "The metric key."
    },
    "kind": {
      "type": "string",
      "description": "The type of metric.",
      "enum": [
        "pageview",
        "click",
        "custom"
      ]
    },
    "description": {
      "type": "string",
      "description": "A description of the metric."
    },
    "tags": {
      "type": "array",
      "description": "Tags to apply to the metric.",
      "items": {
        "type": "string"
      }
    },
    "selector": {
      "type": "string",
      "description": "The CSS selector for click metrics."
    },
    "urls": {
      "type": "array",
      "description": "URL patterns for pageview and click metrics.",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "The type of URL pattern.",
            "enum": [
              "exact",
              "canonical",
              "substring",
              "regex"
            ]
          },
          "url": {
            "type": "string",
            "description": "The URL pattern value."
          }
        }
      }
    }
  }
}

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/launchdarkly-metricbody"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.