Webhook plug-in structure
- Configuring a Webhook event source
- An event source that receives WebhookEevent type events can be configured in
three different ways:
- GenericHMAC
- When configuring a Generic HMAC type event source, you need to
specify the following parameters:
- Secret
-
- Type: string
- Required
- Algorithm
-
- Type: string
- Required
- HeaderName
-
- Type: string
- Required
- IPNetMask
-
- Type: list
- Generic
- When configuring a Generic type event source you can specify:
- IPNetMask
-
- Type: list
- Github
- When configuring a Github type event source, you need to specify the
following mandatory parameter:
- Secret
-
- Type: string
- Required
- IPNetMask
-
- Type: list
- Webhook event condition
- WebhookEvent type event conditions can be configured in job streams specifying
the following required properties:
- Name
- Type
- Event source
- Method
- Type: string
- Operator:
EQ("=")
orNE("!=")
- Multiple filters
- Values: you can choose one or more:
POST
GET
DELETE
PUT
OPTIONS
HEAD
CONNECT
PATCH
TRACE
- Headers
- Type: map
- Operator:
KEY_VALUE("keyvalue")
- Wildcard allowed
- Values: {HeaderName[,Headervalue]}
- Parameters
- Type: map
- Operator:
KEY_VALUE("keyvalue")
- Wildcard allowed
- Values: {ParamName[,Paramvalue]}
- ContentType
- Type: string
- Operator:
EQ("=")
orNE("!=")
- Wildcard allowed
- Values: application/json
- Body
- Type: json
- Operator:
JSONATA("jsonata")
- Single predicate
- Values: jsonataExpression