UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

54 lines 1.82 kB
import { featureEnvironmentMetricsSchema } from './feature-environment-metrics-schema.js'; import { dateSchema } from './date-schema.js'; export const featureUsageSchema = { $id: '#/components/schemas/featureUsageSchema', type: 'object', additionalProperties: false, description: 'How many applications have seen this feature flag, as well as how this feature was evaluated the last hour', required: [ 'version', 'maturity', 'featureName', 'lastHourUsage', 'seenApplications', ], properties: { version: { description: 'The version of this schema', type: 'integer', minimum: 1, }, maturity: { description: 'The maturity level of this API (alpha, beta, stable, deprecated)', type: 'string', example: 'stable', }, featureName: { description: 'The name of the feature', type: 'string', example: 'my.special.feature', }, lastHourUsage: { description: 'Last hour statistics. Accumulated per feature per environment. Contains counts for evaluations to true (yes) and to false (no)', type: 'array', items: { $ref: '#/components/schemas/featureEnvironmentMetricsSchema', }, }, seenApplications: { description: 'A list of applications seen using this feature', type: 'array', items: { type: 'string', }, example: ['accounting', 'billing', 'booking'], }, }, components: { schemas: { featureEnvironmentMetricsSchema, dateSchema, }, }, }; //# sourceMappingURL=feature-usage-schema.js.map