Skip to content

Commit 71a08e0

Browse files
authored
Add geo_results.actual_point and typical_point (#1984)
1 parent 4ca0cc0 commit 71a08e0

File tree

3 files changed

+71
-4
lines changed

3 files changed

+71
-4
lines changed

output/schema/schema.json

Lines changed: 50 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/Anomaly.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export class Anomaly {
3535
field_name?: string
3636
function?: string
3737
function_description?: string
38+
/**
39+
* If the detector function is `lat_long`, this object contains comma delimited strings for the latitude and longitude of the actual and typical values.
40+
*/
41+
geo_results?: GeoResults
3842
influencers?: Influence[]
3943
initial_record_score: double
4044
is_interim: boolean
@@ -72,6 +76,17 @@ export class Influence {
7276
influencer_field_values: string[]
7377
}
7478

79+
export class GeoResults {
80+
/**
81+
* The actual value for the bucket formatted as a `geo_point`.
82+
*/
83+
actual_point: string
84+
/**
85+
* The typical value for the bucket formatted as a `geo_point`.
86+
*/
87+
typical_point: string
88+
}
89+
7590
export class AnomalyExplanation {
7691
/**
7792
* Impact from the duration and magnitude of the detected anomaly relative to the historical average.

0 commit comments

Comments
 (0)