# <a id="bitdrift.public.webhook.v1.IssueAlertNotification"></a>IssueAlertNotification

**Source definition:** [`src/bitdrift/public/webhook/v1/notification.proto#L107-L140`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/webhook/v1/notification.proto#L107-L140>)

Describes a webhook notification for an issue alert.

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| alert_url | <span class="proto-type proto-type-primitive">string</span> | Alert URL. |
| view_url | <span class="proto-type proto-type-primitive">string</span> | View URL. |
| view_name | <span class="proto-type proto-type-primitive">string</span> | View name. |
| global | <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">webhook</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">IssueAlertNotification</i><i class="proto-type-dot">.</i><i class="proto-type-part">GlobalAlert</i>](#bitdrift.public.webhook.v1.IssueAlertNotification.GlobalAlert "bitdrift.public.webhook.v1.IssueAlertNotification.GlobalAlert")</span><span class="proto-field-annotation">only one of <em>global</em>, or <em>per_issue</em> can be set</span> | Global alert (no per issue details). |
| per_issue | <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">webhook</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">IssueAlertNotification</i><i class="proto-type-dot">.</i><i class="proto-type-part">PerIssueAlert</i>](#bitdrift.public.webhook.v1.IssueAlertNotification.PerIssueAlert "bitdrift.public.webhook.v1.IssueAlertNotification.PerIssueAlert")</span><span class="proto-field-annotation">only one of <em>per_issue</em>, or <em>global</em> can be set</span> | Per-issue alert with affected issues. |
| custom_notification_text | <span class="proto-type proto-type-primitive">string</span> | Custom notification text. |
| labels | <span class="proto-type proto-type-primitive">map<string, string></span> | Additional labels attached to the alert. |

</section>
<p class="h4">Example</p>
```json
{
  "alert_url": "https://app.bitdrift.io/issue-alerts/ia_123",
  "custom_notification_text": "Issue volume increased above the configured threshold.",
  "labels": {
    "key": ""
  },
  "per_issue": {
    "issues": [
      {
        "issue_url": "https://app.bitdrift.io/issues/is_123",
        "reason": "Crash in CheckoutViewController"
      }
    ]
  },
  "view_name": "iOS Production Crashes",
  "view_url": "https://app.bitdrift.io/issues/views/iv_123"
}
```

# <a id="bitdrift.public.webhook.v1.IssueAlertNotification.GlobalAlert"></a>IssueAlertNotification.GlobalAlert

**Source definition:** [`src/bitdrift/public/webhook/v1/notification.proto#L109-L110`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/webhook/v1/notification.proto#L109-L110>)

Indicates that the alert applies to the full view instead of specific issues.

No fields

# <a id="bitdrift.public.webhook.v1.IssueAlertNotification.PerIssueAlert"></a>IssueAlertNotification.PerIssueAlert

**Source definition:** [`src/bitdrift/public/webhook/v1/notification.proto#L113-L116`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/webhook/v1/notification.proto#L113-L116>)

Lists the issues that triggered a per-issue alert.

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| issues | <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">webhook</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">IssueDetails</i>](bitdrift_public_webhook_v1_IssueDetails.md "bitdrift.public.webhook.v1.IssueDetails")</span> | List of issues that triggered the alert. |

</section>
<p class="h4">Example</p>
```json
{
  "issues": [
    {
      "issue_url": "https://app.bitdrift.io/issues/is_123",
      "reason": "Crash in CheckoutViewController"
    }
  ]
}
```

