Create Custom Dimensions and Measures
- How to add a custom metric.
- How to attach Statistics Collector policy to enable data collection using the custom dimension or measure.
Prerequisites
You have provisioned your SAP Integration Suite tenant and activated Design, Develop and Manage APIs. For more information, see Set Up Integration Suite Trial.
Context
API Analytics allows you to track analytics with a set of predefined dimensions and measures. However, you may also create custom measures and dimensions if you have the need to track analytics data based on metrics that are not predefined. With a custom dimension or a custom measure, you can collect and analyze data that analytics doesn’t automatically track. For instance, you want to capture API calls or API errors based on an API Key. Advanced API Analytics doesn’t provide an out-of-the-box dimension that allows you to track data based on an API key. In such cases, you can define a custom dimension for capturing API key based data. Similarly, you can track the number of headers passed in an API call by creating a custom measure to track the total or average number of headers passed in an API call.