-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:elastic/kibana into feature-inges…
…t-datasource-support-yaml-values
- Loading branch information
Showing
40 changed files
with
1,310 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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 } from '@kbn/config-schema'; | ||
|
||
/** | ||
* Used to validate GET requests for a complete resolver tree. | ||
*/ | ||
export const validateTree = { | ||
params: schema.object({ id: schema.string() }), | ||
query: schema.object({ | ||
children: schema.number({ defaultValue: 10, min: 0, max: 100 }), | ||
generations: schema.number({ defaultValue: 3, min: 0, max: 3 }), | ||
ancestors: schema.number({ defaultValue: 3, min: 0, max: 5 }), | ||
events: schema.number({ defaultValue: 100, min: 0, max: 1000 }), | ||
afterEvent: schema.maybe(schema.string()), | ||
afterChild: schema.maybe(schema.string()), | ||
legacyEndpointID: schema.maybe(schema.string()), | ||
}), | ||
}; | ||
|
||
/** | ||
* Used to validate GET requests for non process events for a specific event. | ||
*/ | ||
export const validateEvents = { | ||
params: schema.object({ id: schema.string() }), | ||
query: schema.object({ | ||
events: schema.number({ defaultValue: 100, min: 1, max: 1000 }), | ||
afterEvent: schema.maybe(schema.string()), | ||
legacyEndpointID: schema.maybe(schema.string()), | ||
}), | ||
}; | ||
|
||
/** | ||
* Used to validate GET requests for the ancestors of a process event. | ||
*/ | ||
export const validateAncestry = { | ||
params: schema.object({ id: schema.string() }), | ||
query: schema.object({ | ||
ancestors: schema.number({ defaultValue: 0, min: 0, max: 10 }), | ||
legacyEndpointID: schema.maybe(schema.string()), | ||
}), | ||
}; | ||
|
||
/** | ||
* Used to validate GET requests for children of a specified process event. | ||
*/ | ||
export const validateChildren = { | ||
params: schema.object({ id: schema.string() }), | ||
query: schema.object({ | ||
children: schema.number({ defaultValue: 10, min: 10, max: 100 }), | ||
generations: schema.number({ defaultValue: 3, min: 0, max: 3 }), | ||
afterChild: schema.maybe(schema.string()), | ||
legacyEndpointID: schema.maybe(schema.string()), | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.