{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-computed-usage-schema.json",
  "title": "ComputedUsage",
  "description": "Computed usage summary object.\n",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-computedusage-api-openapi.yml#/components/schemas/ComputedUsage",
  "properties": {
    "commitmentServiceId": {
      "description": "Subscribed service commitment ID.\n",
      "type": "string"
    },
    "computeSource": {
      "description": "SPM (Subscription Plan Management) internal compute records source.\n",
      "type": "string"
    },
    "cost": {
      "description": "Computed unrounded line Amount.\n",
      "type": "string"
    },
    "costRounded": {
      "description": "Computed rounded line amount.\n",
      "type": "string"
    },
    "currencyCode": {
      "description": "Currency code.\n",
      "type": "string"
    },
    "dataCenter": {
      "description": "Data center attribute as sent by the meterering system to SPM.\n",
      "type": "string"
    },
    "id": {
      "description": "SPM internal computed usage ID, which is a 32-character string.\n",
      "type": "string"
    },
    "isInvoiced": {
      "description": "Invoicing status for the aggregated compute usage.\n",
      "type": "boolean"
    },
    "mqsMessageId": {
      "description": "The meterering system identfier sent to SPM. SPM does not transform this attribute and is received as-is.\n",
      "type": "string"
    },
    "netUnitPrice": {
      "description": "Net unit price for the product in consideration, price actual.\n",
      "type": "string"
    },
    "originalUsageNumber": {
      "description": "SPM internal original usage line number identifier in SPM, originating from the metered services entity.\n",
      "type": "string"
    },
    "parentProduct": {
      "$ref": "#/$defs/ComputedUsageProduct"
    },
    "parentSubscribedServiceId": {
      "description": "Subscribed service line parent ID.\n",
      "type": "string"
    },
    "planNumber": {
      "description": "Subscription plan number.\n",
      "type": "string"
    },
    "product": {
      "$ref": "#/$defs/ComputedUsageProduct"
    },
    "quantity": {
      "description": "Total quantity that was used for computation.\n",
      "format": "float",
      "type": "string"
    },
    "rateCardId": {
      "description": "Ratecard ID at subscribed service level.\n",
      "type": "string"
    },
    "rateCardTierdId": {
      "description": "References the tier in the rate card for the associated usage (OCI uses the same reference to cross-reference for correctness in CSV Usage Reports), obtained from the OBSCNTR_IPT_PRODUCTTIER entity.\n",
      "type": "string"
    },
    "timeCreated": {
      "description": "Computed usage created time, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeMeteredOn": {
      "description": "Metered service date, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeOfArrival": {
      "description": "Usage computation date, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "Computed usage updated time, expressed in RFC 3339 timestamp format.\n",
      "format": "date-time",
      "type": "string"
    },
    "type": {
      "description": "Usage compute type in SPM.\n",
      "enum": [
        "PROMOTION",
        "DO_NOT_BILL",
        "USAGE",
        "COMMIT",
        "OVERAGE",
        "PAY_AS_YOU_GO",
        "MONTHLY_MINIMUM",
        "DELAYED_USAGE_INVOICE_TIMING",
        "DELAYED_USAGE_COMMITMENT_EXP",
        "ON_ACCOUNT_CREDIT",
        "SERVICE_CREDIT",
        "COMMITMENT_EXPIRATION",
        "FUNDED_ALLOCATION",
        "DONOT_BILL_USAGE_POST_TERMINATION",
        "DELAYED_USAGE_POST_TERMINATION"
      ],
      "type": "string"
    },
    "unitOfMeasure": {
      "description": "Unit of measure.\n",
      "type": "string"
    },
    "usageNumber": {
      "description": "SPM internal usage line number identifier in SPM, originating from the metered services entity.\n",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object",
  "$defs": {
    "ComputedUsageProduct": {
      "description": "Product description.\n",
      "properties": {
        "billingCategory": {
          "description": "Metered service billing category.\n",
          "type": "string"
        },
        "name": {
          "description": "Product name.\n",
          "type": "string"
        },
        "partNumber": {
          "description": "Product part number.\n",
          "type": "string"
        },
        "productCategory": {
          "description": "Product category.\n",
          "type": "string"
        },
        "provisioningGroup": {
          "description": "Product provisioning group.\n",
          "type": "string"
        },
        "ucmRateCardPartType": {
          "description": "Rate card part type of product.\n",
          "type": "string"
        },
        "unitOfMeasure": {
          "description": "Unit of measure.\n",
          "type": "string"
        }
      },
      "required": [
        "partNumber",
        "name"
      ],
      "type": "object"
    }
  }
}