{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kognitos/json-schema/kognitos-dashboards-query-automation-estimates-response-schema.json",
  "title": "dashboardsQueryAutomationEstimatesResponse",
  "description": "Response message for QueryAutomationEstimates method.\nContains automation estimates grouped by workspace.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kognitos-analytics-api-openapi.yml#/components/schemas/dashboardsQueryAutomationEstimatesResponse",
  "type": "object",
  "properties": {
    "workspace_estimates": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/dashboardsAutomationEstimateList"
      },
      "title": "Automation estimates grouped per workspace.\nKey: workspace_id (format: organizations/{org}/workspaces/{workspace})",
      "readOnly": true
    }
  },
  "$defs": {
    "dashboardsAutomationEstimate": {
      "type": "object",
      "properties": {
        "automation_id": {
          "type": "string",
          "title": "The automation ID this estimate applies to.\nFormat: organizations/{organization}/workspaces/{workspace}/automations/{automation}"
        },
        "cost_usd": {
          "type": "string",
          "description": "The estimated cost saved per run in USD."
        },
        "time_saved_secs": {
          "type": "integer",
          "format": "int32",
          "description": "The estimated time saved per run in seconds."
        }
      },
      "description": "AutomationEstimate represents the estimated value metrics for an automation.",
      "required": [
        "automation_id",
        "cost_usd",
        "time_saved_secs"
      ]
    },
    "dashboardsAutomationEstimateList": {
      "type": "object",
      "properties": {
        "estimates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/dashboardsAutomationEstimate"
          },
          "description": "List of automation estimates for a workspace.",
          "readOnly": true
        }
      },
      "description": "Wrapper for a list of automation estimates."
    }
  }
}