-
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.
[Stack monitoring] adapt ES queries to updated document structure (#1…
…21641) * adapt ES queries to updated document structure * lint * Revert "lint" This reverts commit 2ad61e4. * Revert "adapt ES queries to updated document structure" This reverts commit 25d4357. * fix cluster state property accesses * only query index_recovery with ecs compliant indices * lint * setup/teardown to support datastreams * lint * update _mb archived data to target .monitoring index * load archive with useCreate for datastream compatibility * Revert "update _mb archived data to target .monitoring index" This reverts commit 7bad361. * ignore non-elasticsearch archived documents * Revert "ignore non-elasticsearch archived documents" This reverts commit 26daeb7. * use correct index for archived documents * add datastream lifecycle helper for api-integration tests * use datastream lifecycle methods * transform ccr_mb archive * clean up datastreams * lint * load _mb data Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
fb18ddb
commit 3dcfdef
Showing
29 changed files
with
117 additions
and
93,914 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
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
33 changes: 33 additions & 0 deletions
33
x-pack/test/api_integration/apis/monitoring/data_stream.js
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,33 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export const getLifecycleMethods = (getService) => { | ||
const esArchiver = getService('esArchiver'); | ||
const client = getService('es'); | ||
|
||
const deleteDataStream = async (index) => { | ||
await client.transport.request( | ||
{ | ||
method: 'DELETE', | ||
path: `_data_stream/${index}`, | ||
}, | ||
{ | ||
ignore: [404], | ||
} | ||
); | ||
}; | ||
|
||
return { | ||
async setup(archive) { | ||
await esArchiver.load(archive, { useCreate: true }); | ||
}, | ||
|
||
async tearDown() { | ||
await deleteDataStream('.monitoring-*'); | ||
}, | ||
}; | ||
}; |
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
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.