Skip to content

Commit

Permalink
add fields to the requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiriamAparicio committed Oct 5, 2022
1 parent 2c6f91c commit 9eddf10
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import { APMRouteHandlerResources } from '../../../../routes/typings';
import { getInfraMetricIndices } from '../../get_infra_metric_indices';

type InfraMetricsSearchParams = Omit<ESSearchRequest, 'index'> & {
body: {
size: number;
track_total_hits: boolean | number;
};
size: number;
track_total_hits: boolean | number;
};

export type InfraMetricsClient = ReturnType<typeof createInfraMetricsClient>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function getContainerHostNames({

const response = await infraMetricsClient.search({
size: 0,
track_total_hits: false,
query: {
bool: {
filter: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const getServiceInstanceContainerMetadata = async ({

const response = await infraMetricsClient.search({
size: 1,
track_total_hits: false,
query: {
bool: {
filter: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const getServiceOverviewContainerMetadata = async ({

const response = await infraMetricsClient.search({
size: 0,
track_total_hits: false,
query: {
bool: {
filter: [
Expand Down

0 comments on commit 9eddf10

Please sign in to comment.