{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-management-group-aggregated-cost-result-schema.json",
  "title": "ManagementGroupAggregatedCostResult",
  "description": "A management group aggregated cost resource.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-aggregatedcost-api-openapi.yml#/components/schemas/ManagementGroupAggregatedCostResult",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "properties": {
    "properties": {
      "x-ms-client-flatten": true,
      "$ref": "#/$defs/ManagementGroupAggregatedCostProperties",
      "title": "Management Group Aggregated Cost properties"
    }
  },
  "$defs": {
    "ManagementGroupAggregatedCostProperties": {
      "description": "The properties of the Management Group Aggregated Cost.",
      "type": "object",
      "properties": {
        "billingPeriodId": {
          "description": "The id of the billing period resource that the aggregated cost belongs to.",
          "type": "string",
          "readOnly": true
        },
        "usageStart": {
          "description": "The start of the date time range covered by aggregated cost.",
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "usageEnd": {
          "description": "The end of the date time range covered by the aggregated cost.",
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "azureCharges": {
          "description": "Azure Charges.",
          "type": "number",
          "format": "decimal",
          "readOnly": true
        },
        "marketplaceCharges": {
          "description": "Marketplace Charges.",
          "type": "number",
          "format": "decimal",
          "readOnly": true
        },
        "chargesBilledSeparately": {
          "description": "Charges Billed Separately.",
          "type": "number",
          "format": "decimal",
          "readOnly": true
        },
        "currency": {
          "description": "The ISO currency in which the meter is charged, for example, USD.",
          "type": "string",
          "readOnly": true
        },
        "children": {
          "description": "Children of a management group",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ManagementGroupAggregatedCostResult"
          }
        },
        "includedSubscriptions": {
          "description": "List of subscription Guids included in the calculation of aggregated cost",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "excludedSubscriptions": {
          "description": "List of subscription Guids excluded from the calculation of aggregated cost",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ManagementGroupAggregatedCostResult": {
      "description": "A management group aggregated cost resource.",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ],
      "properties": {
        "properties": {
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/ManagementGroupAggregatedCostProperties",
          "title": "Management Group Aggregated Cost properties"
        }
      }
    },
    "Resource": {
      "description": "The Resource model definition.",
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Resource Id."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Resource type."
        },
        "tags": {
          "readOnly": true,
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Resource tags."
        }
      },
      "x-ms-azure-resource": true
    }
  }
}