Skip to content

Commit 8184251

Browse files
authored
[Backport 8.15] Add hits_time_in_millis and misses_time_in_millis to enrich stats (#2845) (#2848)
* Add hits_time_in_millis and misses_time_in_millis to enrich stats * Switch to DurationValue<UnitMillis> (cherry picked from commit ce74e92)
1 parent e5bab9e commit 8184251

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,6 +39,10 @@ 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
}

0 commit comments

Comments
 (0)