{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-paginated-environment-breakdown-dto-schema.json",
  "title": "PaginatedEnvironmentBreakdownDto",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-dynatrace-platform-subscription-api-openapi.yml#/components/schemas/PaginatedEnvironmentBreakdownDto",
  "type": "object",
  "properties": {
    "environmentId": {
      "type": "string",
      "description": "Identifier of the environment"
    },
    "field": {
      "type": "string",
      "description": "Field used to generate the breakdown. Can be `COSTCENTER` or `PRODUCT`"
    },
    "records": {
      "description": "List of individual breakdown entries.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnvironmentCostBreakdownDto"
      }
    },
    "nextPageKey": {
      "type": "string",
      "description": "Key to request the next page."
    }
  },
  "required": [
    "environmentId",
    "field",
    "records",
    "nextPageKey"
  ],
  "$defs": {
    "EnvironmentCostBreakdownDto": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "Date of Costs"
        },
        "capability": {
          "type": "string",
          "description": "Capability"
        },
        "key": {
          "type": "string",
          "description": "Key"
        },
        "costs": {
          "type": "number",
          "description": "Quantity of costs"
        }
      },
      "required": [
        "date",
        "capability",
        "key",
        "costs"
      ]
    }
  }
}