forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatsSchema.php
More file actions
24 lines (21 loc) · 1.01 KB
/
StatsSchema.php
File metadata and controls
24 lines (21 loc) · 1.01 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
<?php
namespace App\OpenApi\Schemas;
use OpenApi\Attributes as OA;
#[OA\Schema(
schema: 'Stats',
type: 'object',
description: 'Aggregated speedtest statistics',
properties: [
new OA\Property(property: 'total_results', type: 'integer'),
new OA\Property(property: 'avg_ping', type: 'number', format: 'float'),
new OA\Property(property: 'avg_download', type: 'number', format: 'float'),
new OA\Property(property: 'avg_upload', type: 'number', format: 'float'),
new OA\Property(property: 'min_ping', type: 'number', format: 'float'),
new OA\Property(property: 'min_download', type: 'number', format: 'float'),
new OA\Property(property: 'min_upload', type: 'number', format: 'float'),
new OA\Property(property: 'max_ping', type: 'number', format: 'float'),
new OA\Property(property: 'max_download', type: 'number', format: 'float'),
new OA\Property(property: 'max_upload', type: 'number', format: 'float'),
]
)]
class StatsSchema {}