Pattern type
Note: Types are just Scala classes that translates on JSON directly, for example, for class
case class Buzz(x: Int, y: Map[String, String])valid JSON representation could be:{ "x": 120, "y": {"a": 1} }. AlsoOptiontypes represent optional parameters.
Starting from version 0.16:
All fields are required.
id(integer) - the ID of the pattern.sourceCode(string) - the pattern itself, written in TSPL.subunit(integer) - a sub-category ID for the pattern.
Version 0.15 and earlier:
All fields are required.
id(string) - the ID of the pattern.sourceCode(string) - the pattern itself, written in TSPL.payload(JSON object) - additional info for a pattern (in version 0.15, sub-unit should be included as value ofsubunitkey).forwardedFields(JSON object) - fields of an incident which should be stored in the sink as additional context.