{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-diagnostic-contract-schema.json",
  "title": "DiagnosticContract",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-apidiagnostic-api-openapi.yml#/components/schemas/DiagnosticContract",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "properties": {
      "type": "object",
      "properties": {
        "loggerId": {
          "type": "string"
        },
        "alwaysLog": {
          "type": "string"
        },
        "sampling": {
          "type": "object",
          "properties": {
            "samplingType": {
              "type": "string"
            },
            "percentage": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}