OpenCost · Schema

OpenCost Asset

Cloud Cost ManagementCNCFFinOpsKubernetesObservability

Properties

Name Type Description
type string
totalCost number
cpuCost number
ramCost number
providerID string
window object
View JSON Schema on GitHub

JSON Schema

opencost-asset-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/opencost/json-schema/opencost-asset-schema.json",
  "title": "OpenCost Asset",
  "type": "object",
  "properties": {
    "type": {"type": "string"},
    "totalCost": {"type": "number"},
    "cpuCost": {"type": "number"},
    "ramCost": {"type": "number"},
    "providerID": {"type": "string"},
    "window": {
      "type": "object",
      "properties": {
        "start": {"type": "string", "format": "date-time"},
        "end": {"type": "string", "format": "date-time"}
      }
    }
  },
  "required": ["type", "totalCost"]
}