* updated scheduled query activation toggle text and interval header in query group * added id validation for schedule queries * fixed up agent resolution to ignore inactive agents, and properly pull all agents * nixed unused file * more validation for query fields * added status table to the results data tab, added more validation * updated wording * added error notifications for failed queries * pr feedback and cleanup * fix up last hook * use the pluralize macro, removed rbac tags Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
17 lines
668 B
TypeScript
17 lines
668 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
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { i18n } from '@kbn/i18n';
|
|
|
|
import { ValidationFunc, fieldValidators } from '../shared_imports';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export const queryFieldValidation: ValidationFunc<any, string, string> = fieldValidators.emptyField(
|
|
i18n.translate('xpack.osquery.scheduledQueryGroup.queryFlyoutForm.emptyQueryError', {
|
|
defaultMessage: 'Query is a required field',
|
|
})
|
|
);
|