mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
16 lines
407 B
JavaScript
16 lines
407 B
JavaScript
'use strict';
|
|
|
|
const joi = require('joi');
|
|
|
|
const clientMetricsSchema = joi.object().options({ stripUnknown: true }).keys({
|
|
appName: joi.string().required(),
|
|
instanceId: joi.string().required(),
|
|
bucket: joi.object().required().keys({
|
|
start: joi.date().required(),
|
|
stop: joi.date().required(),
|
|
toggles: joi.object(),
|
|
}),
|
|
});
|
|
|
|
module.exports = { clientMetricsSchema };
|