{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-experience-cloud/refs/heads/main/json-structure/analytics-api-calculated-metric-structure.json",
  "name": "CalculatedMetric",
  "description": "CalculatedMetric schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "rsid": {
      "type": "string"
    },
    "owner": {
      "type": "object",
      "properties": {
        "id": {
          "type": "int32"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "polarity": {
      "type": "string",
      "enum": [
        "positive",
        "negative"
      ]
    },
    "definition": {
      "type": "object"
    }
  }
}