diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 1039289a41..7c1e70c103 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -79918,6 +79918,9 @@ "function_description": { "type": "string" }, + "geo_results": { + "$ref": "#/components/schemas/ml._types:GeoResults" + }, "influencers": { "type": "array", "items": { @@ -79947,22 +79950,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": { @@ -79981,23 +79984,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 edc9be22ee..cb38383885 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -156807,7 +156807,7 @@ "properties": [ { "name": "actual", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -156821,7 +156821,7 @@ }, { "name": "by_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156832,7 +156832,7 @@ }, { "name": "by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156843,7 +156843,7 @@ }, { "name": "correlated_by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156854,7 +156854,7 @@ }, { "name": "field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156865,7 +156865,7 @@ }, { "name": "function", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156876,7 +156876,7 @@ }, { "name": "function_description", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156885,9 +156885,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": { @@ -156901,7 +156912,7 @@ }, { "name": "over_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156912,7 +156923,7 @@ }, { "name": "over_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156923,7 +156934,7 @@ }, { "name": "partition_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156934,7 +156945,7 @@ }, { "name": "partition_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -156956,7 +156967,7 @@ }, { "name": "typical", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -156969,7 +156980,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L123-L138" + "specLocation": "ml/_types/Anomaly.ts#L123-L139" }, { "kind": "interface", @@ -157099,7 +157110,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L156-L197" + "specLocation": "ml/_types/Anomaly.ts#L157-L198" }, { "kind": "interface", @@ -162360,7 +162371,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": { @@ -162372,7 +162383,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": { @@ -162382,7 +162393,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L145-L154" + "specLocation": "ml/_types/Anomaly.ts#L146-L155" }, { "kind": "interface", @@ -163154,7 +163165,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 8a9483cca6..602a7ecbf4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14110,20 +14110,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 { @@ -14692,8 +14693,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 {