Metric Attribution Validation
1. API Description
The metric attribution validation API determines whether a metric supports attribution analysis.
The system validates the metric based on metric type, expression structure, whether it can be split, and whether it supports attribution calculation, then returns whether validation passed.
Common use cases:
-
Before running attribution, quickly determine whether a metric meets attribution requirements
-
Validate composite or nested metrics in advance
2. API URL
3. Common Request Headers
| parameter Name | Type | required | Max Length | Description |
|---|---|---|---|---|
| tenant-id | String | Yes | 32 | Tenant ID used to specify the workspace |
| auth-type | String | Yes | 32 | Authentication method. Supports UID, TOKEN, ACCOUNT, and APIKEY. |
| auth-value | String | Yes | 32 | Authentication value corresponding to auth-type. |
How to Obtain Common parameters:
View this in the top navigation of Aloudata CAN under Metric Applications > API Integration.
4. Request Body parameters
| Field Name | Type | required | Description |
|---|---|---|---|
| metric | String | Yes | Metric name to validate for attribution support |
4.1 Request Example
5. Response parameters
| Field Name | Type | Description |
|---|---|---|
| result | Boolean | Whether attribution is supported: true means attribution is supported; false means it is not supported |
| errorMsg | String |