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

# Google Cloud Observability Webhook Setup Guide

> Configure Google Cloud Observability to deliver events to StackOne.

## Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See [Getting Started](https://docs.stackone.com/connectors/googlecloudobservability.md#getting-started) on the Google Cloud Observability connector page.

## How Google Cloud Observability webhooks work

StackOne creates and manages the webhook automatically when the account is connected — it creates a webhook notification channel named **StackOne** in the connected Google Cloud project, and deletes it when events are disabled or the account is disconnected. Cloud Monitoring sends an incident to the channel only for alerting policies that list it, so you choose which policies StackOne receives.

**1. Grant the channel permissions**

Creating and deleting the channel uses the connected account's OAuth token, so the account needs the Cloud Monitoring write scope and permission to manage notification channels in the project.

<ul>
  <li>**Scope** — `https://www.googleapis.com/auth/monitoring` (included in the default scopes) or `https://www.googleapis.com/auth/cloud-platform`.</li>
  <li>**IAM role** — Monitoring Editor (`roles/monitoring.editor`) or Monitoring NotificationChannel Editor (`roles/monitoring.notificationChannelEditor`) on the project.</li>
</ul>

**2. Open the notification channels**

In the [Google Cloud console](https://console.cloud.google.com/monitoring/alerting), select the connected project, open the **Alerting** page, and click **Edit notification channels**.

![Alerting page in the Google Cloud console with the Edit notification channels button highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-edit-notification-channels.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=fe40073d1e1ab6cd19a228c66d846e96)

**3. Check the StackOne channel**

After you enable events, the **StackOne** channel appears in the **Webhooks** section. Leave it unchanged — StackOne manages it, and deleting it stops all deliveries.

![Notification channels page with the StackOne row highlighted in the Webhooks section and its Endpoint value hidden.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-stackone-channel.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=d09360b15c0ca2f689f51e7a32e6e984)

## Add the StackOne channel to your alerting policies

Repeat these steps for each alerting policy whose incidents StackOne should receive. A new policy created with `create_alert_policy` can instead list the channel's resource name (shown by `list_notification_channels`) in `notificationChannels`.

**1. Open the policy list**

On the **Alerting** page, click **See all policies** in the **Policies** pane.

![Alerting page with the See all policies link highlighted below the Policies table.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-see-all-policies.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=abe81519dbc0f823771a880fd3c5a120)

**2. Open the policy actions**

On the **Policies** page, click **View actions** (the three-dot menu) at the end of the policy's row.

![Policies page with the View actions three-dot button highlighted at the end of a policy row.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-policy-actions.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=19950ba3b7b7b3b72801c9c7b4099bd9)

**3. Edit the policy**

Select **Edit** from the menu.

![Policy actions menu open with the Edit item highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-policy-edit.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=5672f58a22914d0e495d50d32588731b)

**4. Open Notifications and name**

In the **Edit alerting policy** page, click **Notifications and name** under **ALERT DETAILS**.

![Edit alerting policy page with the Notifications and name step highlighted in the left-hand list.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-notifications-and-name.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=a1c09cbd978852cb46a53f0613c98522)

**5. Turn on notification channels**

Under **Configure notifications and finalize alert**, turn on **Use notification channel**.

![Configure notifications section with the Use notification channel switch highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-use-notification-channel.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=2b7d3371d7b3a0729b101c64f9087ed1)

**6. Select the StackOne channel**

Open **Notification Channels**, select **StackOne** under **Webhook with Token Authentication**, and click **OK**.

![Notification Channels dialog with the StackOne option selected and the OK button highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-select-stackone-channel.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=88de479b1fcdd630e7ab44d62b5195c5)

**7. Turn on alert closure notifications**

Keep **Notify on alert closure** selected so StackOne also receives **Incident Closed** events.

![Notification settings with StackOne shown in Notification Channels and the Notify on alert closure checkbox highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-notify-on-closure.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=b90adbe4eea209a62d9abb9e173b8714)

**8. Save the policy**

Click **Save Policy**.

![Bottom of the Edit alerting policy page with the Save Policy button highlighted.](https://mintcdn.com/stackone-60/_JfUXOJgIx3b4Upw/connectors/googlecloudobservability/images/events-save-policy.png?fit=max\&auto=format\&n=_JfUXOJgIx3b4Upw\&q=85\&s=3f19bb3645af552f0a4d866dc6f04074)

**9. Turn on reminders (optional)**

**Incident Renotify** events are sent only when a policy sets a renotify interval for the StackOne channel — `alertStrategy.notificationChannelStrategy` with the channel's resource name and a `renotifyInterval` between 30 minutes and 24 hours. Set it on the policy with the [Cloud Monitoring API](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies/patch), the gcloud CLI, or Terraform.

## Available webhook events

The following Google Cloud Observability events can be enabled. Only events selected in StackOne are delivered, and only for alerting policies that list the **StackOne** notification channel.

**1. Incident events**

Events fired when an alerting policy opens or closes an incident, plus the reminders Cloud Monitoring re-sends while an incident stays open. The incident id is the event ID for all of them.

<ul>
  <li>**Incident Opened** (`incident.opened`) — Fired when an alerting policy's condition is met and an incident opens (`state` is `open`). Log-based policies send only this event.</li>
  <li>**Incident Closed** (`incident.closed`) — Fired when the incident closes because the condition is no longer met, the autoclose duration elapsed, or a user closed it (`state` is `closed`). Requires **Notify on alert closure** on the policy.</li>
  <li>**Incident Renotify** (`incident.renotify`) — Fired when Cloud Monitoring re-sends a reminder for an incident that is still open (`renotify` is `true`). Requires a renotify interval on the policy.</li>
</ul>

**2. Other notifications**

A catch-all so no delivery is lost.

<ul>
  <li>**Other Notification** (`notification.other`) — Fired for an incident notification whose state is neither open nor closed.</li>
</ul>

## Delivery format

Details of how Cloud Monitoring delivers events to StackOne.

**1. JSON payloads**

Each delivery is an HTTP POST with one incident in Cloud Monitoring's webhook schema version 1.2 (`{"version": "1.2", "incident": {...}}`). `incident.incident_id` is the event ID and is shared by the opened, renotify and closed notifications of one incident; `started_at` and `ended_at` are epoch seconds. Generated text such as `summary` and `documentation.content` can change format without notice, so don't parse it.

**2. No signature**

Cloud Monitoring does not sign webhook deliveries. The account-specific callback URL StackOne registers on the channel identifies the connected account.

## Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.


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