Skip to content

Add hits_time_in_millis and misses_time_in_millis to enrich stats #2845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 43 additions & 3 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 43 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions specification/enrich/stats/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { TaskInfo } from '@tasks/_types/TaskInfo'
import { Id, Name } from '@_types/common'
import { integer, long } from '@_types/Numeric'
import { DurationValue, UnitMillis } from '@_types/Time'

export class ExecutingPolicy {
name: Name
Expand All @@ -38,7 +39,11 @@ export class CacheStats {
node_id: Id
count: integer
hits: integer
/* The amount of time in milliseconds spent fetching data from the cache on successful cache hits only. */
hits_time_in_millis: DurationValue<UnitMillis>
misses: integer
/* The amount of time in milliseconds spent fetching data from the enrich index and updating the cache, on cache misses only. */
misses_time_in_millis: DurationValue<UnitMillis>
evictions: integer
/* An _approximation_ of the size in bytes that the enrich cache takes up on the heap. */
size_in_bytes: long
Expand Down
Loading