Skip to content

Commit

Permalink
Add hits_time_in_millis and misses_time_in_millis to enrich stats (#2845
Browse files Browse the repository at this point in the history
)

* Add hits_time_in_millis and misses_time_in_millis to enrich stats

* Switch to DurationValue<UnitMillis>
  • Loading branch information
pquentin authored Sep 3, 2024
1 parent 34e4494 commit ce74e92
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 6 deletions.
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

0 comments on commit ce74e92

Please sign in to comment.