11 months ago
Evaluate Price API Endpoint
The evaluate price API endpoint allows you to leverage multiple SQL expressions in order to dynamically query your data, just as you would use SQL expressions in constructing your metric. The set of filter and grouping expressions need not be configured up-front or known to Orb to pre-aggregate; instead, you’re able to perform these actions on-demand as they become necessary. Because SQL expressions are supported (as opposed to more basic support for event properties), you can use conditional statements and other logical operators.
This endpoint could be used to:
- View usage for your compute metric broken down by cluster_name, where a user may have hundreds of clusters active in a given time period.
- Build an interactive explorer in your application to view hourly data over a day time range, rather than the default daily views available through Orb’s subscription usage and cost APIs.
- Provide a view into end customer usage by api_key prefix, allowing users to understand the source of API requests.
Learn more about this endpoint in the Orb docs. Happy query-ing!