{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flareapp-io/json-schema/flareapp-io-monitoring-metrics-schema.json",
  "title": "monitoringMetrics",
  "description": "Aggregated performance metrics. All duration values are in milliseconds. Performance monitoring data is retained for 30 days in ClickHouse. Queries for older data will return empty results.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/flareapp-io-api-openapi.yml#/components/schemas/monitoringMetrics",
  "type": [
    "object"
  ],
  "properties": {
    "p50_ms": {
      "type": [
        "number"
      ],
      "description": "50th percentile duration in milliseconds."
    },
    "p90_ms": {
      "type": [
        "number"
      ],
      "description": "90th percentile duration in milliseconds."
    },
    "p95_ms": {
      "type": [
        "number"
      ],
      "description": "95th percentile duration in milliseconds."
    },
    "p99_ms": {
      "type": [
        "number"
      ],
      "description": "99th percentile duration in milliseconds."
    },
    "average_ms": {
      "type": [
        "number"
      ],
      "description": "Average duration in milliseconds."
    },
    "count": {
      "type": [
        "integer"
      ],
      "description": "Total number of occurrences."
    },
    "error_rate": {
      "type": [
        "number"
      ],
      "description": "Error rate as a decimal (0.0 to 1.0)."
    },
    "importance": {
      "type": [
        "null",
        "number"
      ],
      "description": "Computed importance score (available in list endpoints)."
    }
  }
}