{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-usage-api-enterprise-agents-usage-schema.json",
  "title": "Usage_API_EnterpriseAgentsUsage",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-usage-api-openapi.yml#/components/schemas/Usage_API_EnterpriseAgentsUsage",
  "type": "object",
  "properties": {
    "breakdowns": {
      "x-paginated-items": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Usage_API_EnterpriseAgentUnitsByTestOwnerAccountGroup"
      }
    },
    "_links": {
      "$ref": "#/$defs/Usage_API_PaginationLinks"
    }
  },
  "$defs": {
    "Usage_API_EnterpriseAgentUnitsByTestOwnerAccountGroup": {
      "type": "object",
      "properties": {
        "aid": {
          "description": "Unique identifier of the account group where some tests are incurring the enterprise agent units.",
          "type": "string"
        },
        "accountGroupName": {
          "description": "Name of the account group which owns the tests that are incurring enterprise agent units.",
          "type": "string"
        },
        "agentId": {
          "type": "string",
          "description": "Unique identifier of the enterprise agent generating usage. This field may be omitted when not available."
        },
        "agentName": {
          "type": "string",
          "description": "Name of the enterprise agent generating usage."
        },
        "enterpriseUnitsUsed": {
          "type": "integer",
          "format": "int64",
          "description": "Number of enterprise agent units owned by the specific account group in the usage period."
        },
        "enterpriseUnitsProjected": {
          "type": "integer",
          "format": "int64",
          "description": "Number of enterprise units projected in the current usage period, based on units consumed to date and configuration of enabled tests. This value is updated hourly. Returns non-zero value only for organizations with metered billing."
        }
      }
    },
    "Usage_API_Link": {
      "type": "object",
      "description": "A hyperlink from the containing resource to a URI.",
      "required": [
        "href"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Its value is either a URI [RFC3986] or a URI template [RFC6570]."
        },
        "templated": {
          "type": "boolean",
          "description": "Should be true when the link object's \"href\" property is a URI template."
        },
        "type": {
          "type": "string",
          "description": "Used as a hint to indicate the media type expected when dereferencing the target resource."
        },
        "deprecation": {
          "type": "string",
          "description": "Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation."
        },
        "name": {
          "type": "string",
          "description": "Its value may be used as a secondary key for selecting link objects that share the same relation type."
        },
        "profile": {
          "type": "string",
          "description": "A URI that hints about the profile of the target resource."
        },
        "title": {
          "type": "string",
          "description": "Intended for labelling the link with a human-readable identifier"
        },
        "hreflang": {
          "type": "string",
          "description": "Indicates the language of the target resource"
        }
      }
    },
    "Usage_API_PaginationLinks": {
      "type": "object",
      "description": "A links object containing pagination related link(s).",
      "properties": {
        "previous": {
          "$ref": "#/$defs/Usage_API_Link"
        },
        "next": {
          "$ref": "#/$defs/Usage_API_Link"
        },
        "self": {
          "$ref": "#/$defs/Usage_API_Link"
        }
      }
    }
  }
}