Skip to main content

health_events

Creates, updates, deletes, gets or lists a health_events resource.

Overview

Namehealth_events
TypeResource
Idaws.internetmonitor.health_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The time when a health event was created.
ended_atstring (date-time)The time when a health event was resolved. If the health event is still active, the end time is not set.
event_arnstringThe Amazon Resource Name (ARN) of the event. (pattern: <code>arn:.*</code>)
event_idstringThe internally-generated identifier of a health event. (pattern: <code>[a-zA-Z0-9/_.-]+</code>)
health_score_thresholdnumber (double)The threshold percentage for a health score that determines, along with other configuration information, when Internet Monitor creates a health event when there's an internet issue that affects your application end users.
impact_typestringThe type of impairment of a specific health event. (AVAILABILITY, PERFORMANCE, LOCAL_AVAILABILITY, LOCAL_PERFORMANCE)
impacted_locationsarrayThe locations affected by a health event.
last_updated_atstring (date-time)The time when a health event was last updated or recalculated.
percent_of_total_traffic_impactednumber (double)The impact on total traffic that a health event has, in increased latency or reduced availability. This is the percentage of how much latency has increased or availability has decreased during the event, compared to what is typical for traffic from this client location to the Amazon Web Services location using this client network.
started_atstring (date-time)The time when a health event started.
statusstringThe status of a health event. (ACTIVE, RESOLVED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_health_eventselectmonitor_name, event_id, regionLinkedAccountIdGets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor. This information includes the impacted locations, and all the information related to the event, by location. The information returned includes the impact on performance, availability, and round-trip time, information about the network providers (ASNs), the event type, and so on. Information rolled up at the global traffic level is also returned, including the impact type and total traffic impact.
list_health_eventsselectmonitor_name, regionStartTime, EndTime, NextToken, MaxResults, EventStatus, LinkedAccountIdLists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns information for health events including the event start and end times, and the status. Health events that have start times during the time frame that is requested are not included in the list of health events.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
event_idstringThe internally-generated identifier of a health event. Because EventID contains the forward slash (“/”) character, you must URL-encode the EventID field in the request URL.
monitor_namestringThe name of the monitor.
regionstringAWS region (default: us-east-1)
EndTimestring (date-time)The time when a health event ended. If the health event is still ongoing, then the end time is not set.
EventStatusstringThe status of a health event.
LinkedAccountIdstringThe account ID for an account that you've set up cross-account sharing for in Amazon CloudWatch Internet Monitor. You configure cross-account sharing by using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide.
MaxResultsintegerThe number of health event objects that you want to return with this call.
NextTokenstringThe token for the next set of results. You receive this token from a previous call.
StartTimestring (date-time)The time when a health event started.

SELECT examples

Gets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor. This information includes the impacted locations, and all the information related to the event, by location. The information returned includes the impact on performance, availability, and round-trip time, information about the network providers (ASNs), the event type, and so on. Information rolled up at the global traffic level is also returned, including the impact type and total traffic impact.

SELECT
created_at,
ended_at,
event_arn,
event_id,
health_score_threshold,
impact_type,
impacted_locations,
last_updated_at,
percent_of_total_traffic_impacted,
started_at,
status
FROM aws.internetmonitor.health_events
WHERE monitor_name = '{{ monitor_name }}' -- required
AND event_id = '{{ event_id }}' -- required
AND region = '{{ region }}' -- required
AND LinkedAccountId = '{{ LinkedAccountId }}'
;