# <a id="bitdrift.public.unary.alerts.v1.GetAlertConfigResponse"></a>GetAlertConfigResponse

**Source definition:** [`src/bitdrift/public/unary/alerts/v1/alerts.proto#L211-L232`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/alerts/v1/alerts.proto#L211-L232>)

Returns the alert configurations for a workflow chart.

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| alert_configs | <span class="proto-type proto-type-message">array of [<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">GetAlertConfigResponse</i><i class="proto-type-dot">.</i><i class="proto-type-part">AlertConfigWithId</i>](#bitdrift.public.unary.alerts.v1.GetAlertConfigResponse.AlertConfigWithId "bitdrift.public.unary.alerts.v1.GetAlertConfigResponse.AlertConfigWithId")</span> | The list of alert configurations. |

</section>
<p class="h4">Example</p>
```json
{
  "alert_configs": [
    {
      "aggregated_action_id": "count/fkQ1PfAZhdYvJexzY6DYuoYCZTEaWO0Y7spxwjr7akc",
      "config": {
        "basic_alert": {
          "condition": "ABOVE",
          "consecutive_data_points": 3,
          "histogram_configuration": {
            "percentile": 1.0,
            "percentiles": [
              1.0
            ]
          },
          "limit_strategy": {
            "exclusions": {
              "dimension_identifiers": [
                {
                  "id": "time_series_id_opaque_example",
                  "labels": [
                    {
                      "name": "name",
                      "value": "value"
                    }
                  ]
                }
              ],
              "return_other": false
            },
            "sort_order": "MAX",
            "top_k_limit": {
              "top_k": 5
            }
          },
          "threshold": 0.75,
          "unique_device_threshold": 50,
          "window": "3600s"
        },
        "common_config": {
          "custom_notification_text": "@checkout-oncall Please investigate.",
          "description": "Triggers when the checkout workflow error rate exceeds the configured threshold.",
          "labels": {
            "key": ""
          },
          "name": "Checkout error rate",
          "notifications": [
            {
              "min_time_between_notifications": "3600s",
              "notification_config": {
                "disabled": false,
                "notification_group": {
                  "name": "engineering-oncall"
                }
              }
            }
          ]
        }
      },
      "disabled": false,
      "id": 123,
      "owner": {
        "email": "user@example.com",
        "id": "usr_abc123",
        "name": "Jane Doe"
      }
    }
  ]
}
```

# <a id="bitdrift.public.unary.alerts.v1.GetAlertConfigResponse.AlertConfigWithId"></a>GetAlertConfigResponse.AlertConfigWithId

**Source definition:** [`src/bitdrift/public/unary/alerts/v1/alerts.proto#L213-L228`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/alerts/v1/alerts.proto#L213-L228>)

Describes a stored alert configuration together with its identifier and state.

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| id | <span class="proto-type proto-type-primitive">uint64</span> | The ID of the alert configuration. |
| config | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">AlertConfig</i>](bitdrift_public_unary_alerts_v1_AlertConfig.md "bitdrift.public.unary.alerts.v1.AlertConfig")</span> | Stored alert configuration. |
| disabled | <span class="proto-type proto-type-primitive">bool</span> | Whether the alert is disabled |
| aggregated_action_id | <span class="proto-type proto-type-primitive">string</span> | The aggregated action ID the alert targets. |
| owner | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">common</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">Owner</i>](bitdrift_public_unary_common_v1_Owner.md "bitdrift.public.unary.common.v1.Owner")</span> | The owner of the alert. |

</section>
<p class="h4">Example</p>
```json
{
  "aggregated_action_id": "count/fkQ1PfAZhdYvJexzY6DYuoYCZTEaWO0Y7spxwjr7akc",
  "config": {
    "basic_alert": {
      "condition": "ABOVE",
      "consecutive_data_points": 3,
      "histogram_configuration": {
        "percentile": 1.0,
        "percentiles": [
          1.0
        ]
      },
      "limit_strategy": {
        "exclusions": {
          "dimension_identifiers": [
            {
              "id": "time_series_id_opaque_example",
              "labels": [
                {
                  "name": "name",
                  "value": "value"
                }
              ]
            }
          ],
          "return_other": false
        },
        "sort_order": "MAX",
        "top_k_limit": {
          "top_k": 5
        }
      },
      "threshold": 0.75,
      "unique_device_threshold": 50,
      "window": "3600s"
    },
    "common_config": {
      "custom_notification_text": "@checkout-oncall Please investigate.",
      "description": "Triggers when the checkout workflow error rate exceeds the configured threshold.",
      "labels": {
        "key": ""
      },
      "name": "Checkout error rate",
      "notifications": [
        {
          "min_time_between_notifications": "3600s",
          "notification_config": {
            "disabled": false,
            "notification_group": {
              "name": "engineering-oncall"
            }
          }
        }
      ]
    }
  },
  "disabled": false,
  "id": 123,
  "owner": {
    "email": "user@example.com",
    "id": "usr_abc123",
    "name": "Jane Doe"
  }
}
```

