[APM] set max limit back to 500 (#131160)

This commit is contained in:
Miriam 2022-04-29 15:43:26 +02:00 committed by GitHub
parent 9d15ab1ec2
commit 6bc515fb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
export const APM_SERVICE_GROUP_SAVED_OBJECT_TYPE = 'apm-service-group';
export const SERVICE_GROUP_COLOR_DEFAULT = '#D1DAE7';
export const MAX_NUMBER_OF_SERVICES_IN_GROUP = 500;
export const MAX_NUMBER_OF_SERVICE_GROUPS = 500;
export interface ServiceGroup {
groupName: string;

View file

@ -10,7 +10,7 @@ import {
ServiceGroup,
SavedServiceGroup,
APM_SERVICE_GROUP_SAVED_OBJECT_TYPE,
MAX_NUMBER_OF_SERVICES_IN_GROUP,
MAX_NUMBER_OF_SERVICE_GROUPS,
} from '../../../common/service_groups';
export async function getServiceGroups({
@ -21,7 +21,7 @@ export async function getServiceGroups({
const result = await savedObjectsClient.find<ServiceGroup>({
type: APM_SERVICE_GROUP_SAVED_OBJECT_TYPE,
page: 1,
perPage: MAX_NUMBER_OF_SERVICES_IN_GROUP,
perPage: MAX_NUMBER_OF_SERVICE_GROUPS,
});
return result.saved_objects.map(
({ id, attributes, updated_at: upatedAt }) => ({

View file

@ -14,7 +14,7 @@ import {
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { Setup } from '../../lib/helpers/setup_request';
import { MAX_NUMBER_OF_SERVICES_IN_GROUP } from '../../../common/service_groups';
import { MAX_NUMBER_OF_SERVICE_GROUPS } from '../../../common/service_groups';
export async function lookupServices({
setup,
@ -49,7 +49,7 @@ export async function lookupServices({
services: {
terms: {
field: SERVICE_NAME,
size: MAX_NUMBER_OF_SERVICES_IN_GROUP,
size: MAX_NUMBER_OF_SERVICE_GROUPS,
},
aggs: {
environments: {

View file

@ -126,7 +126,7 @@ Array [
},
"terms": Object {
"field": "service.name",
"size": 50,
"size": 500,
},
},
},
@ -186,7 +186,7 @@ Array [
},
"terms": Object {
"field": "service.name",
"size": 50,
"size": 500,
},
},
},

View file

@ -16,7 +16,7 @@ import { ServiceGroup } from '../../../../common/service_groups';
export type ServicesItemsSetup = Setup;
const MAX_NUMBER_OF_SERVICES = 50;
const MAX_NUMBER_OF_SERVICES = 500;
export async function getServicesItems({
environment,