Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Oct 25, 2024
1 parent 584a3b2 commit e5929db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/
import { z } from '@kbn/zod';
import { entityLatestSchema } from '@kbn/entities-schema';
import { ENTITY_LATEST, entitiesAliasPattern, entityLatestSchema } from '@kbn/entities-schema';
import {
ENTITY_DEFINITION_ID,
ENTITY_DISPLAY_NAME,
Expand All @@ -30,11 +30,10 @@ export const defaultEntitySortField: EntityColumnIds = 'alertsCount';

export const MAX_NUMBER_OF_ENTITIES = 500;

export const ENTITIES_LATEST_ALIAS = '.entities.v1.latest*';
// entitiesAliasPattern({
// type: '*',
// dataset: ENTITY_LATEST,
// });
export const ENTITIES_LATEST_ALIAS = entitiesAliasPattern({
type: '*',
dataset: ENTITY_LATEST,
});

const entityArrayRt = t.array(t.string);
export const entityTypesRt = new t.Type<string[], string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export const TIMESTAMP_FIELD = '@timestamp';
export const HOST_FIELD = 'host.name';
export const CONTAINER_FIELD = 'container.id';
export const POD_FIELD = 'kubernetes.pod.uid';
export const KUBENRNETES_CONTAINER_FIELD = 'kubernetes.container.id';

export const METRICS_EXPLORER_API_MAX_METRICS = 20;

0 comments on commit e5929db

Please sign in to comment.