{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-warm-up-response-schema.json",
  "title": "WarmUpResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-autostopping-rules-api-openapi.yml#/components/schemas/WarmUpResponse",
  "type": "object",
  "properties": {
    "ts": {
      "type": "integer",
      "format": "int64",
      "description": "Response timestamp in milliseconds"
    },
    "success": {
      "type": "boolean",
      "description": "Indicates if the operation was successful"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of error messages, if any"
    },
    "response": {
      "$ref": "#/$defs/ServiceStatus"
    }
  },
  "$defs": {
    "ServiceStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "Current state of the service (e.g., warming_up, active, stopped)"
        },
        "target_url": {
          "type": "string",
          "description": "Target URL for accessing the service"
        },
        "error": {
          "type": "string",
          "description": "Error message if the operation failed"
        },
        "id": {
          "type": "string",
          "description": "Unique identifier for cache invalidation"
        }
      }
    }
  }
}