mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -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;
|
internalESClient: APMInternalESClient;
|
||||||
}) {
|
}) {
|
||||||
const params: APMIndexDocumentParams<AgentConfiguration> = {
|
const params: APMIndexDocumentParams<AgentConfiguration> = {
|
||||||
refresh: true,
|
refresh: 'wait_for' as const,
|
||||||
index: APM_AGENT_CONFIGURATION_INDEX,
|
index: APM_AGENT_CONFIGURATION_INDEX,
|
||||||
body: {
|
body: {
|
||||||
agent_name: configurationIntake.agent_name,
|
agent_name: configurationIntake.agent_name,
|
||||||
|
|
|
@ -41,7 +41,7 @@ describe('Create or Update Custom link', () => {
|
||||||
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
||||||
'create_or_update_custom_link',
|
'create_or_update_custom_link',
|
||||||
{
|
{
|
||||||
refresh: true,
|
refresh: 'wait_for',
|
||||||
index: '.apm-custom-link',
|
index: '.apm-custom-link',
|
||||||
body: {
|
body: {
|
||||||
'@timestamp': 1570737000000,
|
'@timestamp': 1570737000000,
|
||||||
|
@ -62,7 +62,7 @@ describe('Create or Update Custom link', () => {
|
||||||
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
expect(internalClientIndexMock).toHaveBeenCalledWith(
|
||||||
'create_or_update_custom_link',
|
'create_or_update_custom_link',
|
||||||
{
|
{
|
||||||
refresh: true,
|
refresh: 'wait_for',
|
||||||
index: '.apm-custom-link',
|
index: '.apm-custom-link',
|
||||||
id: 'bar',
|
id: 'bar',
|
||||||
body: {
|
body: {
|
||||||
|
|
|
@ -26,7 +26,7 @@ export function createOrUpdateCustomLink({
|
||||||
internalESClient: APMInternalESClient;
|
internalESClient: APMInternalESClient;
|
||||||
}) {
|
}) {
|
||||||
const params: APMIndexDocumentParams<CustomLinkES> = {
|
const params: APMIndexDocumentParams<CustomLinkES> = {
|
||||||
refresh: true,
|
refresh: 'wait_for' as const,
|
||||||
index: APM_CUSTOM_LINK_INDEX,
|
index: APM_CUSTOM_LINK_INDEX,
|
||||||
body: {
|
body: {
|
||||||
'@timestamp': Date.now(),
|
'@timestamp': Date.now(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue