-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhttp_openapi.yaml
More file actions
102 lines (100 loc) · 2.3 KB
/
http_openapi.yaml
File metadata and controls
102 lines (100 loc) · 2.3 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
openapi: "3.0.0"
info:
version: "3.0.0"
title: "Diagox API"
servers:
- url: http://localhost:6060/api/v1
- url: /api/v1
paths:
/history:
get:
parameters:
- name: date_from
in: query
required: false
schema:
type: string
- name: date_to
in: query
required: false
schema:
type: string
- name: query
in: query
required: false
schema:
type: string
description: Read CDR history
responses:
200:
description: OK
content:
"application/json":
schema:
$ref: '#/components/schemas/CDR'
400:
description: Bad request
500:
description: Internal server error
components:
schemas:
CDR:
type: object
properties:
callId:
type: string
startTime:
type: string
format: date-time
duration:
type: number
format: float
description: Duration in seconds
callerId:
type: string
calleeId:
type: string
bill:
type: number
format: float
disposition:
type: string
inMediaStats:
$ref: '#/components/schemas/DialogMediaStats'
outMediaStats:
$ref: '#/components/schemas/DialogMediaStats'
mes:
type: number
format: float
description: Media Experience Score
recordingId:
type: string
startTimeFormatted:
type: string
DialogMediaStats:
type: object
properties:
rttMax:
type: number
format: float
description: RTT max in seconds
rttMin:
type: number
format: float
description: RTT min in seconds
packetsReadCount:
type: integer
format: uint64
packetsWriteCount:
type: integer
format: uint64
packetsReadLost:
type: integer
format: uint32
packetsWriteLost:
type: integer
format: uint32
maxJitter:
type: number
format: float
description: Max jitter in seconds