This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathopenapi.yaml
90 lines (90 loc) · 2.35 KB
/
openapi.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
openapi: 3.0.3
info:
version: 0.1.0
title: Vector Remap Language web server
description: |
An HTTP server for running Vector Remap Language (VRL) programs against observability events.
license: MPL-2.0
paths:
/resolve:
post:
summary: Run VRL program against an event
description: Compute the outcome of an observability event against against a VRL program
requestBody:
description: Program plus event
content:
application/json:
schema:
$ref: '#/components/schemas/Input'
responses:
'200':
description: Event and program successfully resolved
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
/functions:
get:
summary: Display VRL functions
description: |
Fetch a list of currently available VRL functions.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/FunctionList'
components:
schemas:
Error:
description: Failed resolution
type: object
properties:
error:
schema:
type: string
required:
- error
Event:
description: The input observability event (as a JSON object)
type: object
FunctionList:
description: The listing of available VRL functions
type: array
items:
type: string
Program:
description: The VRL program to run against the supplied event
type: string
Input:
description: The full payload (Vector event plus VRL program) to resolve
type: object
properties:
event:
schema:
$ref: '#/components/schemas/Event'
program:
schema:
$ref: '#/components/schemas/Program'
required:
- event
- program
Result:
description: Event plus program resolution result
oneOf:
- $ref: '#/components/schemas/Error'
- $ref: '#/components/schemas/Success'
Success:
description: Successful resolution
type: object
properties:
output:
schema:
type: string
result:
schema:
type: object
required:
- output
- result