# Policy Violations

## Overview

Policy violations occur when your cloud resources deviate from **predefined OneLens cost-saving policies**. These breaches are automatically detected based on daily checks across your environment.

The **Policy Violations** page provides a centralized view of all such breaches, showing the violated policy, affected services, involved resources, and the potential savings associated with each violation.

## Exploring the Violation Dashboard

To begin with:

* **Log in** to the OneLens UI using your credentials.
* From the **left sidebar**, go to the **Policy Violation** section.

Here is how the main page looks:

<figure><img src="/files/OJ3ykN1yVOzrJLLQPPA1" alt=""><figcaption></figcaption></figure>

#### Number References

1. [View Option](#view-option)
2. [Filters](#filter)
3. Potential Savings
4. Achieved Savings
5. Violations Detected
6. Unique Resources
7. Search Bar
8. [Policy Table](#violated-policies-table)&#x20;

### View Option

You can start with pre-saved views or customize your own using filters.

* **Recent Tickets**: Shows tickets created in the **last 7 days**.
* **Quick Wins**: Filters for **low-risk**, **easy-effort** opportunities.
* **Waste**: Focuses on **unused resources**.
* **Graviton**: Surfaces opportunities to switch to Graviton instances (for AWS)
* **Savings Achieved**: Status marked as **Acted & Closed**.

<figure><img src="/files/Z3HT7nT5r0tnGgAx0LXE" alt="" width="365"><figcaption></figcaption></figure>

{% hint style="success" %}

## Tip&#x20;

To learn how to save a customized view, [click here](/observe-visibility-and-insights/cost-reporting/cost-atlas/saved-views.md#how-to-save-a-view).
{% endhint %}

### Filter

Refine your view using filters:

* **Account ID**: Focus on a specific cloud account.
* **Region**: Limit results to a particular cloud region.
* **Service**: Select an individual cloud service.
* **Cost Center**: Filter by your organizational cost centers.
* **Created Date**: Choose a time window for ticket creation.
* **Change Type**:
  * **Application Changes**: Updates to app components.
  * **Config Changes**: Infrastructure-level adjustments.
  * **Decommissioning**: Terminating unused resources.
  * **Scheduling**: Time-based cost-saving actions.
* **Cost Saving Category**: Filter by the nature of the savings opportunity.
* **Risk**:
  * **Low**: Low-risk, generally safe changes.
  * **High**: Higher risk may need review.
* **Effort**:
  * **Easy**: Quick wins with minimal effort.
  * **Medium**: Requires moderate effort or coordination.
  * **Hard**: Higher-effort tasks with broader impact.

<figure><img src="/files/JGue0fbT2VlFHn1v55Aa" alt=""><figcaption></figcaption></figure>

### Key Metrics

* **Potential Savings** – Combined estimated savings across all detected violations.
* **Achieved Savings** – Total savings already realized per month from resolved tickets.
* **Violations Detected** – Number of unique policies currently violated.
* **Unique Resources** – Total distinct resources involved in these violations.

### Violated Policies Table

Each violated policy is displayed as a row in the table, capturing key impact metrics:

* **Policy Name** – The name of the cost-saving policy that has been violated.
* **Service** – The cloud service associated with the policy (e.g., EC2, S3, Azure VM, GCP Compute Engine).
* **Potential Savings** – Estimated savings if the violation is addressed.
* **Achieved Savings** – Actual savings realized if actions have already been taken.
* **Resources Affected** – Number of unique resources that have triggered the violation.

{% hint style="success" %}
Click on any **Policy Name** to open its detailed violation view.
{% endhint %}

{% hint style="info" %}

## Next Step

To explore the tickets created under a specific violated policy, see\
[**Viewing Specific Policy Violations**](/optimize-cost-savings-and-recommendations/policy-violations/drill-down-into-policy-violations.md)
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.onelens.cloud/optimize-cost-savings-and-recommendations/policy-violations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
