{
  "openapi": "3.0.1",
  "info": {
    "title": "Multi-Cloud Pricing Cost Impact Report",
    "description": "Compare official AWS public price-list and Azure Retail Prices data for explicitly normalized workload scenarios. Get source-linked cross-provider cost reports, price-change alerts, and exports without cloud credentials.",
    "version": "0.1",
    "x-build-id": "mBOeiO5HQ0iYPzIBa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~multi-cloud-pricing-cost-impact-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-multi-cloud-pricing-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/taroyamada~multi-cloud-pricing-cost-impact-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-multi-cloud-pricing-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/taroyamada~multi-cloud-pricing-cost-impact-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-multi-cloud-pricing-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "scenarios"
        ],
        "properties": {
          "scenarios": {
            "title": "Comparable workload scenarios",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Each scenario must define one AWS selector, one Azure selector, the provider quantities, a shared normalized unit/quantity, and explicit comparison assumptions.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "workloadLabel",
                "comparisonAssumptions",
                "normalizedUsage",
                "aws",
                "azure"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "title": "Scenario ID",
                  "description": "Stable identifier for this recurring comparison scenario.",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{1,79}$"
                },
                "workloadLabel": {
                  "type": "string",
                  "title": "Comparable workload label",
                  "description": "Human-readable workload name, for example API compute baseline."
                },
                "comparisonAssumptions": {
                  "type": "string",
                  "title": "Comparison assumptions",
                  "description": "Required explanation of what is held constant and what is excluded from the comparison."
                },
                "normalizedUsage": {
                  "type": "object",
                  "title": "Normalized workload usage",
                  "description": "Shared unit and quantity used to make the provider estimates comparable.",
                  "additionalProperties": false,
                  "required": [
                    "unit",
                    "quantity"
                  ],
                  "properties": {
                    "unit": {
                      "type": "string",
                      "title": "Normalized unit",
                      "description": "Shared comparison unit, such as storage-gb-month."
                    },
                    "quantity": {
                      "type": "number",
                      "title": "Normalized quantity",
                      "description": "Positive amount of the shared comparison unit.",
                      "minimum": 1e-9
                    }
                  }
                },
                "aws": {
                  "type": "object",
                  "title": "AWS public price selector",
                  "description": "Exact AWS Price List selector and provider-unit mapping.",
                  "additionalProperties": false,
                  "required": [
                    "serviceCode",
                    "region",
                    "selectors",
                    "usage"
                  ],
                  "properties": {
                    "serviceCode": {
                      "type": "string",
                      "title": "AWS service code",
                      "description": "Supported official AWS Price List service code.",
                      "enum": [
                        "AWSLambda",
                        "AmazonS3",
                        "AmazonRDS",
                        "AmazonEC2"
                      ]
                    },
                    "region": {
                      "type": "string",
                      "title": "AWS region",
                      "description": "AWS region code used to select the official regional offer.",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)+-[0-9]+$"
                    },
                    "selectors": {
                      "type": "object",
                      "title": "AWS exact selectors",
                      "additionalProperties": true,
                      "description": "Exact AWS product/term selectors. At least one narrowing selector is required."
                    },
                    "usage": {
                      "type": "object",
                      "title": "AWS usage mapping",
                      "description": "AWS billed unit, quantity, and mapping to the normalized workload.",
                      "additionalProperties": false,
                      "required": [
                        "quantity",
                        "unit",
                        "mappingNote"
                      ],
                      "properties": {
                        "quantity": {
                          "type": "number",
                          "title": "AWS quantity",
                          "description": "Positive AWS billed-unit quantity.",
                          "minimum": 1e-9
                        },
                        "unit": {
                          "type": "string",
                          "title": "AWS unit",
                          "description": "Exact unit expected from the selected AWS price dimension."
                        },
                        "mappingNote": {
                          "type": "string",
                          "title": "AWS mapping note",
                          "description": "How this provider unit maps to normalizedUsage."
                        }
                      }
                    }
                  }
                },
                "azure": {
                  "type": "object",
                  "title": "Azure public price selector",
                  "description": "Exact Azure Retail Prices selector and provider-unit mapping.",
                  "additionalProperties": false,
                  "required": [
                    "serviceName",
                    "armRegionName",
                    "selectors",
                    "usage"
                  ],
                  "properties": {
                    "serviceName": {
                      "type": "string",
                      "title": "Azure service name",
                      "description": "Exact public Azure Retail Prices serviceName."
                    },
                    "armRegionName": {
                      "type": "string",
                      "title": "Azure ARM region",
                      "description": "Exact public Azure armRegionName."
                    },
                    "selectors": {
                      "type": "object",
                      "title": "Azure exact selectors",
                      "additionalProperties": true,
                      "description": "Exact Azure Retail Prices selectors such as armSkuName, meterId, meterName, or productName."
                    },
                    "usage": {
                      "type": "object",
                      "title": "Azure usage mapping",
                      "description": "Azure billed unit, quantity, and mapping to the normalized workload.",
                      "additionalProperties": false,
                      "required": [
                        "quantity",
                        "unit",
                        "mappingNote"
                      ],
                      "properties": {
                        "quantity": {
                          "type": "number",
                          "title": "Azure quantity",
                          "description": "Positive Azure billed-unit quantity.",
                          "minimum": 1e-9
                        },
                        "unit": {
                          "type": "string",
                          "title": "Azure unit",
                          "description": "Exact unit expected from the selected Azure meter."
                        },
                        "mappingNote": {
                          "type": "string",
                          "title": "Azure mapping note",
                          "description": "How this provider unit maps to normalizedUsage."
                        }
                      }
                    }
                  }
                }
              }
            },
            "default": []
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Stable state namespace for the same scenario portfolio.",
            "default": "multi-cloud-finops-watch"
          },
          "initialRunMode": {
            "title": "Initial run mode",
            "enum": [
              "baseline_only",
              "emit_current"
            ],
            "type": "string",
            "description": "Store a free baseline or emit the current comparison.",
            "default": "baseline_only"
          },
          "generateReport": {
            "title": "Generate comparison report",
            "type": "boolean",
            "description": "Generate one source-linked comparison report when current or changed prices are emitted.",
            "default": true
          },
          "emitRawRows": {
            "title": "Emit provider price rows",
            "type": "boolean",
            "description": "Optional low-cost provider rows. Reports and alerts remain the primary output.",
            "default": false
          },
          "emitExport": {
            "title": "Generate pricing export",
            "type": "boolean",
            "description": "Generate a compact JSON export with the comparison.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Emit unchanged rows",
            "type": "boolean",
            "description": "Accepted for compatibility; unchanged runs always emit zero rows and zero charges.",
            "default": false
          },
          "maxPagesPerScope": {
            "title": "Maximum Azure pages per scenario",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum official Azure continuation pages fetched per scenario.",
            "default": 2
          },
          "maxItemsPerProvider": {
            "title": "Maximum matched rows per provider",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum exact public price matches retained per provider.",
            "default": 20
          },
          "maxChargeUsd": {
            "title": "Maximum run charge USD",
            "minimum": 0,
            "maximum": 250,
            "type": "number",
            "description": "Fail closed before delivery if planned PAY_PER_EVENT charges exceed this cap.",
            "default": 25
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Return representative rows for all event types without network, state, delivery, or charges.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}