Reports API (1.0.0)
The Reports API currently provides access to the Resource Usage Summary report. This report offers detailed insights into your organization's usage of service level objectives (SLOs), SLO units, composite SLO components, data sources, and users, helping you track resource consumption and manage your service performance.
Generate access token
To generate access token, you must provide Authorization header with the Basic
scheme.
The access token consists of your Client ID and Client Secret in the following format: clientId:clientSecret
.
Rate Limits for access token
All requests to the endpoint /api/accessToken
are rate limited. An organization can make 1 request per 3 seconds.
The API returns the 429 HTTP
status code when this limit is exceeded.
Your token will be valid for 1 hour. Minimize the usage of this endpoint and reuse the token until it expires.
We recommend downloading your token once and reusing it in your CI/CD pipeline. Generating multiple tokens may exceed your rate limits.
Authorizations:
header Parameters
organization required | string Your organization ID |
Responses
Request samples
- cURL
curl -X \ POST https://app.nobl9.com/api/accessToken -H 'Accept: application/json; version=v1alpha' \ -H 'Organization: your-organization-id' \ -H 'Authorization: Basic ${encoded_access_keys}'
Response samples
- 200
{- "access_token": "string"
}
Get resource usage summary report
Retrieve a summary of resource usage. For detailed information, check the Resource Usage Summary report.
Authorizations:
header Parameters
organization required | string Your organization ID |
Responses
Response samples
- 200
{- "metadata": {
- "tier": {
- "name": "Nobl9 Enterprise"
}, - "generatedAt": "2021-07-09T13:34:48Z",
- "licenseEndDate": "2021-07-09T13:34:48Z"
}, - "usageSummary": {
- "slos": {
- "currentUsage": 15,
- "peakUsage": 20,
- "quotaStatus": "reached"
}, - "sloUnits": {
- "currentUsage": 15,
- "peakUsage": 20,
- "quotaStatus": null
}, - "compositeSloComponents": {
- "currentUsage": 15,
- "peakUsage": 20,
- "quotaStatus": null
}, - "dataSources": {
- "currentUsage": 15,
- "peakUsage": 20,
- "quotaStatus": "reached"
}, - "users": {
- "currentUsage": 15,
- "peakUsage": 20,
- "quotaStatus": null
}
}
}