{
  "$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-collection-schema.json",
  "title": "DiagnosticCollection",
  "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/DiagnosticCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DiagnosticContract"
      }
    },
    "count": {
      "type": "integer"
    },
    "nextLink": {
      "type": "string"
    }
  },
  "$defs": {
    "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"
                }
              }
            }
          }
        }
      }
    }
  }
}