-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsra-stream-param-schema.yaml
46 lines (46 loc) · 1.44 KB
/
sra-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
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: '^ch=[0-9]+$'
- pattern: '^ip=[0-9a-fA-F:\.]+(/[0-9]+)?$'
- pattern: '^dns=(\*\.|(\*\.)?[a-z0-9-\.]+)$'
- pattern: '^errors$'
properties:
channels:
type: array
items:
type: integer
minimum: 1
maximum: 255
minItems: 1
watches:
type: array
items:
$ref: "#/definitions/watch"
minItems: 1
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:
- channels
- watches