mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[APM] Remove usage of refresh=true in agent configuration and custom links (#161346)
Closes https://github.com/elastic/kibana/issues/158135
This commit is contained in:
parent
b06fb1a109
commit
106bb331e0
3 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ export function createOrUpdateConfiguration({
|
|||
internalESClient: APMInternalESClient;
|
||||
}) {
|
||||
const params: APMIndexDocumentParams<AgentConfiguration> = {
|
||||
refresh: true,
|
||||
refresh: 'wait_for' as const,
|
||||
index: APM_AGENT_CONFIGURATION_INDEX,
|
||||
body: {
|
||||
agent_name: configurationIntake.agent_name,
|
||||
|
|
|
@ -41,7 +41,7 @@ describe('Create or Update Custom link', () => {
|
|||
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
||||
'create_or_update_custom_link',
|
||||
{
|
||||
refresh: true,
|
||||
refresh: 'wait_for',
|
||||
index: '.apm-custom-link',
|
||||
body: {
|
||||
'@timestamp': 1570737000000,
|
||||
|
@ -62,7 +62,7 @@ describe('Create or Update Custom link', () => {
|
|||
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
||||
'create_or_update_custom_link',
|
||||
{
|
||||
refresh: true,
|
||||
refresh: 'wait_for',
|
||||
index: '.apm-custom-link',
|
||||
id: 'bar',
|
||||
body: {
|
||||
|
|
|
@ -26,7 +26,7 @@ export function createOrUpdateCustomLink({
|
|||
internalESClient: APMInternalESClient;
|
||||
}) {
|
||||
const params: APMIndexDocumentParams<CustomLinkES> = {
|
||||
refresh: true,
|
||||
refresh: 'wait_for' as const,
|
||||
index: APM_CUSTOM_LINK_INDEX,
|
||||
body: {
|
||||
'@timestamp': Date.now(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue