{
  "lexicon": 1,
  "id": "tools.ozone.report.refreshStats",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Recompute report statistics for a date range. Useful for backfilling after failures or data corrections.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["startDate", "endDate"],
          "properties": {
            "startDate": {
              "type": "string",
              "description": "Start date for recomputation, inclusive (YYYY-MM-DD)."
            },
            "endDate": {
              "type": "string",
              "description": "End date for recomputation, inclusive (YYYY-MM-DD)."
            },
            "queueIds": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "description": "Optional list of queue IDs to recompute. Omit to recompute all groups."
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {}
        }
      }
    }
  }
}

