Joi.object().keys({ dimension: id, member: id, operator: Joi.valid(operators).required(), values: Joi.array().items(Joi.string().allow('', null), Joi.lazy(() => oneFilter)) }).xor('dimension', 'member')
member: Joi.func().required(), operator: Joi.any().valid('contains', 'notContains', 'equals', 'set', 'notSet', 'gt', 'gte', 'lt', 'lte'), params: Joi.array().items(Joi.string().allow('').optional()) })), timeDimension: Joi.object().keys({
/** * Get the Trigger configuration schema. * @returns {*} */ getConfigurationSchema() { return this.joi.object().keys({ brokers: this.joi.string().required(), topic: this.joi.string().default('wud-image'), clientId: this.joi.string().default('wud'), ssl: this.joi.boolean().default(false), authentication: this.joi.object({ type: this.joi.string() .allow('PLAIN') .allow('SCRAM-SHA-256') .allow('SCRAM-SHA-512') .default('PLAIN'), user: this.joi.string().required(), password: this.joi.string().required(), }), }); }