Skip to content

Add geo_results.actual_point and typical_point #1984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions specification/ml/_types/Anomaly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class Anomaly {
field_name?: string
function?: string
function_description?: string
/**
* If the detector function is `lat_long`, this object contains comma delimited strings for the latitude and longitude of the actual and typical values.
*/
geo_results?: GeoResults
influencers?: Influence[]
initial_record_score: double
is_interim: boolean
Expand Down Expand Up @@ -72,6 +76,17 @@ export class Influence {
influencer_field_values: string[]
}

export class GeoResults {
/**
* The actual value for the bucket formatted as a `geo_point`.
*/
actual_point: string
/**
* The typical value for the bucket formatted as a `geo_point`.
*/
typical_point: string
}

export class AnomalyExplanation {
/**
* Impact from the duration and magnitude of the detected anomaly relative to the historical average.
Expand Down