diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 841b9aab29..9cb930deb0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -79861,6 +79861,9 @@ "function_description": { "type": "string" }, + "geo_results": { + "$ref": "#/components/schemas/ml._types:GeoResults" + }, "influencers": { "type": "array", "items": { @@ -79890,22 +79893,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": { @@ -79924,23 +79927,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 8c54e1a286..86030ba9ba 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -156576,7 +156576,7 @@ "properties": [ { "name": "actual", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -156590,7 +156590,7 @@ }, { "name": "by_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156601,7 +156601,7 @@ }, { "name": "by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156612,7 +156612,7 @@ }, { "name": "correlated_by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156623,7 +156623,7 @@ }, { "name": "field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156634,7 +156634,7 @@ }, { "name": "function", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156645,7 +156645,7 @@ }, { "name": "function_description", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156654,9 +156654,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": { @@ -156670,7 +156681,7 @@ }, { "name": "over_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156681,7 +156692,7 @@ }, { "name": "over_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156692,7 +156703,7 @@ }, { "name": "partition_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156703,7 +156714,7 @@ }, { "name": "partition_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156725,7 +156736,7 @@ }, { "name": "typical", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -156738,7 +156749,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L123-L138" + "specLocation": "ml/_types/Anomaly.ts#L123-L139" }, { "kind": "interface", @@ -156868,7 +156879,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L156-L197" + "specLocation": "ml/_types/Anomaly.ts#L157-L198" }, { "kind": "interface", @@ -162167,7 +162178,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": { @@ -162179,7 +162190,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": { @@ -162189,7 +162200,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L145-L154" + "specLocation": "ml/_types/Anomaly.ts#L146-L155" }, { "kind": "interface", @@ -162961,7 +162972,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 d297312f02..213ea7bb34 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14105,20 +14105,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 { @@ -14690,8 +14691,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 {