{"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 identifier of the account group which owns the test.","example":"1234","type":"string"},"accountGroupName":{"description":"Name of the account group which owns the test.","example":"Account A","type":"string"},"testId":{"description":"Unique identifier of the test generating usage.","type":"string"},"testName":{"description":"Name of the test generating usage.","type":"string"},"testType":{"description":"The type of test that generated the usage data. Note that this parameter provides a user-friendly description of the test type and should not be parsed to determine the endpoint for querying configuration details.","type":"string"},"cloudUnitsUsed":{"description":"Number of cloud units that the test has consumed in the usage period.","format":"int64","type":"integer"},"cloudUnitsProjected":{"description":"The estimated number of cloud units that the test is expected to consume during the usage period. This estimate is determined by considering the units consumed up to the current time and the test's configuration. It's important to note that this value is updated every hour. For new tests, the `cloudUnitsProjected` parameter is absent until the projection is calculated.","format":"int64","type":"integer"}},"type":"object","$$ref":"#/components/schemas/TestUsage","title":"TestUsage"}}