{"type":"model","meta":{"id":"/apps/pubhub/media/000-v7-apis/5b3454a4300b838cc17f7b2cdc0690fdd15058d5/8338b1ff-e9bc-34cf-ba50-5477b3cc7c1a","info":{"description":"\nThese usage endpoints define the following operations:\n\n* **Usage**: Retrieve usage data for the specified time period (default is one month).\n \n * Users must have the `View organization usage` permission to access this endpoint.\n * This operation offers visibility across all account groups within the organization.\n * Users with `View organization usage` permission in multiple organizations should query the operation with the `aid` query string parameter (see optional parameters) for each organization.\n\n* **Quotas**: Obtain organization and account usage quotas. Additionally, users with the appropriate permissions can create, update, or delete these quotas.\n \n * Users must have the necessary permissions to perform quota-related actions.\n\nRefer to the Usage API operations for detailed usage instructions and optional parameters.\n","title":"Usage API","version":"7.0.34"},"security":[{"BearerAuth":[]}],"tags":[{"description":"Usage GET Operation","name":"Usage"},{"description":"Quota CRUD Operation","name":"Quotas"}],"externalDocs":{"description":"Find out more about the usage model","url":"https://docs.thousandeyes.com/product-documentation/user-management/usage-and-billing/how-unit-consumption-works#what-is-the-projected-usage"},"openapi":"3.0.1","servers":[{"description":"ThousandEyes API production URL","url":"https://api.thousandeyes.com/v7"}],"securitySchemes":{"BearerAuth":{"description":"Bearer authentication token","scheme":"bearer","type":"http"}}},"spec":{"properties":{"aid":{"description":"Unique ID of the account group owning the test that is generating units","example":"1234","type":"string"},"accountGroupName":{"description":"Name of the account group which owns the test that is generating the units","example":"Account A","type":"string"},"enterpriseUnitsUsed":{"description":"Units generated by the by the enterprise agents running the test","type":"integer"},"enterpriseUnitsProjected":{"description":"Enterprise Units projected in the current usage period, based on units consumed to date and configuration of the test","type":"integer"},"cloudUnitsUsed":{"description":"Units generated by the by the cloud agents running the test","type":"integer"},"cloudUnitsProjected":{"description":"Cloud Units projected in the current usage period, based on units consumed to date and configuration of the test","type":"integer"},"testId":{"description":"Unique ID of the test generating usage","type":"string"},"testName":{"description":"Name of the test generating usage","type":"string"},"testType":{"description":"Type of test generating usage. Note that this is a friendly testType entry (so it shouldn’t be parsed to discover the correct operation to query for configuration details).","type":"string"},"isInstantTest":{"description":"Indicates whether the test is scheduled or instant","type":"boolean"}},"type":"object","$$ref":"#/components/schemas/UnitsByTests","title":"UnitsByTests"}}