Skip to content

Commit 84ad6dc

Browse files
nullable types in anomaly cause, missing field (#3707) (#3718)
(cherry picked from commit 7c6161b) Co-authored-by: Laura Trotta <[email protected]>
1 parent b05cd83 commit 84ad6dc

File tree

4 files changed

+79
-80
lines changed

4 files changed

+79
-80
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 17 additions & 31 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: 30 additions & 19 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: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/Anomaly.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,21 @@ export class Anomaly {
121121
}
122122

123123
export class AnomalyCause {
124-
actual: double[]
125-
by_field_name: Name
126-
by_field_value: string
127-
correlated_by_field_value: string
128-
field_name: Field
129-
function: string
130-
function_description: string
131-
influencers: Influence[]
132-
over_field_name: Name
133-
over_field_value: string
134-
partition_field_name: string
135-
partition_field_value: string
124+
actual?: double[]
125+
by_field_name?: Name
126+
by_field_value?: string
127+
correlated_by_field_value?: string
128+
field_name?: Field
129+
function?: string
130+
function_description?: string
131+
geo_results?: GeoResults
132+
influencers?: Influence[]
133+
over_field_name?: Name
134+
over_field_value?: string
135+
partition_field_name?: string
136+
partition_field_value?: string
136137
probability: double
137-
typical: double[]
138+
typical?: double[]
138139
}
139140

140141
export class Influence {
@@ -146,11 +147,11 @@ export class GeoResults {
146147
/**
147148
* The actual value for the bucket formatted as a `geo_point`.
148149
*/
149-
actual_point: string
150+
actual_point?: string
150151
/**
151152
* The typical value for the bucket formatted as a `geo_point`.
152153
*/
153-
typical_point: string
154+
typical_point?: string
154155
}
155156

156157
export class AnomalyExplanation {

0 commit comments

Comments
 (0)