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

# Google Vertex AI

### Steps to enable Web-hook

1. Create a webhook-based notification channel in the monitoring section.
2. This can be done through `Monitoring` -> `Alerting` -> `Edit Notification Channels` -> `Add Webhook `
3. `Make sure to check the Use HTTP Basic Auth Option.`

<img src="https://mintcdn.com/inferless-68/QJ9zE2jx7w8an0q6/images/google-vertex1.png?fit=max&auto=format&n=QJ9zE2jx7w8an0q6&q=85&s=4094501cc90b0db3aab62b34e0b763b9" alt="" width="3024" height="1376" data-path="images/google-vertex1.png" />

2. Enable Audit logs in GCP for AI Platform.
3. This can be done through `IAM and Admin Section` -> `Audit Logs menu` -> `Filter for vertex AI.`

<img src="https://mintcdn.com/inferless-68/QJ9zE2jx7w8an0q6/images/google-vertex2.png?fit=max&auto=format&n=QJ9zE2jx7w8an0q6&q=85&s=4d4228d996bdcad93a5af7bb4c809c83" alt="" width="2988" height="1116" data-path="images/google-vertex2.png" />

3. In the`"logs explorer"`search for the query mentioned below and then click on the `create alert` button.

```
resource.type="audited_resource" severity=NOTICE
resource.labels.service="aiplatform.googleapis.com"
resource.labels.method="google.cloud.aiplatform.ui.ModelService.UploadModel"
```

<img src="https://mintcdn.com/inferless-68/QJ9zE2jx7w8an0q6/images/google-vertex3.png?fit=max&auto=format&n=QJ9zE2jx7w8an0q6&q=85&s=b70cb059e7852f88899820b9bf9b5f84" alt="" width="3024" height="1518" data-path="images/google-vertex3.png" />

4. Create the alert using the webhook channel we created above.
5. Click on "Create Log-based alert policy and select the webhook created.

<img src="https://mintcdn.com/inferless-68/QJ9zE2jx7w8an0q6/images/google-vertex4.png?fit=max&auto=format&n=QJ9zE2jx7w8an0q6&q=85&s=32b0cef09247a9ac3fbbf78eabd5c450" alt="" width="3024" height="1674" data-path="images/google-vertex4.png" />

* Enter this webhook in as the Webhook URL as part of the Model Import process.

* Inferless would start listening to events and auto-build new versions accordingly.

You can view a sample video example below:
