{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-synthetic-call-with-defaults-config-schema.json",
  "title": "SyntheticCallWithDefaultsConfig",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-synthetic-calls-api-openapi.yml#/components/schemas/SyntheticCallWithDefaultsConfig",
  "type": "object",
  "properties": {
    "customRules": {
      "type": "array",
      "description": "The list of custom rules for synthetic endpoints defined by the user.",
      "items": {
        "$ref": "#/$defs/SyntheticCallRule"
      },
      "maxItems": 500,
      "minItems": 0
    },
    "defaultRules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyntheticCallRule"
      }
    },
    "defaultRulesEnabled": {
      "type": "boolean",
      "description": "A flag to enable/disable the default synthetic endpoint configurations defined by Instana."
    }
  },
  "required": [
    "customRules",
    "defaultRules"
  ],
  "$defs": {
    "MatchExpressionDTO": {
      "type": "object",
      "description": " Specify the expression to match, For example, `endpoint.name contains health`.",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "SyntheticCallRule": {
      "type": "object",
      "description": "The list of custom rules for synthetic endpoints defined by the user.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of the custom rule. For example, one can mention the reason behind having the custom rule.",
          "maxLength": 2048,
          "minLength": 0
        },
        "enabled": {
          "type": "boolean",
          "description": "A flag to enable/disable the custom synthetic endpoint configurations defined by the user."
        },
        "matchSpecification": {
          "$ref": "#/$defs/MatchExpressionDTO"
        },
        "name": {
          "type": "string",
          "description": "The name of the custom rule for Synthetic endpoints.",
          "maxLength": 128,
          "minLength": 1
        }
      },
      "required": [
        "matchSpecification",
        "name"
      ]
    }
  }
}