Skip to content

Commit

Permalink
nullable types in anomaly cause, missing field (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta authored Feb 5, 2025
1 parent 03e768c commit 7c6161b
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 80 deletions.
48 changes: 17 additions & 31 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 30 additions & 19 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 16 additions & 15 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 16 additions & 15 deletions specification/ml/_types/Anomaly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,21 @@ export class Anomaly {
}

export class AnomalyCause {
actual: double[]
by_field_name: Name
by_field_value: string
correlated_by_field_value: string
field_name: Field
function: string
function_description: string
influencers: Influence[]
over_field_name: Name
over_field_value: string
partition_field_name: string
partition_field_value: string
actual?: double[]
by_field_name?: Name
by_field_value?: string
correlated_by_field_value?: string
field_name?: Field
function?: string
function_description?: string
geo_results?: GeoResults
influencers?: Influence[]
over_field_name?: Name
over_field_value?: string
partition_field_name?: string
partition_field_value?: string
probability: double
typical: double[]
typical?: double[]
}

export class Influence {
Expand All @@ -146,11 +147,11 @@ export class GeoResults {
/**
* The actual value for the bucket formatted as a `geo_point`.
*/
actual_point: string
actual_point?: string
/**
* The typical value for the bucket formatted as a `geo_point`.
*/
typical_point: string
typical_point?: string
}

export class AnomalyExplanation {
Expand Down

0 comments on commit 7c6161b

Please sign in to comment.