make http return code for mismatched rules configurable

Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
This commit is contained in:
Mathias Merscher 2017-02-10 12:32:11 +01:00
parent 8226d5e50f
commit ddb1f2441a
4 changed files with 20 additions and 1 deletions

View file

@ -300,6 +300,7 @@ type Hook struct {
PassArgumentsToCommand []Argument `json:"pass-arguments-to-command,omitempty"`
JSONStringParameters []Argument `json:"parse-parameters-as-json,omitempty"`
TriggerRule *Rules `json:"trigger-rule,omitempty"`
TriggerRuleMismatchCode int `json:"trigger-rule-mismatch-code,omitempty"`
}
// ParseJSONParameters decodes specified arguments to JSON objects and replaces the