Skip to main content

model_web_hooks

Operations on a model_web_hooks resource.

Overview

Namemodel_web_hooks
TypeResource
Iddatabricks_workspace.machinelearning.model_web_hooks

Fields

NameDatatype
idstring
descriptionstring
creation_timestampinteger
eventsarray
http_url_specobject
last_updated_timestampinteger
model_namestring
statusstring

Methods

NameAccessible byRequired ParamsDescription
listwebhooksSELECTdeployment_nameThis endpoint is in Public Preview.
createwebhookINSERTdeployment_name: This endpoint is in Public Preview.
deletewebhookDELETEdeployment_nameThis endpoint is in Public Preview.
updatewebhookUPDATEdeployment_nameThis endpoint is in Public Preview.
testregistrywebhookEXECdeployment_nameThis endpoint is in Public Preview.

SELECT examples

SELECT
id,
description,
creation_timestamp,
events,
http_url_spec,
last_updated_timestamp,
model_name,
status
FROM databricks_workspace.machinelearning.model_web_hooks
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new model_web_hooks resource.

/*+ create */
INSERT INTO databricks_workspace.machinelearning.model_web_hooks (
deployment_name,
data__job_spec,
data__http_url_spec,
data__events,
data__model_name,
data__description,
data__status
)
SELECT
'{{ deployment_name }}',
'{{ job_spec }}',
'{{ http_url_spec }}',
'{{ events }}',
'{{ model_name }}',
'{{ description }}',
'{{ status }}'
;

UPDATE example

Updates a model_web_hooks resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.machinelearning.model_web_hooks
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a model_web_hooks resource.

/*+ delete */
DELETE FROM databricks_workspace.machinelearning.model_web_hooks
WHERE deployment_name = '{{ deployment_name }}';