> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-cloud-posture-management/code-to-cloud/code-to-cloud/references/reference-b-coverage-calculation-and-configuration-toggles.md).

# Reference B: Coverage % calculation and configuration toggles

This appendix details the Coverage % formula for each of the four dashboard views and the effect of the two configuration toggles.

| View                              | Numerator                                                                       | Denominator                                                          | Calculated as                                        |
| --------------------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------- |
| **Code-to-Cloud, artifact**       | Repositories that reached the registry (or runtime, depending on configuration) | Onboarded repositories (or all repositories including not-onboarded) | `traced_repositories / total_repositories`           |
| **Code-to-Cloud, infrastructure** | IaC resources that reached a runtime cloud asset                                | All IaC resources                                                    | `traced_iac_resources / total_iac_resources`         |
| **Cloud-to-Code, artifact**       | Runtime images and VM instances that reached a repository                       | All runtime images and VM instances                                  | `traced_runtime_artifacts / total_runtime_artifacts` |
| **Cloud-to-Code, infrastructure** | Cloud assets that reached an IaC resource                                       | All cloud assets at runtime                                          | `traced_cloud_assets / total_cloud_assets`           |

| Toggle                                 | Effect                                                                                                                                                                                            | Use when                                                                                            |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **Include not-onboarded repositories** | When enabled, the Code-2-Cloud Artifact denominator includes repositories Cortex Cloud has discovered but not yet onboarded. When disabled, the denominator includes only onboarded repositories. | Disable to measure coverage against the actively monitored inventory only.                          |
| **Reach runtime instead of registry**  | When enabled, the numerator counts only repositories whose lineage reaches a runtime artifact. When disabled, the numerator counts repositories whose lineage reaches a container registry image. | Use the registry option when a successful build-to-registry push is considered sufficient coverage. |

> **Important:** Changing either toggle re-evaluates the Coverage % and the per-stage Traced/Untraced split for the current view. The toggle setting is preserved per user.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-cloud-posture-management/code-to-cloud/code-to-cloud/references/reference-b-coverage-calculation-and-configuration-toggles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
