mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
30 lines
988 B
TypeScript
30 lines
988 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const telemetrySettingsSchema = {
|
||
|
$id: '#/components/schemas/telemetrySettingsSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
required: ['versionInfoCollectionEnabled', 'featureInfoCollectionEnabled'],
|
||
|
description:
|
||
|
'Contains information about which settings are configured for version info collection and feature usage collection.',
|
||
|
properties: {
|
||
|
versionInfoCollectionEnabled: {
|
||
|
type: 'boolean',
|
||
|
description:
|
||
|
'Whether collection of version info is enabled/active.',
|
||
|
example: true,
|
||
|
},
|
||
|
featureInfoCollectionEnabled: {
|
||
|
type: 'boolean',
|
||
|
description:
|
||
|
'Whether collection of feature usage metrics is enabled/active.',
|
||
|
example: true,
|
||
|
},
|
||
|
},
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type TelemetrySettingsSchema = FromSchema<
|
||
|
typeof telemetrySettingsSchema
|
||
|
>;
|