Flag evaluations in environment
flag_evaluationsAnalyze flag evaluation counts over 7, 30, or 90 days in one environment: variation split, serving rule, and rollout weight mismatch checks to spot misconfigured targeting.
Instructions
What a flag actually served in ONE environment over the last 7, 30 or 90 days: total evaluations, the split by variation, and which rule (or fallthrough, off, prerequisite, error) served what. Percentage-rollout rules include their configured weights and a sample-ratio check; rollout.flagged=true means the served split is statistically off the configured weights. A live rollout rule is always listed, with count 0 and no variations when it served nothing. rollout.unreached is set when a live rollout rule got no evaluations while the flag's rules got 100 or more: usually the context lacks rollout.bucketBy, or an earlier rule or the conditions catch the traffic. These are evaluation counts, NOT unique users. Counts come from SDK-reported events, so zero means no evaluations were reported, not necessarily no traffic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window in UTC days: 7 (default), 30 or 90 | |
| flag | Yes | Flag key or id | |
| project | Yes | Project key | |
| environment | Yes | Environment key, e.g. production |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The window requested: 7, 30 or 90. | |
| toUtc | No | When the counts were read. | |
| fromUtc | No | Start of the window: UTC midnight `days - 1` days ago, or the flag's creation day if later. | |
| sources | No | Evaluations per part of the targeting that served them: live rules in evaluation order, then deleted rules, then fallthrough, off, prerequisite, error, notFound and unknown. A live percentage-rollout rule is always listed, with a count of 0 and no variations when it served nothing in the window, so its rollout check (and rollout.unreached) has a row. | |
| totalCount | No | Evaluations in the window. Evaluation counts, not unique users. | |
| variations | No | Evaluations per variation over the window. | |
| environmentKey | No | The environment's key. | |
| lastEvaluatedAtUtc | No | The last reported evaluation, or null if none was reported. |