diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f2021035dc..93e7b4c084 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78954,6 +78954,9 @@ "function_description": { "type": "string" }, + "geo_results": { + "$ref": "#/components/schemas/ml._types:GeoResults" + }, "influencers": { "type": "array", "items": { @@ -78983,22 +78986,22 @@ } }, "required": [ - "actual", - "by_field_name", - "by_field_value", - "correlated_by_field_value", - "field_name", - "function", - "function_description", - "influencers", - "over_field_name", - "over_field_value", - "partition_field_name", - "partition_field_value", - "probability", - "typical" + "probability" ] }, + "ml._types:GeoResults": { + "type": "object", + "properties": { + "actual_point": { + "description": "The actual value for the bucket formatted as a `geo_point`.", + "type": "string" + }, + "typical_point": { + "description": "The typical value for the bucket formatted as a `geo_point`.", + "type": "string" + } + } + }, "ml._types:Influence": { "type": "object", "properties": { @@ -79017,23 +79020,6 @@ "influencer_field_values" ] }, - "ml._types:GeoResults": { - "type": "object", - "properties": { - "actual_point": { - "description": "The actual value for the bucket formatted as a `geo_point`.", - "type": "string" - }, - "typical_point": { - "description": "The typical value for the bucket formatted as a `geo_point`.", - "type": "string" - } - }, - "required": [ - "actual_point", - "typical_point" - ] - }, "ml._types:Include": { "type": "string", "enum": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 3e9814ce64..700178487f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -154138,7 +154138,7 @@ "properties": [ { "name": "actual", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -154152,7 +154152,7 @@ }, { "name": "by_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154163,7 +154163,7 @@ }, { "name": "by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154174,7 +154174,7 @@ }, { "name": "correlated_by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154185,7 +154185,7 @@ }, { "name": "field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154196,7 +154196,7 @@ }, { "name": "function", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154207,7 +154207,7 @@ }, { "name": "function_description", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154216,9 +154216,20 @@ } } }, + { + "name": "geo_results", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "GeoResults", + "namespace": "ml._types" + } + } + }, { "name": "influencers", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -154232,7 +154243,7 @@ }, { "name": "over_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154243,7 +154254,7 @@ }, { "name": "over_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154254,7 +154265,7 @@ }, { "name": "partition_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154265,7 +154276,7 @@ }, { "name": "partition_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -154287,7 +154298,7 @@ }, { "name": "typical", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -154300,7 +154311,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L123-L138" + "specLocation": "ml/_types/Anomaly.ts#L123-L139" }, { "kind": "interface", @@ -154430,7 +154441,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L156-L197" + "specLocation": "ml/_types/Anomaly.ts#L157-L198" }, { "kind": "interface", @@ -159691,7 +159702,7 @@ { "description": "The actual value for the bucket formatted as a `geo_point`.", "name": "actual_point", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -159703,7 +159714,7 @@ { "description": "The typical value for the bucket formatted as a `geo_point`.", "name": "typical_point", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -159713,7 +159724,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L145-L154" + "specLocation": "ml/_types/Anomaly.ts#L146-L155" }, { "kind": "interface", @@ -160485,7 +160496,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L140-L143" + "specLocation": "ml/_types/Anomaly.ts#L141-L144" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 911d68d548..70a8aa85e8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13905,20 +13905,21 @@ export interface MlAnomaly { } export interface MlAnomalyCause { - actual: double[] - by_field_name: Name - by_field_value: string - correlated_by_field_value: string - field_name: Field - function: string - function_description: string - influencers: MlInfluence[] - 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?: MlGeoResults + influencers?: MlInfluence[] + over_field_name?: Name + over_field_value?: string + partition_field_name?: string + partition_field_value?: string probability: double - typical: double[] + typical?: double[] } export interface MlAnomalyExplanation { @@ -14487,8 +14488,8 @@ export interface MlFilterRef { export type MlFilterType = 'include' | 'exclude' export interface MlGeoResults { - actual_point: string - typical_point: string + actual_point?: string + typical_point?: string } export interface MlHyperparameter { diff --git a/specification/ml/_types/Anomaly.ts b/specification/ml/_types/Anomaly.ts index f0d95dff1c..dc2bd477b2 100644 --- a/specification/ml/_types/Anomaly.ts +++ b/specification/ml/_types/Anomaly.ts @@ -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 { @@ -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 {