Skip to content

Commit f1c27c9

Browse files
[Backport 8.14] Fix GeoIP stats API response (#2820)
(cherry picked from commit 6697817) Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent 0ef22f5 commit f1c27c9

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84845,21 +84845,26 @@
8484584845
"total_download_time": {
8484684846
"$ref": "#/components/schemas/_types:DurationValueUnitMillis"
8484784847
},
84848-
"database_count": {
84848+
"databases_count": {
8484984849
"description": "Current number of databases available for use.",
8485084850
"type": "number"
8485184851
},
8485284852
"skipped_updates": {
8485384853
"description": "Total number of database updates skipped.",
8485484854
"type": "number"
84855+
},
84856+
"expired_databases": {
84857+
"description": "Total number of databases not updated after 30 days",
84858+
"type": "number"
8485584859
}
8485684860
},
8485784861
"required": [
8485884862
"successful_downloads",
8485984863
"failed_downloads",
8486084864
"total_download_time",
84861-
"database_count",
84862-
"skipped_updates"
84865+
"databases_count",
84866+
"skipped_updates",
84867+
"expired_databases"
8486384868
]
8486484869
},
8486584870
"ingest.geo_ip_stats:GeoIpNodeDatabases": {

output/schema/schema.json

Lines changed: 16 additions & 4 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 & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ingest/geo_ip_stats/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ export class GeoIpDownloadStatistics {
2929
/** Total milliseconds spent downloading databases. */
3030
total_download_time: DurationValue<UnitMillis>
3131
/** Current number of databases available for use. */
32-
database_count: integer
32+
databases_count: integer
3333
/** Total number of database updates skipped. */
3434
skipped_updates: integer
35+
/** Total number of databases not updated after 30 days */
36+
expired_databases: integer
3537
}
3638

3739
/** Downloaded databases for the node. The field key is the node ID. */

0 commit comments

Comments
 (0)