# Webhook

> **Package : spaceone.api.monitoring.plugin**

## Webhook

{% hint style="info" %}
**Webhook Methods:**
{% endhint %}

| NO | Method                | Request Type                                              | Response Type                                                                                                    | Description |
| -- | --------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------- |
| 1  | [**init**](#init)     | [WebhookInitRequest](#webhookinitrequest)                 | [WebhookPluginInfo](#webhookplugininfo)                                                                          |             |
| 2  | [**verify**](#verify) | [WebhookPluginVerifyRequest](#webhookpluginverifyrequest) | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |             |

### init

| Type     | Message                                   |
| -------- | ----------------------------------------- |
| Request  | [WebhookInitRequest](#webhookinitrequest) |
| Response | [WebhookPluginInfo](#webhookplugininfo)   |

### verify

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [WebhookPluginVerifyRequest](#webhookpluginverifyrequest)                                                        |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

## Message

### WebhookInitRequest

| No | Field   | Type                                                                                                               | Required | Description |
| -- | ------- | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| 1  | options | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |

### WebhookPluginInfo

| No | Field    | Type                                                                                                               | Description |
| -- | -------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| 1  | metadata | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |

### WebhookPluginVerifyRequest

| No | Field   | Type                                                                                                               | Required | Description |
| -- | ------- | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| 1  | options | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✅    |             |
