OCP® Metrics API
Overview
Metrics provide essential information about the current status of an Omilia Application. They are derived from a selected set of Omilia KPIs designed to keep users informed about their system’s state without overwhelming them with data.
Metrics are divided into two main types: Real-time and Batch. Both types are publicly accessible through the Metrics API.
Authentication
Navigate to the API Authentication page to learn more about Token creation and Authentication process.
Errors Codes
Omilia's HTTP response codes can be found on the HTTP Code Responses page.
OCP® Metrics API Reference
Real-Time Metrics
Real-time metrics are generated in real-time and are broken down into five-minute intervals. They show the current status of the system.
The highest granularity of real-time metrics is five-minute intervals. For example, the end user will be able to see the number of invocations between 10:00-10:05, 10:05-10:10, and so on.
Users can apply a custom sampling rate to both Real-time and Batch metrics using the downsampling
parameter. For example, they can request daily metrics for the past month.
Batch Metrics
Batch metrics are exported from the OCP Data Warehouse (DWH) and provide historical information about system status, aggregated on an hourly basis. They are also available through Conversation Insights.
Batch metrics are aggregated on an hourly basis, the same as existing Convo Insights Solutions. For instance, total invocations can be viewed between 10:00-11:00 and then 11:00-12:00. Both types of metrics can be further aggregated to higher levels.
It is advised to make batch metrics requests after the two-hour watermark to ensure late events are updated in the calculations.
Some discrepancy between real-time and batch metrics is expected. This is partly due to possible data delays affecting near real-time calculations. In contrast, batch metrics take longer to generate, allowing them to include delayed data and ensure greater accuracy.
Metrics API
Metrics API v2 is being deprecated. If you're currently using Metrics API v2, please migrate to Metrics API v3. If you're starting a new integration, use Metrics API v3 from the beginning.
The metrics are available through six endpoints in Metrics API v3 (and five in v2), depending on the metrics category.
You can find more details about the Metrics API v3 and v2 endpoints below.
Endpoints with the {version}
parameter indicate that the retrieval logic remains unchanged between versions. To retrieve data from these endpoints, simply provide the required v2
or v3
value for the parameter.
Metrics API Example
The following Time Series example is designed to help you understand how a Production Call with multiple steps and miniApps is represented in real-time metrics.
Available Period for Real-Time Metrics
Real-time metrics will have a limited retention period of 48 hours. After this time range, the metrics can be monitored through Conversational Insights. For historical data, the user will be able to monitor their Applications through Convo Insights or Metrics API batch metrics endpoints with a retention period of 720 days.
OCP® Reporting for Real-Time Metrics
Metrics available through Metrics API are also available in the Reporting tab within OCP® Insights. For more information, refer to the OCP® Reporting User Guide.
For more advanced OCP Reporting, visit OCP® Conversational Insights.