CloudWatchInternetMonitor ************************* Client ====== class CloudWatchInternetMonitor.Client A low-level client representing Amazon CloudWatch Internet Monitor Amazon CloudWatch Internet Monitor provides visibility into how internet issues impact the performance and availability between your applications hosted on Amazon Web Services and your end users. It can reduce the time it takes for you to diagnose internet issues from days to minutes. Internet Monitor uses the connectivity data that Amazon Web Services captures from its global networking footprint to calculate a baseline of performance and availability for internet traffic. This is the same data that Amazon Web Services uses to monitor internet uptime and availability. With those measurements as a baseline, Internet Monitor raises awareness for you when there are significant problems for your end users in the different geographic locations where your application runs. Internet Monitor publishes internet measurements to CloudWatch Logs and CloudWatch Metrics, to easily support using CloudWatch tools with health information for geographies and networks specific to your application. Internet Monitor sends health events to Amazon EventBridge so that you can set up notifications. If an issue is caused by the Amazon Web Services network, you also automatically receive an Amazon Web Services Health Dashboard notification with the steps that Amazon Web Services is taking to mitigate the problem. To use Internet Monitor, you create a *monitor* and associate your application's resources with it - VPCs, NLBs, CloudFront distributions, or WorkSpaces directories - so Internet Monitor can determine where your application's internet traffic is. Internet Monitor then provides internet measurements from Amazon Web Services that are specific to the locations and ASNs (typically, internet service providers or ISPs) that communicate with your application. For more information, see Using Amazon CloudWatch Internet Monitor in the *Amazon CloudWatch User Guide*. import boto3 client = boto3.client('internetmonitor') These are the available methods: * can_paginate * close * create_monitor * delete_monitor * get_health_event * get_internet_event * get_monitor * get_paginator * get_query_results * get_query_status * get_waiter * list_health_events * list_internet_events * list_monitors * list_tags_for_resource * start_query * stop_query * tag_resource * untag_resource * update_monitor Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListHealthEvents * ListInternetEvents * ListMonitors CloudWatchInternetMonitor / Paginator / ListMonitors ListMonitors ************ class CloudWatchInternetMonitor.Paginator.ListMonitors paginator = client.get_paginator('list_monitors') paginate(**kwargs) Creates an iterator that will paginate through responses from "CloudWatchInternetMonitor.Client.list_monitors()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( MonitorStatus='string', IncludeLinkedAccounts=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **MonitorStatus** (*string*) -- The status of a monitor. This includes the status of the data processing for the monitor and the status of the monitor itself. For information about the statuses for a monitor, see Monitor. * **IncludeLinkedAccounts** (*boolean*) -- A boolean option that you can set to "TRUE" to include monitors for linked accounts in a list of monitors, when you've set up cross- account sharing 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. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Monitors': [ { 'MonitorName': 'string', 'MonitorArn': 'string', 'Status': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR', 'ProcessingStatus': 'OK'|'INACTIVE'|'COLLECTING_DATA'|'INSUFFICIENT_DATA'|'FAULT_SERVICE'|'FAULT_ACCESS_CLOUDWATCH' }, ], } **Response Structure** * *(dict) --* * **Monitors** *(list) --* A list of monitors. * *(dict) --* The description of and information about a monitor in Amazon CloudWatch Internet Monitor. * **MonitorName** *(string) --* The name of the monitor. * **MonitorArn** *(string) --* The Amazon Resource Name (ARN) of the monitor. * **Status** *(string) --* The status of a monitor. * **ProcessingStatus** *(string) --* The health of data processing for the monitor. CloudWatchInternetMonitor / Paginator / ListInternetEvents ListInternetEvents ****************** class CloudWatchInternetMonitor.Paginator.ListInternetEvents paginator = client.get_paginator('list_internet_events') paginate(**kwargs) Creates an iterator that will paginate through responses from "CloudWatchInternetMonitor.Client.list_internet_events()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), EventStatus='string', EventType='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **StartTime** (*datetime*) -- The start time of the time window that you want to get a list of internet events for. * **EndTime** (*datetime*) -- The end time of the time window that you want to get a list of internet events for. * **EventStatus** (*string*) -- The status of an internet event. * **EventType** (*string*) -- The type of network impairment. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'InternetEvents': [ { 'EventId': 'string', 'EventArn': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'ClientLocation': { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0 }, 'EventType': 'AVAILABILITY'|'PERFORMANCE', 'EventStatus': 'ACTIVE'|'RESOLVED' }, ], } **Response Structure** * *(dict) --* * **InternetEvents** *(list) --* A set of internet events returned for the list operation. * *(dict) --* A summary of information about an internet event in Amazon CloudWatch Internet Monitor. Internet events are issues that cause performance degradation or availability problems for impacted Amazon Web Services client locations. Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers. * **EventId** *(string) --* The internally-generated identifier of an internet event. * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the internet event. * **StartedAt** *(datetime) --* The time when an internet event started. * **EndedAt** *(datetime) --* The time when an internet event ended. If the event hasn't ended yet, this value is empty. * **ClientLocation** *(dict) --* The impacted location, such as a city, that Amazon Web Services clients access application resources from. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the internet event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the internet event is located. * **Latitude** *(float) --* The latitude where the internet event is located. * **Longitude** *(float) --* The longitude where the internet event is located. * **EventType** *(string) --* The type of network impairment. * **EventStatus** *(string) --* The status of an internet event. CloudWatchInternetMonitor / Paginator / ListHealthEvents ListHealthEvents **************** class CloudWatchInternetMonitor.Paginator.ListHealthEvents paginator = client.get_paginator('list_health_events') paginate(**kwargs) Creates an iterator that will paginate through responses from "CloudWatchInternetMonitor.Client.list_health_events()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( MonitorName='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), EventStatus='ACTIVE'|'RESOLVED', LinkedAccountId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **StartTime** (*datetime*) -- The time when a health event started. * **EndTime** (*datetime*) -- The time when a health event ended. If the health event is still ongoing, then the end time is not set. * **EventStatus** (*string*) -- The status of a health event. * **LinkedAccountId** (*string*) -- The 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. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'HealthEvents': [ { 'EventArn': 'string', 'EventId': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'ImpactedLocations': [ { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0, 'CountryCode': 'string', 'SubdivisionCode': 'string', 'ServiceLocation': 'string', 'Status': 'ACTIVE'|'RESOLVED', 'CausedBy': { 'Networks': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'AsPath': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'NetworkEventType': 'AWS'|'Internet' }, 'InternetHealth': { 'Availability': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0 }, 'Performance': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0, 'RoundTripTime': { 'P50': 123.0, 'P90': 123.0, 'P95': 123.0 } } }, 'Ipv4Prefixes': [ 'string', ] }, ], 'Status': 'ACTIVE'|'RESOLVED', 'PercentOfTotalTrafficImpacted': 123.0, 'ImpactType': 'AVAILABILITY'|'PERFORMANCE'|'LOCAL_AVAILABILITY'|'LOCAL_PERFORMANCE', 'HealthScoreThreshold': 123.0 }, ], } **Response Structure** * *(dict) --* * **HealthEvents** *(list) --* A list of health events. * *(dict) --* Information about a health event created in a monitor in Amazon CloudWatch Internet Monitor. * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the event. * **EventId** *(string) --* The internally-generated identifier of a specific network traffic impairment health event. * **StartedAt** *(datetime) --* When a health event started. * **EndedAt** *(datetime) --* The time when a health event ended. If the health event is still active, then the end time is not set. * **CreatedAt** *(datetime) --* When the health event was created. * **LastUpdatedAt** *(datetime) --* When the health event was last updated. * **ImpactedLocations** *(list) --* The locations impacted by the health event. * *(dict) --* Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor. Geographic regions are hierarchically categorized into country, subdivision, metro and city geographic granularities. The geographic region is identified based on the IP address used at the client locations. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the health event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the health event is located. * **Latitude** *(float) --* The latitude where the health event is located. * **Longitude** *(float) --* The longitude where the health event is located. * **CountryCode** *(string) --* The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available. * **SubdivisionCode** *(string) --* The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available. * **ServiceLocation** *(string) --* The service location where the health event is located. * **Status** *(string) --* The status of the health event at an impacted location. * **CausedBy** *(dict) --* The cause of the impairment. There are two types of network impairments: Amazon Web Services network issues or internet issues. Internet issues are typically a problem with a network provider, like an internet service provider (ISP). * **Networks** *(list) --* The networks that could be impacted by a network impairment event. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **AsPath** *(list) --* The combination of the Autonomous System Number (ASN) of the network and the name of the network. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **NetworkEventType** *(string) --* The type of network impairment. * **InternetHealth** *(dict) --* The calculated health at a specific location. * **Availability** *(dict) --* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an availability drop. For example, an availability score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing an availability drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores are calculated for different geographic and network provider combinations (that is, different granularities) and also summed into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the *CloudWatch User Guide* includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For information about how Internet Monitor calculates impact, see How Internet Monitor works in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **PercentOfClientLocationImpacted** *(float) --* The percentage of impact caused by a health event for client location traffic globally. For information about how Internet Monitor calculates impact, see Inside Internet Monitor in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **Performance** *(dict) --* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing a performance drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores, are calculated for different geographic and network provider combinations (that is, different granularities) and also totaled into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the CloudWatch User Guide includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfClientLocationImpacted** *(float) --* How much performance impact was caused by a health event at a client location. For performance, this is the percentage of how much latency increased during the event compared to typical performance for traffic, from this client location to an Amazon Web Services location, using a specific client network. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **RoundTripTime** *(dict) --* This is the percentage of how much round-trip time increased during the event compared to typical round-trip time for your application for traffic. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **P50** *(float) --* RTT at the 50th percentile (p50). * **P90** *(float) --* RTT at the 90th percentile (p90). * **P95** *(float) --* RTT at the 95th percentile (p95). * **Ipv4Prefixes** *(list) --* The IPv4 prefixes at the client location that was impacted by the health event. * *(string) --* * **Status** *(string) --* The status of a health event. * **PercentOfTotalTrafficImpacted** *(float) --* 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. * **ImpactType** *(string) --* The type of impairment for a health event. * **HealthScoreThreshold** *(float) --* The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event. CloudWatchInternetMonitor / Client / list_health_events list_health_events ****************** CloudWatchInternetMonitor.Client.list_health_events(**kwargs) Lists 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. Note: Health events that have start times during the time frame that is requested are not included in the list of health events. See also: AWS API Documentation **Request Syntax** response = client.list_health_events( MonitorName='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), NextToken='string', MaxResults=123, EventStatus='ACTIVE'|'RESOLVED', LinkedAccountId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **StartTime** (*datetime*) -- The time when a health event started. * **EndTime** (*datetime*) -- The time when a health event ended. If the health event is still ongoing, then the end time is not set. * **NextToken** (*string*) -- The token for the next set of results. You receive this token from a previous call. * **MaxResults** (*integer*) -- The number of health event objects that you want to return with this call. * **EventStatus** (*string*) -- The status of a health event. * **LinkedAccountId** (*string*) -- The 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. Return type: dict Returns: **Response Syntax** { 'HealthEvents': [ { 'EventArn': 'string', 'EventId': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'ImpactedLocations': [ { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0, 'CountryCode': 'string', 'SubdivisionCode': 'string', 'ServiceLocation': 'string', 'Status': 'ACTIVE'|'RESOLVED', 'CausedBy': { 'Networks': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'AsPath': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'NetworkEventType': 'AWS'|'Internet' }, 'InternetHealth': { 'Availability': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0 }, 'Performance': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0, 'RoundTripTime': { 'P50': 123.0, 'P90': 123.0, 'P95': 123.0 } } }, 'Ipv4Prefixes': [ 'string', ] }, ], 'Status': 'ACTIVE'|'RESOLVED', 'PercentOfTotalTrafficImpacted': 123.0, 'ImpactType': 'AVAILABILITY'|'PERFORMANCE'|'LOCAL_AVAILABILITY'|'LOCAL_PERFORMANCE', 'HealthScoreThreshold': 123.0 }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **HealthEvents** *(list) --* A list of health events. * *(dict) --* Information about a health event created in a monitor in Amazon CloudWatch Internet Monitor. * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the event. * **EventId** *(string) --* The internally-generated identifier of a specific network traffic impairment health event. * **StartedAt** *(datetime) --* When a health event started. * **EndedAt** *(datetime) --* The time when a health event ended. If the health event is still active, then the end time is not set. * **CreatedAt** *(datetime) --* When the health event was created. * **LastUpdatedAt** *(datetime) --* When the health event was last updated. * **ImpactedLocations** *(list) --* The locations impacted by the health event. * *(dict) --* Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor. Geographic regions are hierarchically categorized into country, subdivision, metro and city geographic granularities. The geographic region is identified based on the IP address used at the client locations. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the health event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the health event is located. * **Latitude** *(float) --* The latitude where the health event is located. * **Longitude** *(float) --* The longitude where the health event is located. * **CountryCode** *(string) --* The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available. * **SubdivisionCode** *(string) --* The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available. * **ServiceLocation** *(string) --* The service location where the health event is located. * **Status** *(string) --* The status of the health event at an impacted location. * **CausedBy** *(dict) --* The cause of the impairment. There are two types of network impairments: Amazon Web Services network issues or internet issues. Internet issues are typically a problem with a network provider, like an internet service provider (ISP). * **Networks** *(list) --* The networks that could be impacted by a network impairment event. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **AsPath** *(list) --* The combination of the Autonomous System Number (ASN) of the network and the name of the network. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **NetworkEventType** *(string) --* The type of network impairment. * **InternetHealth** *(dict) --* The calculated health at a specific location. * **Availability** *(dict) --* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an availability drop. For example, an availability score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing an availability drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores are calculated for different geographic and network provider combinations (that is, different granularities) and also summed into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the *CloudWatch User Guide* includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For information about how Internet Monitor calculates impact, see How Internet Monitor works in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **PercentOfClientLocationImpacted** *(float) --* The percentage of impact caused by a health event for client location traffic globally. For information about how Internet Monitor calculates impact, see Inside Internet Monitor in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **Performance** *(dict) --* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing a performance drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores, are calculated for different geographic and network provider combinations (that is, different granularities) and also totaled into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the CloudWatch User Guide includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfClientLocationImpacted** *(float) --* How much performance impact was caused by a health event at a client location. For performance, this is the percentage of how much latency increased during the event compared to typical performance for traffic, from this client location to an Amazon Web Services location, using a specific client network. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **RoundTripTime** *(dict) --* This is the percentage of how much round-trip time increased during the event compared to typical round-trip time for your application for traffic. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **P50** *(float) --* RTT at the 50th percentile (p50). * **P90** *(float) --* RTT at the 90th percentile (p90). * **P95** *(float) --* RTT at the 95th percentile (p95). * **Ipv4Prefixes** *(list) --* The IPv4 prefixes at the client location that was impacted by the health event. * *(string) --* * **Status** *(string) --* The status of a health event. * **PercentOfTotalTrafficImpacted** *(float) --* 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. * **ImpactType** *(string) --* The type of impairment for a health event. * **HealthScoreThreshold** *(float) --* The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event. * **NextToken** *(string) --* The token for the next set of results. You receive this token from a previous call. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / stop_query stop_query ********** CloudWatchInternetMonitor.Client.stop_query(**kwargs) Stop a query that is progress for a specific monitor. See also: AWS API Documentation **Request Syntax** response = client.stop_query( MonitorName='string', QueryId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **QueryId** (*string*) -- **[REQUIRED]** The ID of the query that you want to stop. A "QueryId" is an internally-generated identifier for a specific query. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / get_paginator get_paginator ************* CloudWatchInternetMonitor.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. CloudWatchInternetMonitor / Client / get_internet_event get_internet_event ****************** CloudWatchInternetMonitor.Client.get_internet_event(**kwargs) Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event. Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers. The information returned here includes the impacted location, when the event started and (if the event is over) ended, the type of event ( "PERFORMANCE" or "AVAILABILITY"), and the status ( "ACTIVE" or "RESOLVED"). See also: AWS API Documentation **Request Syntax** response = client.get_internet_event( EventId='string' ) Parameters: **EventId** (*string*) -- **[REQUIRED]** The "EventId" of the internet event to return information for. Return type: dict Returns: **Response Syntax** { 'EventId': 'string', 'EventArn': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'ClientLocation': { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0 }, 'EventType': 'AVAILABILITY'|'PERFORMANCE', 'EventStatus': 'ACTIVE'|'RESOLVED' } **Response Structure** * *(dict) --* * **EventId** *(string) --* The internally-generated identifier of an internet event. * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the internet event. * **StartedAt** *(datetime) --* The time when the internet event started. * **EndedAt** *(datetime) --* The time when the internet event ended. If the event hasn't ended yet, this value is empty. * **ClientLocation** *(dict) --* The impacted location, such as a city, where clients access Amazon Web Services application resources. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the internet event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the internet event is located. * **Latitude** *(float) --* The latitude where the internet event is located. * **Longitude** *(float) --* The longitude where the internet event is located. * **EventType** *(string) --* The type of network impairment. * **EventStatus** *(string) --* The status of the internet event. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / can_paginate can_paginate ************ CloudWatchInternetMonitor.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. CloudWatchInternetMonitor / Client / get_query_results get_query_results ***************** CloudWatchInternetMonitor.Client.get_query_results(**kwargs) Return the data for a query with the Amazon CloudWatch Internet Monitor query interface. Specify the query that you want to return results for by providing a "QueryId" and a monitor name. For more information about using the query interface, including examples, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. See also: AWS API Documentation **Request Syntax** response = client.get_query_results( MonitorName='string', QueryId='string', NextToken='string', MaxResults=123 ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor to return data for. * **QueryId** (*string*) -- **[REQUIRED]** The ID of the query that you want to return data results for. A "QueryId" is an internally-generated identifier for a specific query. * **NextToken** (*string*) -- The token for the next set of results. You receive this token from a previous call. * **MaxResults** (*integer*) -- The number of query results that you want to return with this call. Return type: dict Returns: **Response Syntax** { 'Fields': [ { 'Name': 'string', 'Type': 'string' }, ], 'Data': [ [ 'string', ], ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Fields** *(list) --* The fields that the query returns data for. Fields are name- data type pairs, such as "availability_score"- "float". * *(dict) --* Defines a field to query for your application's Amazon CloudWatch Internet Monitor data. You create a data repository by running a query of a specific type. Each "QueryType" includes a specific set of fields and datatypes to retrieve data for. * **Name** *(string) --* The name of a field to query your application's Amazon CloudWatch Internet Monitor data for, such as "availability_score". * **Type** *(string) --* The data type for a query field, which must correspond to the field you're defining for "QueryField". For example, if the query field name is "availability_score", the data type is "float". * **Data** *(list) --* The data results that the query returns. Data is returned in arrays, aligned with the "Fields" for the query, which creates a repository of Amazon CloudWatch Internet Monitor information for your application. Then, you can filter the information in the repository by using "FilterParameters" that you define. * *(list) --* * *(string) --* * **NextToken** *(string) --* The token for the next set of results. You receive this token from a previous call. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / list_monitors list_monitors ************* CloudWatchInternetMonitor.Client.list_monitors(**kwargs) Lists all of your monitors for Amazon CloudWatch Internet Monitor and their statuses, along with the Amazon Resource Name (ARN) and name of each monitor. See also: AWS API Documentation **Request Syntax** response = client.list_monitors( NextToken='string', MaxResults=123, MonitorStatus='string', IncludeLinkedAccounts=True|False ) Parameters: * **NextToken** (*string*) -- The token for the next set of results. You receive this token from a previous call. * **MaxResults** (*integer*) -- The number of monitor objects that you want to return with this call. * **MonitorStatus** (*string*) -- The status of a monitor. This includes the status of the data processing for the monitor and the status of the monitor itself. For information about the statuses for a monitor, see Monitor. * **IncludeLinkedAccounts** (*boolean*) -- A boolean option that you can set to "TRUE" to include monitors for linked accounts in a list of monitors, when you've set up cross-account sharing 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. Return type: dict Returns: **Response Syntax** { 'Monitors': [ { 'MonitorName': 'string', 'MonitorArn': 'string', 'Status': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR', 'ProcessingStatus': 'OK'|'INACTIVE'|'COLLECTING_DATA'|'INSUFFICIENT_DATA'|'FAULT_SERVICE'|'FAULT_ACCESS_CLOUDWATCH' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Monitors** *(list) --* A list of monitors. * *(dict) --* The description of and information about a monitor in Amazon CloudWatch Internet Monitor. * **MonitorName** *(string) --* The name of the monitor. * **MonitorArn** *(string) --* The Amazon Resource Name (ARN) of the monitor. * **Status** *(string) --* The status of a monitor. * **ProcessingStatus** *(string) --* The health of data processing for the monitor. * **NextToken** *(string) --* The token for the next set of results. You receive this token from a previous call. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / list_internet_events list_internet_events ******************** CloudWatchInternetMonitor.Client.list_internet_events(**kwargs) Lists internet events that cause performance or availability issues for client locations. Amazon CloudWatch Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers. You can constrain the list of internet events returned by providing a start time and end time to define a total time frame for events you want to list. Both start time and end time specify the time when an event started. End time is optional. If you don't include it, the default end time is the current time. You can also limit the events returned to a specific status ( "ACTIVE" or "RESOLVED") or type ( "PERFORMANCE" or "AVAILABILITY"). See also: AWS API Documentation **Request Syntax** response = client.list_internet_events( NextToken='string', MaxResults=123, StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), EventStatus='string', EventType='string' ) Parameters: * **NextToken** (*string*) -- The token for the next set of results. You receive this token from a previous call. * **MaxResults** (*integer*) -- The number of query results that you want to return with this call. * **StartTime** (*datetime*) -- The start time of the time window that you want to get a list of internet events for. * **EndTime** (*datetime*) -- The end time of the time window that you want to get a list of internet events for. * **EventStatus** (*string*) -- The status of an internet event. * **EventType** (*string*) -- The type of network impairment. Return type: dict Returns: **Response Syntax** { 'InternetEvents': [ { 'EventId': 'string', 'EventArn': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'ClientLocation': { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0 }, 'EventType': 'AVAILABILITY'|'PERFORMANCE', 'EventStatus': 'ACTIVE'|'RESOLVED' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **InternetEvents** *(list) --* A set of internet events returned for the list operation. * *(dict) --* A summary of information about an internet event in Amazon CloudWatch Internet Monitor. Internet events are issues that cause performance degradation or availability problems for impacted Amazon Web Services client locations. Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers. * **EventId** *(string) --* The internally-generated identifier of an internet event. * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the internet event. * **StartedAt** *(datetime) --* The time when an internet event started. * **EndedAt** *(datetime) --* The time when an internet event ended. If the event hasn't ended yet, this value is empty. * **ClientLocation** *(dict) --* The impacted location, such as a city, that Amazon Web Services clients access application resources from. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the internet event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the internet event is located. * **Latitude** *(float) --* The latitude where the internet event is located. * **Longitude** *(float) --* The longitude where the internet event is located. * **EventType** *(string) --* The type of network impairment. * **EventStatus** *(string) --* The status of an internet event. * **NextToken** *(string) --* The token for the next set of results. You receive this token from a previous call. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / list_tags_for_resource list_tags_for_resource ********************** CloudWatchInternetMonitor.Client.list_tags_for_resource(**kwargs) Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( ResourceArn='string' ) Parameters: **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for a resource. Return type: dict Returns: **Response Syntax** { 'Tags': { 'string': 'string' } } **Response Structure** * *(dict) --* * **Tags** *(dict) --* Tags for a resource. * *(string) --* * *(string) --* **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.TooManyRequestsExce ption" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.NotFoundException" * "CloudWatchInternetMonitor.Client.exceptions.BadRequestException" * "CloudWatchInternetMonitor.Client.exceptions.InternalServerError Exception" CloudWatchInternetMonitor / Client / get_monitor get_monitor *********** CloudWatchInternetMonitor.Client.get_monitor(**kwargs) Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name. The information returned includes the Amazon Resource Name (ARN), create time, modified time, resources included in the monitor, and status information. See also: AWS API Documentation **Request Syntax** response = client.get_monitor( MonitorName='string', LinkedAccountId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **LinkedAccountId** (*string*) -- The 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. Return type: dict Returns: **Response Syntax** { 'MonitorName': 'string', 'MonitorArn': 'string', 'Resources': [ 'string', ], 'Status': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR', 'CreatedAt': datetime(2015, 1, 1), 'ModifiedAt': datetime(2015, 1, 1), 'ProcessingStatus': 'OK'|'INACTIVE'|'COLLECTING_DATA'|'INSUFFICIENT_DATA'|'FAULT_SERVICE'|'FAULT_ACCESS_CLOUDWATCH', 'ProcessingStatusInfo': 'string', 'Tags': { 'string': 'string' }, 'MaxCityNetworksToMonitor': 123, 'InternetMeasurementsLogDelivery': { 'S3Config': { 'BucketName': 'string', 'BucketPrefix': 'string', 'LogDeliveryStatus': 'ENABLED'|'DISABLED' } }, 'TrafficPercentageToMonitor': 123, 'HealthEventsConfig': { 'AvailabilityScoreThreshold': 123.0, 'PerformanceScoreThreshold': 123.0, 'AvailabilityLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 }, 'PerformanceLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 } } } **Response Structure** * *(dict) --* * **MonitorName** *(string) --* The name of the monitor. * **MonitorArn** *(string) --* The Amazon Resource Name (ARN) of the monitor. * **Resources** *(list) --* The resources monitored by the monitor. Resources are listed by their Amazon Resource Names (ARNs). * *(string) --* * **Status** *(string) --* The status of the monitor. * **CreatedAt** *(datetime) --* The time when the monitor was created. * **ModifiedAt** *(datetime) --* The last time that the monitor was modified. * **ProcessingStatus** *(string) --* The health of the data processing for the monitor. * **ProcessingStatusInfo** *(string) --* Additional information about the health of the data processing for the monitor. * **Tags** *(dict) --* The tags that have been added to monitor. * *(string) --* * *(string) --* * **MaxCityNetworksToMonitor** *(integer) --* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the ASN or network provider, such as an internet service provider (ISP), that clients access the resources through. This limit can help control billing costs. To learn more, see Choosing a city-network maximum value in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **InternetMeasurementsLogDelivery** *(dict) --* Publish internet measurements for Internet Monitor to another location, such as an Amazon S3 bucket. The measurements are also published to Amazon CloudWatch Logs. * **S3Config** *(dict) --* The configuration information for publishing Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is "ENABLED" or "DISABLED", depending on whether you choose to deliver internet measurements to S3 logs. * **BucketName** *(string) --* The Amazon S3 bucket name. * **BucketPrefix** *(string) --* The Amazon S3 bucket prefix. * **LogDeliveryStatus** *(string) --* The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket. * **TrafficPercentageToMonitor** *(integer) --* The percentage of the internet-facing traffic for your application to monitor with this monitor. If you set a city- networks maximum, that limit overrides the traffic percentage that you set. To learn more, see Choosing an application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **HealthEventsConfig** *(dict) --* The list of health event threshold configurations. The threshold percentage for a health score 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. For more information, see Change health event thresholds in the Internet Monitor section of the *CloudWatch User Guide*. * **AvailabilityScoreThreshold** *(float) --* The health event threshold percentage set for availability scores. * **PerformanceScoreThreshold** *(float) --* The health event threshold percentage set for performance scores. * **AvailabilityLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. * **PerformanceLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / untag_resource untag_resource ************** CloudWatchInternetMonitor.Client.untag_resource(**kwargs) Removes a tag from a resource. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for a tag you remove a resource from. * **TagKeys** (*list*) -- **[REQUIRED]** Tag keys that you remove from a resource. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.TooManyRequestsExce ption" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.NotFoundException" * "CloudWatchInternetMonitor.Client.exceptions.BadRequestException" * "CloudWatchInternetMonitor.Client.exceptions.InternalServerError Exception" CloudWatchInternetMonitor / Client / get_waiter get_waiter ********** CloudWatchInternetMonitor.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" CloudWatchInternetMonitor / Client / start_query start_query *********** CloudWatchInternetMonitor.Client.start_query(**kwargs) Start a query to return data for a specific query type for the Amazon CloudWatch Internet Monitor query interface. Specify a time period for the data that you want returned by using "StartTime" and "EndTime". You filter the query results to return by providing parameters that you specify with "FilterParameters". For more information about using the query interface, including examples, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. See also: AWS API Documentation **Request Syntax** response = client.start_query( MonitorName='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), QueryType='MEASUREMENTS'|'TOP_LOCATIONS'|'TOP_LOCATION_DETAILS'|'OVERALL_TRAFFIC_SUGGESTIONS'|'OVERALL_TRAFFIC_SUGGESTIONS_DETAILS'|'ROUTING_SUGGESTIONS', FilterParameters=[ { 'Field': 'string', 'Operator': 'EQUALS'|'NOT_EQUALS', 'Values': [ 'string', ] }, ], LinkedAccountId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor to query. * **StartTime** (*datetime*) -- **[REQUIRED]** The timestamp that is the beginning of the period that you want to retrieve data for with your query. * **EndTime** (*datetime*) -- **[REQUIRED]** The timestamp that is the end of the period that you want to retrieve data for with your query. * **QueryType** (*string*) -- **[REQUIRED]** The type of query to run. The following are the three types of queries that you can run using the Internet Monitor query interface: * "MEASUREMENTS": Provides availability score, performance score, total traffic, and round-trip times, at 5 minute intervals. * "TOP_LOCATIONS": Provides availability score, performance score, total traffic, and time to first byte (TTFB) information, for the top location and ASN combinations that you're monitoring, by traffic volume. * "TOP_LOCATION_DETAILS": Provides TTFB for Amazon CloudFront, your current configuration, and the best performing EC2 configuration, at 1 hour intervals. * "OVERALL_TRAFFIC_SUGGESTIONS": Provides TTFB, using a 30-day weighted average, for all traffic in each Amazon Web Services location that is monitored. * "OVERALL_TRAFFIC_SUGGESTIONS_DETAILS": Provides TTFB, using a 30-day weighted average, for each top location, for a proposed Amazon Web Services location. Must provide an Amazon Web Services location to search. * "ROUTING_SUGGESTIONS": Provides the predicted average round- trip time (RTT) from an IP prefix toward an Amazon Web Services location for a DNS resolver. The RTT is calculated at one hour intervals, over a one hour period. For lists of the fields returned with each query type and more information about how each type of query is performed, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. * **FilterParameters** (*list*) -- The "FilterParameters" field that you use with Amazon CloudWatch Internet Monitor queries is a string the defines how you want a query to be filtered. The filter parameters that you can specify depend on the query type, since each query type returns a different set of Internet Monitor data. For more information about specifying filter parameters, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. * *(dict) --* A filter that you use with the results of a Amazon CloudWatch Internet Monitor query that you created and ran. The query sets up a repository of data that is a subset of your application's Internet Monitor data. "FilterParameter" is a string that defines how you want to filter the repository of data to return a set of results, based on your criteria. The filter parameters that you can specify depend on the query type that you used to create the repository, since each query type returns a different set of Internet Monitor data. For each filter, you specify a field (such as "city"), an operator (such as "not_equals", and a value or array of values (such as "["Seattle", "Redmond"]"). Separate values in the array with commas. For more information about specifying filter parameters, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. * **Field** *(string) --* A data field that you want to filter, to further scope your application's Internet Monitor data in a repository that you created by running a query. A field might be "city", for example. The field must be one of the fields that was returned by the specific query that you used to create the repository. * **Operator** *(string) --* The operator to use with the filter field and a value, such as "not_equals". * **Values** *(list) --* One or more values to be used, together with the specified operator, to filter data for a query. For example, you could specify an array of values such as "["Seattle", "Redmond"]". Values in the array are separated by commas. * *(string) --* * **LinkedAccountId** (*string*) -- The 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. Return type: dict Returns: **Response Syntax** { 'QueryId': 'string' } **Response Structure** * *(dict) --* * **QueryId** *(string) --* The internally-generated identifier of a specific query. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / delete_monitor delete_monitor ************** CloudWatchInternetMonitor.Client.delete_monitor(**kwargs) Deletes a monitor in Amazon CloudWatch Internet Monitor. See also: AWS API Documentation **Request Syntax** response = client.delete_monitor( MonitorName='string' ) Parameters: **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / get_query_status get_query_status **************** CloudWatchInternetMonitor.Client.get_query_status(**kwargs) Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified query ID and monitor. When you run a query, check the status to make sure that the query has "SUCCEEDED" before you review the results. * "QUEUED": The query is scheduled to run. * "RUNNING": The query is in progress but not complete. * "SUCCEEDED": The query completed sucessfully. * "FAILED": The query failed due to an error. * "CANCELED": The query was canceled. See also: AWS API Documentation **Request Syntax** response = client.get_query_status( MonitorName='string', QueryId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **QueryId** (*string*) -- **[REQUIRED]** The ID of the query that you want to return the status for. A "QueryId" is an internally-generated dentifier for a specific query. Return type: dict Returns: **Response Syntax** { 'Status': 'QUEUED'|'RUNNING'|'SUCCEEDED'|'FAILED'|'CANCELED' } **Response Structure** * *(dict) --* * **Status** *(string) --* The current status for a query. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / create_monitor create_monitor ************** CloudWatchInternetMonitor.Client.create_monitor(**kwargs) Creates a monitor in Amazon CloudWatch Internet Monitor. A monitor is built based on information from the application resources that you add: VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, and Amazon WorkSpaces directories. Internet Monitor then publishes internet measurements from Amazon Web Services that are specific to the *city-networks*. That is, the locations and ASNs (typically internet service providers or ISPs), where clients access your application. For more information, see Using Amazon CloudWatch Internet Monitor in the *Amazon CloudWatch User Guide*. When you create a monitor, you choose the percentage of traffic that you want to monitor. You can also set a maximum limit for the number of city-networks where client traffic is monitored, that caps the total traffic that Internet Monitor monitors. A city- network maximum is the limit of city-networks, but you only pay for the number of city-networks that are actually monitored. You can update your monitor at any time to change the percentage of traffic to monitor or the city-networks maximum. For more information, see Choosing a city-network maximum value in the *Amazon CloudWatch User Guide*. See also: AWS API Documentation **Request Syntax** response = client.create_monitor( MonitorName='string', Resources=[ 'string', ], ClientToken='string', Tags={ 'string': 'string' }, MaxCityNetworksToMonitor=123, InternetMeasurementsLogDelivery={ 'S3Config': { 'BucketName': 'string', 'BucketPrefix': 'string', 'LogDeliveryStatus': 'ENABLED'|'DISABLED' } }, TrafficPercentageToMonitor=123, HealthEventsConfig={ 'AvailabilityScoreThreshold': 123.0, 'PerformanceScoreThreshold': 123.0, 'AvailabilityLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 }, 'PerformanceLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 } } ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **Resources** (*list*) -- The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. Note: If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. * *(string) --* * **ClientToken** (*string*) -- A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests. This field is autopopulated if not provided. * **Tags** (*dict*) -- The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor. * *(string) --* * *(string) --* * **MaxCityNetworksToMonitor** (*integer*) -- The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the ASN or network provider, such as an internet service provider (ISP), that clients access the resources through. Setting this limit can help control billing costs. To learn more, see Choosing a city-network maximum value in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **InternetMeasurementsLogDelivery** (*dict*) -- Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs. * **S3Config** *(dict) --* The configuration information for publishing Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is "ENABLED" or "DISABLED", depending on whether you choose to deliver internet measurements to S3 logs. * **BucketName** *(string) --* The Amazon S3 bucket name. * **BucketPrefix** *(string) --* The Amazon S3 bucket prefix. * **LogDeliveryStatus** *(string) --* The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket. * **TrafficPercentageToMonitor** (*integer*) -- The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you set. To learn more, see Choosing an application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **HealthEventsConfig** (*dict*) -- Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet Monitor creates a health event. Internet Monitor creates a health event when an internet issue that affects your application end users has a health score percentage that is at or below a specific threshold, and, sometimes, when other criteria are met. If you don't set a health event threshold, the default value is 95%. For more information, see Change health event thresholds in the Internet Monitor section of the *CloudWatch User Guide*. * **AvailabilityScoreThreshold** *(float) --* The health event threshold percentage set for availability scores. * **PerformanceScoreThreshold** *(float) --* The health event threshold percentage set for performance scores. * **AvailabilityLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. * **PerformanceLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. Return type: dict Returns: **Response Syntax** { 'Arn': 'string', 'Status': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR' } **Response Structure** * *(dict) --* * **Arn** *(string) --* The Amazon Resource Name (ARN) of the monitor. * **Status** *(string) --* The status of a monitor. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ConflictException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / close close ***** CloudWatchInternetMonitor.Client.close() Closes underlying endpoint connections. CloudWatchInternetMonitor / Client / get_health_event get_health_event **************** CloudWatchInternetMonitor.Client.get_health_event(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.get_health_event( MonitorName='string', EventId='string', LinkedAccountId='string' ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **EventId** (*string*) -- **[REQUIRED]** The 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. * **LinkedAccountId** (*string*) -- The 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. Return type: dict Returns: **Response Syntax** { 'EventArn': 'string', 'EventId': 'string', 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'LastUpdatedAt': datetime(2015, 1, 1), 'ImpactedLocations': [ { 'ASName': 'string', 'ASNumber': 123, 'Country': 'string', 'Subdivision': 'string', 'Metro': 'string', 'City': 'string', 'Latitude': 123.0, 'Longitude': 123.0, 'CountryCode': 'string', 'SubdivisionCode': 'string', 'ServiceLocation': 'string', 'Status': 'ACTIVE'|'RESOLVED', 'CausedBy': { 'Networks': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'AsPath': [ { 'ASName': 'string', 'ASNumber': 123 }, ], 'NetworkEventType': 'AWS'|'Internet' }, 'InternetHealth': { 'Availability': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0 }, 'Performance': { 'ExperienceScore': 123.0, 'PercentOfTotalTrafficImpacted': 123.0, 'PercentOfClientLocationImpacted': 123.0, 'RoundTripTime': { 'P50': 123.0, 'P90': 123.0, 'P95': 123.0 } } }, 'Ipv4Prefixes': [ 'string', ] }, ], 'Status': 'ACTIVE'|'RESOLVED', 'PercentOfTotalTrafficImpacted': 123.0, 'ImpactType': 'AVAILABILITY'|'PERFORMANCE'|'LOCAL_AVAILABILITY'|'LOCAL_PERFORMANCE', 'HealthScoreThreshold': 123.0 } **Response Structure** * *(dict) --* * **EventArn** *(string) --* The Amazon Resource Name (ARN) of the event. * **EventId** *(string) --* The internally-generated identifier of a health event. * **StartedAt** *(datetime) --* The time when a health event started. * **EndedAt** *(datetime) --* The time when a health event was resolved. If the health event is still active, the end time is not set. * **CreatedAt** *(datetime) --* The time when a health event was created. * **LastUpdatedAt** *(datetime) --* The time when a health event was last updated or recalculated. * **ImpactedLocations** *(list) --* The locations affected by a health event. * *(dict) --* Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor. Geographic regions are hierarchically categorized into country, subdivision, metro and city geographic granularities. The geographic region is identified based on the IP address used at the client locations. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the network at an impacted location. * **Country** *(string) --* The name of the country where the health event is located. * **Subdivision** *(string) --* The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland). * **Metro** *(string) --* The metro area where the health event is located. Metro indicates a metropolitan region in the United States, such as the region around New York City. In non- US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on. * **City** *(string) --* The name of the city where the health event is located. * **Latitude** *(float) --* The latitude where the health event is located. * **Longitude** *(float) --* The longitude where the health event is located. * **CountryCode** *(string) --* The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available. * **SubdivisionCode** *(string) --* The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available. * **ServiceLocation** *(string) --* The service location where the health event is located. * **Status** *(string) --* The status of the health event at an impacted location. * **CausedBy** *(dict) --* The cause of the impairment. There are two types of network impairments: Amazon Web Services network issues or internet issues. Internet issues are typically a problem with a network provider, like an internet service provider (ISP). * **Networks** *(list) --* The networks that could be impacted by a network impairment event. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **AsPath** *(list) --* The combination of the Autonomous System Number (ASN) of the network and the name of the network. * *(dict) --* An internet service provider (ISP) or network (ASN) in Amazon CloudWatch Internet Monitor. * **ASName** *(string) --* The name of the internet service provider (ISP) or network (ASN). * **ASNumber** *(integer) --* The Autonomous System Number (ASN) of the internet provider or network. * **NetworkEventType** *(string) --* The type of network impairment. * **InternetHealth** *(dict) --* The calculated health at a specific location. * **Availability** *(dict) --* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an availability drop. For example, an availability score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing an availability drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores are calculated for different geographic and network provider combinations (that is, different granularities) and also summed into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the *CloudWatch User Guide* includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For information about how Internet Monitor calculates impact, see How Internet Monitor works in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **PercentOfClientLocationImpacted** *(float) --* The percentage of impact caused by a health event for client location traffic globally. For information about how Internet Monitor calculates impact, see Inside Internet Monitor in the Amazon CloudWatch Internet Monitor section of the Amazon CloudWatch User Guide. * **Performance** *(dict) --* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of the traffic experiencing a performance drop for that pair. For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **ExperienceScore** *(float) --* Experience scores, or health scores, are calculated for different geographic and network provider combinations (that is, different granularities) and also totaled into global scores. If you view performance or availability scores without filtering for any specific geography or service provider, Amazon CloudWatch Internet Monitor provides global health scores. The Amazon CloudWatch Internet Monitor chapter in the CloudWatch User Guide includes detailed information about how Internet Monitor calculates health scores, including performance and availability scores, and when it creates and resolves health events. For more information, see How Amazon Web Services calculates performance and availability scores in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfTotalTrafficImpacted** *(float) --* 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. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **PercentOfClientLocationImpacted** *(float) --* How much performance impact was caused by a health event at a client location. For performance, this is the percentage of how much latency increased during the event compared to typical performance for traffic, from this client location to an Amazon Web Services location, using a specific client network. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **RoundTripTime** *(dict) --* This is the percentage of how much round-trip time increased during the event compared to typical round-trip time for your application for traffic. For more information, see When Amazon Web Services creates and resolves health events in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **P50** *(float) --* RTT at the 50th percentile (p50). * **P90** *(float) --* RTT at the 90th percentile (p90). * **P95** *(float) --* RTT at the 95th percentile (p95). * **Ipv4Prefixes** *(list) --* The IPv4 prefixes at the client location that was impacted by the health event. * *(string) --* * **Status** *(string) --* The status of a health event. * **PercentOfTotalTrafficImpacted** *(float) --* 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. * **ImpactType** *(string) --* The type of impairment of a specific health event. * **HealthScoreThreshold** *(float) --* 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. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException" CloudWatchInternetMonitor / Client / tag_resource tag_resource ************ CloudWatchInternetMonitor.Client.tag_resource(**kwargs) Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor. A minimum of one tag is required for this call. It returns an error if you use the "TagResource" request with 0 tags. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for a tag that you add to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. * **Tags** (*dict*) -- **[REQUIRED]** Tags that you add to a resource. You can add a maximum of 50 tags in Internet Monitor. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.TooManyRequestsExce ption" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.NotFoundException" * "CloudWatchInternetMonitor.Client.exceptions.BadRequestException" * "CloudWatchInternetMonitor.Client.exceptions.InternalServerError Exception" CloudWatchInternetMonitor / Client / update_monitor update_monitor ************** CloudWatchInternetMonitor.Client.update_monitor(**kwargs) Updates a monitor. You can update a monitor to change the percentage of traffic to monitor or the maximum number of city- networks (locations and ASNs), to add or remove resources, or to change the status of the monitor. Note that you can't change the name of a monitor. The city-network maximum that you choose is the limit, but you only pay for the number of city-networks that are actually monitored. For more information, see Choosing a city-network maximum value in the *Amazon CloudWatch User Guide*. See also: AWS API Documentation **Request Syntax** response = client.update_monitor( MonitorName='string', ResourcesToAdd=[ 'string', ], ResourcesToRemove=[ 'string', ], Status='PENDING'|'ACTIVE'|'INACTIVE'|'ERROR', ClientToken='string', MaxCityNetworksToMonitor=123, InternetMeasurementsLogDelivery={ 'S3Config': { 'BucketName': 'string', 'BucketPrefix': 'string', 'LogDeliveryStatus': 'ENABLED'|'DISABLED' } }, TrafficPercentageToMonitor=123, HealthEventsConfig={ 'AvailabilityScoreThreshold': 123.0, 'PerformanceScoreThreshold': 123.0, 'AvailabilityLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 }, 'PerformanceLocalHealthEventsConfig': { 'Status': 'ENABLED'|'DISABLED', 'HealthScoreThreshold': 123.0, 'MinTrafficImpact': 123.0 } } ) Parameters: * **MonitorName** (*string*) -- **[REQUIRED]** The name of the monitor. * **ResourcesToAdd** (*list*) -- The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. Note: If you add only Amazon Virtual Private Clouds resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. * *(string) --* * **ResourcesToRemove** (*list*) -- The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs). * *(string) --* * **Status** (*string*) -- The status for a monitor. The accepted values for "Status" with the "UpdateMonitor" API call are the following: "ACTIVE" and "INACTIVE". The following values are *not* accepted: "PENDING", and "ERROR". * **ClientToken** (*string*) -- A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. You should not reuse the same client token for other API requests. This field is autopopulated if not provided. * **MaxCityNetworksToMonitor** (*integer*) -- The maximum number of city-networks to monitor for your application. A city- network is the location (city) where clients access your application resources from and the ASN or network provider, such as an internet service provider (ISP), that clients access the resources through. Setting this limit can help control billing costs. * **InternetMeasurementsLogDelivery** (*dict*) -- Publish internet measurements for Internet Monitor to another location, such as an Amazon S3 bucket. The measurements are also published to Amazon CloudWatch Logs. * **S3Config** *(dict) --* The configuration information for publishing Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is "ENABLED" or "DISABLED", depending on whether you choose to deliver internet measurements to S3 logs. * **BucketName** *(string) --* The Amazon S3 bucket name. * **BucketPrefix** *(string) --* The Amazon S3 bucket prefix. * **LogDeliveryStatus** *(string) --* The status of publishing Internet Monitor internet measurements to an Amazon S3 bucket. * **TrafficPercentageToMonitor** (*integer*) -- The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you set. To learn more, see Choosing an application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the *CloudWatch User Guide*. * **HealthEventsConfig** (*dict*) -- The list of health score thresholds. A threshold percentage for health scores, along with other configuration information, determines when Internet Monitor creates a health event when there's an internet issue that affects your application end users. For more information, see Change health event thresholds in the Internet Monitor section of the *CloudWatch User Guide*. * **AvailabilityScoreThreshold** *(float) --* The health event threshold percentage set for availability scores. * **PerformanceScoreThreshold** *(float) --* The health event threshold percentage set for performance scores. * **AvailabilityLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. * **PerformanceLocalHealthEventsConfig** *(dict) --* The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue. * **Status** *(string) --* The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can be "ENABLED" or "DISABLED". * **HealthScoreThreshold** *(float) --* The health event threshold percentage set for a local health score. * **MinTrafficImpact** *(float) --* The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.1%. Return type: dict Returns: **Response Syntax** { 'MonitorArn': 'string', 'Status': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR' } **Response Structure** * *(dict) --* * **MonitorArn** *(string) --* The Amazon Resource Name (ARN) of the monitor. * **Status** *(string) --* The status of a monitor. **Exceptions** * "CloudWatchInternetMonitor.Client.exceptions.InternalServerExcep tion" * "CloudWatchInternetMonitor.Client.exceptions.ResourceNotFoundExc eption" * "CloudWatchInternetMonitor.Client.exceptions.AccessDeniedExcepti on" * "CloudWatchInternetMonitor.Client.exceptions.ThrottlingException" * "CloudWatchInternetMonitor.Client.exceptions.LimitExceededExcept ion" * "CloudWatchInternetMonitor.Client.exceptions.ValidationException"