{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-tag-catalog-schema.json",
  "title": "TagCatalog",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-action-catalog-api-openapi.yml#/components/schemas/TagCatalog",
  "type": "object",
  "properties": {
    "tagTree": {
      "type": "array",
      "description": "The name of the tag dataset (tagTree) which can contain one or more tags as its attributes or children. Eg: `Call`.\nConsider this as the root of the tree where it has tags as attributes or children.\n",
      "items": {
        "$ref": "#/$defs/TagTreeLevel"
      }
    },
    "tags": {
      "type": "array",
      "description": "List of queryable tags available in a tagTree. Eg: `call.erroneous`.\nConsider these tags as attributes of a tagTree. Eg: `Call` tagTree has have `Erroneous`, `Call name`, `Latency` etc as attributes.\n",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "required": [
    "tagTree",
    "tags"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "description": "List of queryable tags available in a tagTree. Eg: `call.erroneous`.\nConsider these tags as attributes of a tagTree. Eg: `Call` tagTree has have `Erroneous`, `Call name`, `Latency` etc as attributes.\n",
      "properties": {
        "aliases": {
          "type": "array",
          "description": "List of other names that can refer to this tag\n",
          "items": {
            "type": "string",
            "description": "List of other names that can refer to this tag\n"
          },
          "uniqueItems": true
        },
        "availability": {
          "type": "array",
          "description": "List of product areas this tag is available in\n",
          "items": {
            "type": "string",
            "description": "List of product areas this tag is available in\n",
            "enum": [
              "INFRASTRUCTURE_METRICS",
              "APPLICATION",
              "WEBSITE",
              "MOBILE_APP",
              "EUM",
              "EUM_IMPACTED_BEACON",
              "EVENT",
              "SLI",
              "SLO",
              "SLO_PREVIEW",
              "USAGE",
              "LOG",
              "SYNTHETICS",
              "SYNTHETICS_DETAIL",
              "APDEX",
              "BIZOPS",
              "BUSINESS_METRICS",
              "SUBTRACE",
              "UNKNOWN"
            ]
          },
          "uniqueItems": true
        },
        "canApplyToDestination": {
          "type": "boolean",
          "description": "Whether the tag is available for destination or not.\nIf source and destination is false, it means the tag is independent of source and destination. Eg: of such tag is `call.http.path`.\n"
        },
        "canApplyToSource": {
          "type": "boolean",
          "description": "Whether the tag is available for source or not.\nIf source and destination is false, it means the tag is independent of source and destination. Eg: of such tag is `call.http.path`.\n"
        },
        "description": {
          "type": "string",
          "description": "The description of the tag if it is provided."
        },
        "idTag": {
          "type": "boolean",
          "description": "Whether the Tag is a unique ID or not.\nEg: `idTag` for `endpoint.id` is true but for `call.rpc.method` it is false.\n"
        },
        "label": {
          "type": "string",
          "description": "The name of the tag which is seen in the UI. Eg: `Call name`",
          "maxLength": 256,
          "minLength": 0
        },
        "name": {
          "type": "string",
          "description": "The name of the tag. Eg: `call.name`"
        },
        "type": {
          "type": "string",
          "description": "The data type of the tag. Eg: `call.name` accepts `STRING` value.",
          "enum": [
            "BOOLEAN",
            "STRING",
            "NUMBER",
            "STRING_SET",
            "STRING_LIST",
            "KEY_VALUE_PAIR",
            "FLOAT_LIST",
            "KEY_NUMBER_PAIR"
          ]
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "TagTreeLevel": {
      "type": "object",
      "description": "The name of the tag dataset (tagTree) which can contain one or more tags as its attributes or children. Eg: `Call`.\nConsider this as the root of the tree where it has tags as attributes or children.\n",
      "properties": {
        "children": {
          "type": "array",
          "description": "Children tags of tagTree",
          "items": {
            "$ref": "#/$defs/TagTreeNode"
          }
        },
        "description": {
          "type": "string",
          "description": "The description provided, if any.",
          "maxLength": 512,
          "minLength": 0
        },
        "icon": {
          "type": "string",
          "description": "Each tag has an Icon which can be seen on the drop down list in Unbounded Analytics.\nIf there is an icon, there will be a string associated with it.\nEg: For for all `TAG` under `Call` tagTreeNode, the `icon` value is `lib_application_call`.\n",
          "maxLength": 128,
          "minLength": 0
        },
        "label": {
          "type": "string",
          "description": "The name of the tagTreeNode. Eg: `Commonly Used`, `Application`.",
          "maxLength": 128,
          "minLength": 0
        },
        "queryable": {
          "type": "boolean"
        },
        "scoreBoost": {
          "type": "integer",
          "format": "int32",
          "description": "By default it is `null` if it is not set explictily by IBM Instana.\nThe purpose of this parameter is to rank the tagTree. For eg: some set of tags are frequently used.\nTags under `Commonly used` is frequently used, so it will come up on top of the drop down list of `Query Builder` in `Unbounded Analytics`.\nHigher the scoreBoost, higher the ranking.\n"
        },
        "type": {
          "type": "string",
          "description": "Type would be either `LEVEL` or `TAG` depending on whether the tag has any child tags or not respectively."
        }
      },
      "required": [
        "children",
        "label"
      ]
    },
    "TagTreeNode": {
      "type": "object",
      "description": "Children tags of tagTree",
      "properties": {
        "icon": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Type would be either `LEVEL` or `TAG` depending on whether the tag has any child tags or not respectively."
        }
      }
    }
  }
}