{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-metrics-collection-config-schema.json",
  "title": "MetricsCollectionConfig",
  "description": "Configuration for application telemetry and metrics collection.\nMetrics are collected anonymously and pushed to a remote server for analytics.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-metrics-collection-api-openapi.yml#/components/schemas/MetricsCollectionConfig",
  "type": "object",
  "properties": {
    "enableMetricCollection": {
      "type": "string",
      "description": "Master switch for metrics collection. When disabled, no metrics are collected or pushed.\nDefault: \"true\"\n"
    },
    "pushIntervalMs": {
      "type": "string",
      "description": "Interval in milliseconds between metrics pushes to the remote server.\nMinimum: 1000ms (1 second), Default: 60000ms (1 minute)\n"
    },
    "serverUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL of the metrics collection server. For self-hosted analytics, point this\nto your own Prometheus-compatible endpoint.\n"
    },
    "apiKey": {
      "type": "string",
      "description": "API key for authenticating with the metrics server. Auto-generated if not provided.\n"
    },
    "appVersion": {
      "type": "string",
      "description": "Current application version for metrics tagging."
    }
  }
}