{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexatron-io/json-schema/nexatron-io-metric-update-schema.json",
  "title": "MetricUpdate",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexatron-io-openapi.json#/components/schemas/MetricUpdate",
  "properties": {
    "denominator_ref": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Denominator Ref"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "dimensions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dimensions"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "expression": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expression"
    },
    "filters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters"
    },
    "format": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Format"
    },
    "from_table": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Table"
    },
    "grain": {
      "anyOf": [
        {
          "enum": [
            "year",
            "quarter",
            "month",
            "week",
            "day",
            "hour"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grain"
    },
    "is_certified": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Certified"
    },
    "metric_type": {
      "anyOf": [
        {
          "enum": [
            "simple",
            "derived",
            "cumulative",
            "ratio",
            "time_intelligence",
            "window",
            "cohort",
            "composite",
            "funnel",
            "semi_additive",
            "tree_node"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metric Type"
    },
    "numerator_ref": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Numerator Ref"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    },
    "translations": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Translations"
    },
    "type_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Type Config"
    }
  },
  "type": "object"
}