mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[APM] set max limit back to 500 (#131160)
This commit is contained in:
parent
9d15ab1ec2
commit
6bc515fb64
5 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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 }) => ({
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue