1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/requests-per-second-segmented-schema.ts

24 lines
695 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
import { requestsPerSecondSchema } from './requests-per-second-schema';
export const requestsPerSecondSegmentedSchema = {
$id: '#/components/schemas/requestsPerSecondSegmentedSchema',
type: 'object',
properties: {
clientMetrics: {
$ref: '#/components/schemas/requestsPerSecondSchema',
},
adminMetrics: {
$ref: '#/components/schemas/requestsPerSecondSchema',
},
},
components: {
schemas: {
requestsPerSecondSchema,
},
},
} as const;
export type RequestsPerSecondSegmentedSchema = FromSchema<
typeof requestsPerSecondSegmentedSchema
>;