> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pagos.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Segments Monitored for Alerts

An anomaly alert for one of your metrics doesn't always mean there's been a widespread issue across all of your transaction volume. More often, it indicates specific segments of your business have experienced unexpected changes significant enough to trigger the alert.

## Alerting Segments

![Alerts Details page](https://mintcdn.com/pagossolutionsinc/1pe8f0FAG6Mc5htO/images/insights/alerts-details.png?fit=max\&auto=format\&n=1pe8f0FAG6Mc5htO\&q=85\&s=e07ed3d14cc34b4b62b3809d76482bba)

The **Alerting Segments** section of an Alert Metric Details page identifies the exact segment(s) of your business in which a data anomaly occurred. Each row includes the following columns:

| Column | Description | Appears for |
| - | - | - |
| **Segment** | The parameters of the given segment (e.g. processor, payment method, issuing country) | All alerts |
| **Threshold Type** | The type of threshold that triggered the alert. See [Threshold Type](#threshold-type). | All alerts |
| **Attempted Transactions in Segment** | The number of transaction attempts in the segment | Rate metrics only |
| **(Metric) vs. 30-Day Average** | A comparison of the metric's alerting value to its average over the last 30 days | [Daily](https://docs.pagos.ai/insights/alerts/alerts-overview.md#alert-timing) alerts only |
| **Alert Time** | The time of day the anomaly occurred | [Hourly](https://docs.pagos.ai/insights/alerts/alerts-overview.md#hourly-alerts) alerts only |

Hover over the segment's row name to reveal a **Focus** icon; click this icon to change the [focus graph](https://docs.pagos.ai/insights/alerts/alerts-overview.md#focus-graph) to only show data for that particular segment.

## Monitored Segments

At the bottom of the Alert Metric Details page, you'll find a **Monitored Segments** table listing all the business segments Pagos monitors for anomalies, along with the Threshold Type, Attempted Transactions in Segment (rate metrics only), and (Metric) vs. 30-Day Average (daily alerts only). Hover over a segment's row in this table to reveal a **Focus** icon. Click this icon to change the [focus graph](https://docs.pagos.ai/insights/alerts/alerts-overview.md#focus-graph) to only show data for that segment.

We identify a segment by filtering for all transactions associated with a single parameter within one of the following [data filters](https://docs.pagos.ai/insights/insights-data-filters.md#filter-options):

* Processor
* Payment method
* Stored credential
* Card brand
* Card type
* BIN ([Attempted Transaction Count](https://docs.pagos.ai/insights/alerts/alerts-logic.md#attempted-transaction-count-bin-spikes) only)
* Issuing country
* MID - To evaluate a MID for any [Alert metric](https://docs.pagos.ai/insights/alerts/alerts-overview.md#alert-metrics), the MID must have >1,000 transactions in the last 30 days and >100 transactions on the alert date.

For more information on how we determine which segments to monitor and when to send alerts, see our [Alerts Logic](https://docs.pagos.ai/insights/alerts/alerts-logic.md) guide.

## Custom Segments

With custom segments, you can define the exact market segment you want Pagos to monitor for anomalies. To create a new custom segment:

**1. Select a Metric**

On the main Alerts page, decide which [payment metric](https://docs.pagos.ai/insights/alerts/alerts-overview.md#alert-metrics) you want to build a custom segment around. Click the bar for any given day under that metric to open an **Alert Metric Details** page.

**Step 2**

In the **Monitored Segments** section, click **Custom Daily Segment** to open a side panel.

> [!NOTE]
>
> If the selected metric includes [hourly alert data](https://docs.pagos.ai/insights/alerts/alerts-overview.md#hourly-alerts), you can also customize hourly segments. Click the **Daily/Hourly** switcher in the top-right corner to switch to an **Hourly** view, then click **Custom Hourly Segment**.

**3. Select a Threshold Type**

Click one of the tabs to select your [**Threshold Type**](#threshold-type).

**4. Set a Threshold Value (Static Thresholds only)**

Enter a static threshold value, then select whether you want to receive an alert when your metric measures **Above** or **Below** that value.

**5. Filter by Processor**

For all custom segments, specify the **Processor** you want to monitor for anomalies. This field is required.

**6. Filter by Decline Code (Decline Rate monitoring only)**

When building a custom segment for Decline Rate, select the [**Decline Code**](https://docs.pagos.ai/insights/alerts/alerts-overview.md#decline-rate) you want to monitor. This field is required.

**7. Apply Optional Filters**

For most metrics, you can apply up to two additional filter segments to further narrow down the market segment. Click **Filter**, select from the available [options](https://docs.pagos.ai/insights/insights-data-filters.md#filter-options), then select a parameter from the drop-down.

> [!NOTE]
>
> For **Decline Rate** custom segments, you can only apply up to one additional filter.

**Step 8**

Click **Create Segment**.

### Threshold Type

When building a custom segment, you'll select the type of threshold that triggers an alert:

* **Automatic** - Receive an alert when we register an anomaly (i.e. a measurement that's inconsistent with your historical data) for the defined market segment
* **Static** - Receive an alert whenever your metric measures above/below a set static threshold measurement for the defined market segment. Use this threshold type if your business has specific KPIs you monitor for.

> [!NOTE]
>
> Keep in mind the following when using **Static** thresholds in custom segments:
>
> * If your custom segment already appears in the [Monitored Segments](#monitored-segments) list (i.e. it has a high historical transaction count), we'll alert you both when the metric crosses your static threshold *and* when we detect an anomaly based on your historical data.
> * If your segment has a low transaction count and doesn’t meet the criteria for Monitored Segments, we’ll only alert you when the metric crosses your static threshold; statistical anomalies won’t be evaluated.

### Subscribing to Custom Segment Alerts

By default, only the user who creates a custom segment receives anomaly notifications. That being said, all custom segments created by users within your [Organization](https://docs.pagos.ai/getting-started/managing-your-pagos-organization.md) will appear in the [Monitored Segments](#monitored-segments) and [Alerting Segments](#alerting-segments) lists for the associated metric. The following icons indicate your relationship with a given custom segment:

* &#x20;\- You created the custom segment and are subscribed to its alerts
* &#x20;\- Another user created the custom segment and you're subscribed to its alerts
* &#x20;\- Another user created the custom segment and you're not subscribed to its alerts

To subscribe to alerts from another user's custom segment, hover over the segment in the list, click **...**, then click **Subscribe**. You can unsubscribe at any time by following the same steps. Keep in mind, you can't unsubscribe from your own custom segments.

### Editing Custom Segments

**Step 1**

Locate the custom segment in the [Monitored Segments](#monitored-segments) section of the Alert Metric Details page.

**Step 2**

Hover over the segment, then click the **...** icon at the end of the row.

**Step 3**

To adjust the custom segment's settings, click **Edit Segment**. Make your changes in the side panel, then click **Save Segment**.

**Step 4**

To delete a custom segment permanently, click **Stop Monitoring Segment**, then confirm the change. Keep in mind, this action can't be undone.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.