mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-13 12:08:47 +00:00
4.2 KiB
4.2 KiB
ChangeEvent
This schema defines webhook for receiving events from OpenMetadata.
$id: https://open-metadata.org/schema/entity/events/webhook.json
Type: object
This schema does not accept additional properties.
Properties
- id
required
- Unique ID associated with a webhook subscription.
- $ref: ../../type/basic.json#/definitions/uuid
- name
required
- Unique name of the application receiving webhook events.
- Type:
string
- Length: between 1 and 128
- description
- Description of the application.
- Type:
string
- endpoint
- Endpoint to receive the webhook events over POST requests.
- Type:
string
- String format must be a "uri"
- eventFilters
- Endpoint to receive the webhook events over POST requests.
- Type:
array
- batchSize
- Maximum number of events sent in a batch (Default 10).
- Type:
integer
- Default:
10
- timeout
- Connection timeout in seconds. (Default 10s).
- Type:
integer
- Default:
10
- enabled
- When set to
true
, the webhook event notification is enabled. Set it tofalse
to disable the subscription. (Defaulttrue
). - Type:
boolean
- Default: true
- When set to
- secretKey
- Secret set by the webhook client used for computing HMAC SHA256 signature of webhook payload and sent in
X-OM-Signature
header in POST requests to publish the events. - Type:
string
- Secret set by the webhook client used for computing HMAC SHA256 signature of webhook payload and sent in
- version
- Metadata version of the entity.
- $ref: ../../type/entityHistory.json#/definitions/entityVersion
- updatedAt
- Last update time corresponding to the new version of the entity in Unix epoch time milliseconds.
- $ref: ../../type/basic.json#/definitions/timestamp
- updatedBy
- User who made the update.
- Type:
string
- status
- Status is
notStarted
, when webhook was created withenabled
set to false and it never started publishing events. Status isstarted
when webhook is normally functioning and 200 OK response was received for callback notification. Status isfailed
on bad callback URL, connection failures,1xx
, and3xx
response was received for callback notification. Status isawaitingRetry
when previous attempt at callback timed out or received4xx
,5xx
response. Status isretryLimitReached
after all retries fail. - Type:
string
- The value is restricted to the following:
- "notStarted"
- "started"
- "failed"
- "awaitingRetry"
- "retryLimitReached"
- Status is
- failureDetails
- Failure details are set only when
status
is notsuccess
. - Type:
object
- This schema does not accept additional properties.
- Properties
- lastSuccessfulAt
- Last non-successful callback time in UNIX UTC epoch time in milliseconds.
- $ref: ../../type/basic.json#/definitions/timestamp
- lastFailedAt
- Last non-successful callback time in UNIX UTC epoch time in milliseconds.
- $ref: ../../type/basic.json#/definitions/timestamp
- lastFailedStatusCode
- Last non-successful activity response code received during callback.
- Type:
integer
- lastFailedReason
- Last non-successful activity response reason received during callback.
- Type:
string
- nextAttempt
- Next retry will be done at this time in Unix epoch time milliseconds. Only valid is
status
isawaitingRetry
. - $ref: ../../type/basic.json#/definitions/timestamp
- Next retry will be done at this time in Unix epoch time milliseconds. Only valid is
- lastSuccessfulAt
- Failure details are set only when
- href
- Link to this webhook resource.
- $ref: ../../type/basic.json#/definitions/href
- changeDescription
- Change that lead to this version of the entity.
- $ref: ../../type/entityHistory.json#/definitions/changeDescription
- deleted
- When
true
indicates the entity has been soft deleted. - Type:
boolean
- Default: false
- When
This document was updated on: Monday, March 7, 2022