{"type":"model","meta":{"id":"/apps/pubhub/media/000-v7-apis/5b3454a4300b838cc17f7b2cdc0690fdd15058d5/0e1b2b85-7871-3637-a9de-ff5d8b677c7e","info":{"description":"\nEvent detection occurs when ThousandEyes identifies that error signals related to a component (proxy, network node, AS, server etc) have deviated from the baselines established by events.\n* To determine this, ThousandEyes takes the test results from all accounts groups within an organization, and analyzes that data.\n* Noisy test results (those that have too many errors in a short window) are removed until they stabilize, and the rest of the results are tagged with the components associated with that test result (for example, proxy, network, or server).\n* Next, any increase in failures from the test results and each component helps in determining the problem domain and which component may be at fault.\n* When this failure rate increases beyond a pre-defined threshold (set by the algorithm), an event is triggered and an email notification is sent to the user (if they've enabled email alerts).\n\nWith the Events API, you can perform the following tasks on the ThousandEyes platform:\n* **Retrieve Events**: Obtain a list of events and detailed information for each event. For more information about events, see [Event Detection](https://docs.thousandeyes.com/product-documentation/event-detection).\n","title":"Event Detection API","version":"7.0.34"},"security":[{"BearerAuth":[]}],"tags":[{"name":"Events"}],"openapi":"3.0.1","servers":[{"description":"ThousandEyes API production URL","url":"https://api.thousandeyes.com/v7"}],"securitySchemes":{"BearerAuth":{"description":"Bearer authentication token","scheme":"bearer","type":"http"}}},"spec":{"properties":{"id":{"description":"A unique ID for each event.","example":"e9c3bf02-a48c-4aa8-9e5f-898800d6f569","format":"uuid","readOnly":true,"type":"string"},"typeName":{"description":"Event type name. Examples include, Local Agent Issue, Network Path Issue, Network Outage, DNS Issue, Server Issue, and Proxy Issue.","example":"Network Issue","readOnly":true,"type":"string"},"state":{"description":"Indicates the state of the event, whether it is ongoing (active) or has been resolved.","enum":["active","resolved"],"example":"resolved","readOnly":true,"type":"string","$$ref":"#/components/schemas/EventState"},"startDate":{"description":"The start date and time (in UTC, ISO 8601 format) when the event was first detected.","example":"2020-04-23T13:43:16Z","format":"date-time","readOnly":true,"type":"string"},"endDate":{"description":"The end date and time (in UTC, ISO 8601 format) when the event was resolved (due to timeout). This value is populated for \"ongoing\" events.","example":"2020-04-23T13:43:16Z","format":"date-time","readOnly":true,"type":"string"},"severity":{"description":"The severity of the alert.","enum":["high","medium","low"],"example":"medium","type":"string","$$ref":"#/components/schemas/EventAlertSeverity"},"title":{"description":"Event title","example":"Affecting destinations in google.com","readOnly":true,"type":"string"},"type":{"description":"Specifies the event type in a machine-readable and backwards-compatible format. Allowed values are: `agent-local`, `network-pop`, `network`, `dns`, `target`, and `proxy`.","enum":["agent-local","network-pop","network","dns","target","target-network","proxy"],"example":"target","readOnly":true,"type":"string","$$ref":"#/components/schemas/EventType"},"affectedTests":{"properties":{"total":{"description":"The total number affected.","example":5,"readOnly":true,"type":"integer"},"inAccountGroup":{"description":"Indicates if in the affected account group.","example":2,"readOnly":true,"type":"integer"}},"type":"object","$$ref":"#/components/schemas/AffectedCount"},"affectedTargets":{"properties":{"total":{"description":"The total number affected.","example":5,"readOnly":true,"type":"integer"},"inAccountGroup":{"description":"Indicates if in the affected account group.","example":2,"readOnly":true,"type":"integer"}},"type":"object","$$ref":"#/components/schemas/AffectedCount"},"affectedAgents":{"properties":{"total":{"description":"The total number affected.","example":5,"readOnly":true,"type":"integer"},"inAccountGroup":{"description":"Indicates if in the affected account group.","example":2,"readOnly":true,"type":"integer"}},"type":"object","$$ref":"#/components/schemas/AffectedCount"},"_links":{"description":"A links object containing the self link.","properties":{"self":{"description":"A hyperlink from the containing resource to a URI.","properties":{"href":{"description":"Its value is either a URI [RFC3986] or a URI template [RFC6570].","example":"https://api.thousandeyes.com/v7/link/to/resource/id","type":"string"},"templated":{"description":"Should be true when the link object's \"href\" property is a URI template.","type":"boolean"},"type":{"description":"Used as a hint to indicate the media type expected when dereferencing the target resource.","type":"string"},"deprecation":{"description":"Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation.","type":"string"},"name":{"description":"Its value may be used as a secondary key for selecting link objects that share the same relation type.","type":"string"},"profile":{"description":"A URI that hints about the profile of the target resource.","type":"string"},"title":{"description":"Intended for labelling the link with a human-readable identifier","type":"string"},"hreflang":{"description":"Indicates the language of the target resource","type":"string"}},"required":["href"],"type":"object","$$ref":"#/components/schemas/Link"}},"readOnly":true,"type":"object","$$ref":"#/components/schemas/SelfLinks"}},"type":"object","$$ref":"#/components/schemas/Event","title":"Event"}}