2022-12-12 14:05:56 +01:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
import { requestsPerSecondSchema } from './requests-per-second-schema';
|
|
|
|
export const requestsPerSecondSegmentedSchema = {
|
|
|
|
$id: '#/components/schemas/requestsPerSecondSegmentedSchema',
|
|
|
|
type: 'object',
|
2023-07-10 10:18:08 +02:00
|
|
|
description: 'Get usage metrics separated by client and admin paths',
|
2022-12-12 14:05:56 +01:00
|
|
|
properties: {
|
|
|
|
clientMetrics: {
|
|
|
|
$ref: '#/components/schemas/requestsPerSecondSchema',
|
|
|
|
},
|
|
|
|
adminMetrics: {
|
|
|
|
$ref: '#/components/schemas/requestsPerSecondSchema',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
schemas: {
|
|
|
|
requestsPerSecondSchema,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type RequestsPerSecondSegmentedSchema = FromSchema<
|
|
|
|
typeof requestsPerSecondSegmentedSchema
|
|
|
|
>;
|