create_pa_indicator
Create a Performance Analytics indicator by defining source facts table, aggregation function, and conditions. Use a PA job to collect data afterward.
Instructions
Create a Performance Analytics (PA) indicator / KPI on pa_indicators (requires WRITE_ENABLED=true). Define the source facts table, aggregation and conditions; collect data via a PA job afterward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Indicator name (e.g. "Open P1 incidents") | |
| unit | No | Unit (pa_units name or sys_id) | |
| field | No | Field to aggregate (required for sum/average/max/min; ignored for count) | |
| active | No | Activate immediately (default: true) | |
| aggregate | No | Aggregation function | |
| direction | No | Desired trend | |
| conditions | No | Encoded query on the facts table (e.g. "active=true^priority=1") | |
| description | No | What the indicator measures | |
| facts_table | No | Source/facts table the indicator counts (e.g. "incident") |