Skip to content

Commit ce74e92

Browse files
authored
Add hits_time_in_millis and misses_time_in_millis to enrich stats (#2845)
* Add hits_time_in_millis and misses_time_in_millis to enrich stats * Switch to DurationValue<UnitMillis>
1 parent 34e4494 commit ce74e92

File tree

6 files changed

+109
-6
lines changed

6 files changed

+109
-6
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 43 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 43 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/enrich/stats/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { TaskInfo } from '@tasks/_types/TaskInfo'
2121
import { Id, Name } from '@_types/common'
2222
import { integer, long } from '@_types/Numeric'
23+
import { DurationValue, UnitMillis } from '@_types/Time'
2324

2425
export class ExecutingPolicy {
2526
name: Name
@@ -38,7 +39,11 @@ export class CacheStats {
3839
node_id: Id
3940
count: integer
4041
hits: integer
42+
/* The amount of time in milliseconds spent fetching data from the cache on successful cache hits only. */
43+
hits_time_in_millis: DurationValue<UnitMillis>
4144
misses: integer
45+
/* The amount of time in milliseconds spent fetching data from the enrich index and updating the cache, on cache misses only. */
46+
misses_time_in_millis: DurationValue<UnitMillis>
4247
evictions: integer
4348
/* An _approximation_ of the size in bytes that the enrich cache takes up on the heap. */
4449
size_in_bytes: long

0 commit comments

Comments
 (0)