21 lines
800 B
TypeScript
21 lines
800 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { schema, TypeOf } from '@kbn/config-schema';
|
|
import { validateDurationSchema } from './lib';
|
|
|
|
export const configSchema = schema.object({
|
|
healthCheck: schema.object({
|
|
interval: schema.string({ validate: validateDurationSchema, defaultValue: '60m' }),
|
|
}),
|
|
invalidateApiKeysTask: schema.object({
|
|
interval: schema.string({ validate: validateDurationSchema, defaultValue: '5m' }),
|
|
removalDelay: schema.string({ validate: validateDurationSchema, defaultValue: '1h' }),
|
|
}),
|
|
});
|
|
|
|
export type AlertsConfig = TypeOf<typeof configSchema>;
|