--- title: "Alert Policies" slug: "analytics-alert-policies" tags: ["analytics 21.12", "setting up", "capture", "Examples", "Alerts", "analytics 23.04", "analytics 24.05", "PCA", "policies ", "settings"] updated: 2026-06-15T23:22:28Z published: 2026-06-15T23:22:28Z canonical: "docs.crossworkassurance.cisco.com/analytics-alert-policies" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Alert Policies ## Overview In **Settings** ► **Policies** ► **Alerting**, set up the conditions that raises or clears alerts for specific metric thresholds and time frames. [Alerts](/25-7/docs/alerting-overview) are derived from conditions set against metrics within scoped (filtered) datasets. Opening the **Alerting** tab displays a list of alert policies that have been set up, along with information for each alert policy including the name, policy type, and last modified date. **Policy Limits** By default, the system supports up to 25 enabled policies for each category (session or capture) at a time to control system resources utilization. If an error related to these limits is returned and you cannot disable/remove any policies then please contact support. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-99EWS7PQ.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=ryrMBQY2tl2iZrvBvINMW7fA9qj38TtaciV49i0LsXw%3D) The following controls are available: - **Search**: Enter keywords to filter alert policies by name. - **Include archived**: Toggle this option to include archived alert policies in the list. - **Enabled**: Toggle this option to enable or disable the alert policy. - **Ellipsis** (…): Click and select **Archive** to archive the alert policy. ### Alert Policy API Endpoints The [enabled] and [deleted] fields are optional, defaulting to ‘true’ and ‘false’ respectively, when you are creating or updating alert policies. This ensures consistent and reliable behavior across requests. The API documentation has been updated to reflect this requirement for the following endpoints: POST {{host}}/api/v2/policies/alerting PATCH {{host}}/api/v2/policies/alerting/{id} ### Setting up an Alert Policy **Session**: Session based alerts can be set on a single metric for each policy and based on categorical metadata filtering. **Capture**: Capture based alerts can use application-based or zone-based filtering, and support multiple ingested metrics per policy. ### Session-Based Alert Policies Assuming that the system contains data as seen below: ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-Z02WCPTC.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=M%2FgZ%2F8Sjan4IOReAR6CCMZChSWiFdUfIkuFnwxCz5%2BA%3D) Roughly twice an hour, the data has two peaks. In this example, we will set up an alert policy that raises an alert when values are greater than or equal to 10 ms. 1. Go to **Settings** ► **Policies** ► **Alerting**. 2. Click **+** on the upper right. The **Alert policy** sidebar appears. 3. In **Detection name**, enter the alert policy name. 4. (Optional) Click **Add description**, then enter a description for the alert policy. 5. In **Policy type**, select **Session**. 6. (Optional) Reduce the scope of the policy by filtering to a set of objects. Click , select a category, and then click **✓**. 7. In **Conditions**, click **+,** then select the metric to create an alert for. For example, *Delay (p95)*. 8. Set up the conditions that raises and clears an alert, see below: ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-6L24852E.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=NicZDPHY1pw87I417Vpbv708saUKTPwSfA229FoLyhg%3D) 1. (Optional) Select the baseline icon to set the alert policy to trigger and clear depending on the difference between the metric value compared to its baseline. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-2600LXHL.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=Wre1%2B6RWXqvDg0LLdwOuKDOpLQe9LqKxWefQFWLlsOY%3D) - Create the baseline alert by provisioning the given fields - In this example, an alert would be raised when a session’s delay average value is 50 percent above the baseline value for 80 percent of the received data points within a five minute period. The alert would then be cleared once the session’s delay average value is less than 25 percent above the baseline for at least five minutes. - Also note that you can also set data-cleaning and time-exclusion toggles for baseline alerts. 2. Control the data to be considered in the calculation that triggers an alert by toggling these fields: - **Data cleaning** - **Use only busy hours** - **Exclude maintenance windows** 3. Click **✓** to save your changes. **Enhanced Conditions** Rather than requiring your Delay (p95) values to be over a certain percentage (such as 100%) for the *entire* interval, you can change the conditions to, for example, 60% of the values for five minutes at a time. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-EU1D50QA.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=DtQRDWKYMNqzBAzeNJCM5E8bZHg1TsXe0vxZC3IVE%2FI%3D) ### **Capture-Based Alert Policies** Capture alert policies use **Applications** or **Zones** in combination with capture metric conditions. Applications are provisioned in **Inventory** ▶ **Applications**; zones are provisioned in **Inventory** ▶ **Zones**. Zones are typically identified by IP subnet, for example: - /local with subnet 192.168.0.0/16 - /local/broadcast where 255.255.255.255/32. Applications are services typically identified by port, for example: - ssh — uses port 22 - http — port 80 or 8080 ### **Capture Metric Conditions** Capture alert metrics are computed on one-minute intervals using time and bytes **per second.** The following table can serve as an indicator on how to calculate the value for an alerting policy threshold. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-16UXRR2V.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=pypTQj%2BiZjWwRxV%2BNZmS6GMt1EWDBnIxkdel64LPLic%3D) #### Example: User Experience Given the User Experience metric aggregated using a sum for the SMTP application and 1-minute granularity. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-GW05OXP9.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=hOrc3NLsWLTNj1bpWWcPpKWcgP4QW45aWuu2bcbLPmI%3D) Based on the above chart, we determine 1.5 s to be a reasonable threshold. An alert policy can be set up as follows: ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-J68RQWL7.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=NzuYwL%2FvY6HkLiFiK4J0aU2xuvQXAqzPaWkynDYuIas%3D) #### Example: Client Traffic Given the Client Traffic metric aggregated using an average for the SMTP application with 1-minute granularity. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-8C5INRTE.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=CA8PfPP1f4mdEa5Gm%2BqifJ3C78WSI07ES3rYxe21FRo%3D) Based on the above chart, we determine 2.4 Mbps to be a reasonable threshold. An alert policy can be set up as follows: ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-RV1B3OPJ.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=WLbil1Fb7vc8AWKPjmi0804yh20Qt5TYF6alrald1l8%3D) ### Use an Alert Policy in Monitoring or Analysis Skylight Analytics keeps track of alerts raised, cleared and active alerts as KPIs. To use the alert policy in monitoring or analysis, simply go to the policy by using the policy name and select an alert metric (typically **Alerts Raised** or **Alerts Active**). **Alerts Raised**: When a metric value meets the trigger condition of an alert policy, then an alert will be raised on this object. After the alert is raised, this alert is active in the system. In the dashboard, the number of **Alerts Raised** is a historical view of how many alerts were raised in a certain query period. **Alerts Cleared**: When a metric value meets the clear condition of an alert policy, then an alert will be cleared on this object. In the dashboard, the number of **Alerts Cleared** is a historical view of how many alerts were cleared in a certain query period. **Active Alerts**: After the alert is raised, this alert will be in active state. When the alert is cleared, the active alert will be deleted. The number of active alerts is the number of alerts active at the end of the query period (interval). The way this is retrieved differs depending on the type of interval you are looking at, for example: - If you are looking at an interval that is last X time (for example, last 8 hours), then the count is the number of active alerts currently in database. - If you are looking at a historical interval, then the number reported is the estimated number of active alerts at the end of the historical interval. This estimated number is calculated as follows: `historical_active = active_now - raised alerts since end of interval + cleared alerts since end of interval` ### Update an Alert Policy If any update was made on an alert policy, current active alerts won’t be reset. It will use new conditions or filters to evaluate the policy for future metrics based on current alert states. ### Disable an Alert Policy You can disable or enable an alert policy on the first column from UI. If the alert policy is disabled, the system stops to evaluate the disabled policy, the alert state use the last state before disabling. A disabled policy can be enabled again. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-72V8UYX4.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=x2o1F66DxUJIaWT%2FGHPpdQR4hEPuCbkzn7WyZ8nTPF0%3D) ### Archive an Alert Policy You can archive unneeded alert policies by clicking ... on the last column and then Archive. Once archived, the policy will not be evaluated for future data and current active alerts will be reset. Archived policies are only kept for historical view. Archived alert policies cannot be reused. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-JZGXJZCH.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=MSFAs3Nb1C6B72dwS4KcrrSa0EeEWiWVfhd5dL6i1ZM%3D) By default, archived alert policies are not displayed, but you can enable the Include archived toggle to include archived alert policies in the view list. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-CKH0R80G.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A20Z&se=2026-12-01T00%3A48%3A20Z&sr=b&sp=r&sig=Je4siVKQlCRLh43HmrZjP2irxSUXjjr1jRRxpYEycv0%3D) ### Search for an Alert Policy The AlertPolicies Listing API endpoint was updated to support better search functionality of policies with the `name` and `tag` fields. Three query parameters can now be used: - `tag`: (New) search using the associated tags for alert policies - `name`: search using the name field for alert policies - `exactMatch`: (New) instruct the search mode to use “fuzzy” matching or exact matching for results. #### Examples - `GET {{host}}/api/v2/policies/alerting?tag=jp&exactMatch=true` - `GET {{host}}/api/v2/policies/alerting?name=jp_alert_8_name_iSpWmb2jWU&exactMatch=true` The default value for `exactMatch` is false; so existing API behavior is preserved when omitted from the URL. The API documentation is also updated with the new parameters and behavior. ### Delete an Alert Policy Previously, you could only archive alert policies. However, in some workflows this would result in an accumulation of unused/stale policies using resources on the deployment unnecessarily. A new API was added to allow permanent deletion of an **archived** alert policies: `DELETE {{host}}/api/v3/policies/alerting/{ID}?ignoreAlerts=false` A bulk version of this API was also added (API details `POST {{host}}/api/v3/bulk/delete/alertPolicies` #### IMPORTANT NOTE Alert Policy deletion will still fail for an archived alert policy if there are alerts recorded against it; within the deployment’s data retention period. If this policy is really meant to be deleted despite this reference; then the `ignoreAlerts` flag can be used when calling the API (by default it is false). **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)