diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ad46626d2f..3592a83865 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -75796,6 +75796,9 @@ "function_description": { "type": "string" }, + "geo_results": { + "$ref": "#/components/schemas/ml._types:GeoResults" + }, "influencers": { "type": "array", "items": { @@ -75825,22 +75828,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": { @@ -75859,23 +75862,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 6e99b5ffa5..14d3c389d8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -150658,7 +150658,7 @@ "properties": [ { "name": "actual", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -150672,7 +150672,7 @@ }, { "name": "by_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150683,7 +150683,7 @@ }, { "name": "by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150694,7 +150694,7 @@ }, { "name": "correlated_by_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150705,7 +150705,7 @@ }, { "name": "field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150716,7 +150716,7 @@ }, { "name": "function", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150727,7 +150727,7 @@ }, { "name": "function_description", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150736,9 +150736,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": { @@ -150752,7 +150763,7 @@ }, { "name": "over_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150763,7 +150774,7 @@ }, { "name": "over_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150774,7 +150785,7 @@ }, { "name": "partition_field_name", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150785,7 +150796,7 @@ }, { "name": "partition_field_value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -150807,7 +150818,7 @@ }, { "name": "typical", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -150820,7 +150831,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L123-L138" + "specLocation": "ml/_types/Anomaly.ts#L123-L139" }, { "kind": "interface", @@ -150950,7 +150961,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L156-L197" + "specLocation": "ml/_types/Anomaly.ts#L157-L198" }, { "kind": "interface", @@ -156211,7 +156222,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": { @@ -156223,7 +156234,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": { @@ -156233,7 +156244,7 @@ } } ], - "specLocation": "ml/_types/Anomaly.ts#L145-L154" + "specLocation": "ml/_types/Anomaly.ts#L146-L155" }, { "kind": "interface", @@ -157005,7 +157016,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 4c545ba6fc..bef791de5a 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13727,20 +13727,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 { @@ -14309,8 +14310,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 {