https://github.com/aziontech/azion-queries
Sample queries for Azion's GraphQL API.
https://github.com/aziontech/azion-queries
Last synced: 3 months ago
JSON representation
Sample queries for Azion's GraphQL API.
- Host: GitHub
- URL: https://github.com/aziontech/azion-queries
- Owner: aziontech
- Created: 2023-03-29T15:05:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T19:02:33.000Z (about 1 year ago)
- Last Synced: 2025-11-16T17:42:46.850Z (7 months ago)
- Homepage: https://www.azion.com
- Size: 73.2 KB
- Stars: 11
- Watchers: 17
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# azion-queries
Sample queries to be used on Azion GraphQL API. You can test these queries on:
**Azion Playground**
- [https://api.azion.com/v4/metrics/graphql](https://api.azion.com/v4/metrics/graphql)
- [https://api.azion.com/v4/events/graphql](https://api.azion.com/v4/events/graphql)
- [https://api.azion.com/v4/billing/graphql](https://api.azion.com/v4/billing/graphql)
- [https://api.azion.com/v4/accounting/graphql](https://api.azion.com/v4/accounting/graphql)
- [https://api.azion.com/v4/consumption/graphql](https://api.azion.com/v4/consumption/graphql)
**GraphQL API**
- https://api.azion.com/v4/metrics/graphql
- https://api.azion.com/v4/events/graphql
- https://api.azion.com/v4/billing/graphql
- https://api.azion.com/v4/accounting/graphql
- https://api.azion.com/v4/consumption/graphql
> Read more about the Azion GraphQL API and how to use it in the [documentation](https://www.azion.com/en/documentation/devtools/graphql-api/overview/).
## Adding timestamp
To correctly execute a query, you must add a timestamp. On the example queries, you'll find a placeholder for the **tsRange** field with `tsRange: {begin:"yyyy-mm-ddThh:mm:ss", end:"yyyy-mm-ddThh:mm:ss"}`, representing the date and time format. Replace all placeholders with the proper dates and time you want to query. For example:
`tsRange: {begin:"2023-03-22T17:03:00", end:"2023-03-22T18:05:00"}`