Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

KeyValueNotes
flags<array of strings>

Possible flags:

  • "periodic"
  • "only_first"
thresholds<array of thresholds>Threshold objects are defined in the table below.

Thresholds

The following defines a threshold object:

KeyValueNotes
oxs_type<string>

Possible OXS types:

  • "byte_count"
  • "duration" (seconds)
  • "flow_count"
  • "idle_time" (seconds)
  • "packet_count"
value<number>Can be hexadecimal (with leading 0x) or decimal.

Example Stat Trigger Instruction

An example instruction_stat_type value might look like this:

Code Block
{
	"flags" : [
		"periodic"
	],
	"thresholds" : [
		{
			"oxs_type" : "byte_count",
			"value" : "1000"
		},
		{
			"oxs_type" : "duration",
			"value" : "60"
		}
	]
}

...