-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrad-stream-param-schema.yaml
49 lines (49 loc) · 1.73 KB
/
rad-stream-param-schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
id: http://farsightsecurity.com/axamd-stream-param-schema#
$schema: http://json-schema.org/draft-04/schema#
title: axamd stream parameter
description: parameters for axamd's /v1/sra/stream API call
type: object
definitions:
watch:
type: string
oneOf:
- pattern: '^ip=[0-9a-fA-F:\.]+(/[0-9]+)?$'
- pattern: '^dns=(\*\.|(\*\.)?[a-z0-9-\.]+)$'
- pattern: '^errors$'
properties:
anomalies:
type: array
items:
type: object
properties:
module:
type: string
watches:
type: array
items:
$ref: "#/definitions/watch"
minItems: 1
options:
type: string
required:
- module
- watches
sample_rate:
type: number
maximum: 1
minimum: 0
exclusiveMinimum: true
rate_limit:
type: integer
maximum: 1000000000
report_interval:
type: integer
minimum: 10
output_format:
type: string
oneOf:
- pattern: '^axa\+json$'
- pattern: '^nmsg\+json$'
- pattern: '^nmsg\+binary$'
required:
- anomalies