Navigate to Webhook Configuration
- Click "Webhook Configuration" under the Admin section.
Configure the Webhook
As there is no webhook registered , No Records found is displayed
To configure the webhook, click Add button on the top right corner.
Enter the details of the webhook
- Webhook Name: Input a name for the webhook, which needs to be configured.
- Select Tool: Input the tool name whose webhook needs to be configured.
- Label Name: This label name will be auto populated as soon as the user selects the tool. It should follow the nomenclature of ToolCategory:LabelName:DATA.
- Data Format: The data format which is supported, is JSON.
- MQ Channel : This field gets auto populated as soon as the webhook name is entered with a prefix “IPW_”
- Response Template: The response template has to be added should be in string format.
Sample Response Template:
repository.name=reponame,
head_commit.id=commitId,
head_commit.message=message,
head_commit.timestamp=commitTime,
head_commit.author.name=authorName
For the response of the webhook data, please check Annexure 1.
- Insights TimeX : This has three fields namely -
- Time Field : This has to be last value from key-pair of response template.
- Epoch Time : If the time field is in epoch format mark the toggle as true.
- Time Format : If the time field is not in epoch format, then time format has to be given.
Sample Time Format - Time2020-03-02T05:48:48Z yyyy-MM-dd'T'HH:mm:ss'Z'
- Add Time Fields : This is optional field, in case you want to add more time fields and time format. The time fields included are by default not in epoch, so time format needs to be mentioned.
- Data Enrichment : This includes-
- Source property
- Key pattern
- Target property
Note: To use Derived Configuration (Insights Timex, Time Fields, Data Enrichment), please delete webhook created before 13/03/2020, and configure new.