{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-src-app-endpoints-metric-update-metric-request-schema.json",
  "title": "Request",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-metric-api-openapi.yml#/components/schemas/src__app__endpoints__metric__update_metric__Request",
  "properties": {
    "applied_to_services": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "pattern": "^[a-f0-9]{24}$"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Applied To Services",
      "description": "The services that the metric is applied to. Only updated if set."
    },
    "additional_notes": {
      "anyOf": [
        {
          "$ref": "#/$defs/amigo_lib__pydantic__base_model__StrippedNonemptyString__1"
        },
        {
          "$ref": "#/$defs/_NotSet"
        },
        {
          "type": "null"
        }
      ],
      "title": "Additional Notes",
      "description": "Additional notes about the metric. Only updated if set.",
      "default": {}
    },
    "tags": {
      "anyOf": [
        {
          "additionalProperties": {
            "anyOf": [
              {
                "$ref": "#/$defs/StrippedNonemptyString___w__s_____"
              },
              {
                "type": "null"
              }
            ]
          },
          "propertyNames": {
            "$ref": "#/$defs/StrippedNonemptyString___w__s_____"
          },
          "type": "object",
          "maxProperties": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags",
      "description": "The tags of the metric. Only updated if set."
    }
  },
  "type": "object",
  "$defs": {
    "StrippedNonemptyString___w__s_____": {
      "type": "string",
      "minLength": 1,
      "pattern": "^[\\w\\s]+$"
    },
    "_NotSet": {
      "properties": {},
      "type": "object",
      "title": "_NotSet",
      "description": "A specific type to indicate that a field is not set in the request."
    },
    "amigo_lib__pydantic__base_model__StrippedNonemptyString__1": {
      "type": "string",
      "minLength": 1
    }
  }
}