We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.InternetMonitor

Inherits:
AWS.Service show all
Identifier:
internetmonitor
API Version:
2021-06-03
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

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.

Sending a Request Using InternetMonitor

var internetmonitor = new AWS.InternetMonitor();
internetmonitor.createMonitor(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the InternetMonitor object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var internetmonitor = new AWS.InternetMonitor({apiVersion: '2021-06-03'});

You can also set the API version globally in AWS.config.apiVersions using the internetmonitor service identifier:

AWS.config.apiVersions = {
  internetmonitor: '2021-06-03',
  // other service API versions
};

var internetmonitor = new AWS.InternetMonitor();

Version:

  • 2021-06-03

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService

Constructor Details

new AWS.InternetMonitor(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a InternetMonitor object

var internetmonitor = new AWS.InternetMonitor({apiVersion: '2021-06-03'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.InternetMonitor.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.InternetMonitor.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.InternetMonitor.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

createMonitor(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createMonitor operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  HealthEventsConfig: {
    AvailabilityLocalHealthEventsConfig: {
      HealthScoreThreshold: 'NUMBER_VALUE',
      MinTrafficImpact: 'NUMBER_VALUE',
      Status: ENABLED | DISABLED
    },
    AvailabilityScoreThreshold: 'NUMBER_VALUE',
    PerformanceLocalHealthEventsConfig: {
      HealthScoreThreshold: 'NUMBER_VALUE',
      MinTrafficImpact: 'NUMBER_VALUE',
      Status: ENABLED | DISABLED
    },
    PerformanceScoreThreshold: 'NUMBER_VALUE'
  },
  InternetMeasurementsLogDelivery: {
    S3Config: {
      BucketName: 'STRING_VALUE',
      BucketPrefix: 'STRING_VALUE',
      LogDeliveryStatus: ENABLED | DISABLED
    }
  },
  MaxCityNetworksToMonitor: 'NUMBER_VALUE',
  Resources: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  TrafficPercentageToMonitor: 'NUMBER_VALUE'
};
internetmonitor.createMonitor(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • Resources — (Array<String>)

      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.
    • 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.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (map<String>)

      The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.

    • 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 — (map)

      Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.

      • S3Config — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
    • 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 — (map)

      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 — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "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 — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "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%.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) of the monitor.

      • Status — (String)

        The status of a monitor.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "INACTIVE"
        • "ERROR"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteMonitor(params = {}, callback) ⇒ AWS.Request

Deletes a monitor in Amazon CloudWatch Internet Monitor.

Service Reference:

Examples:

Calling the deleteMonitor operation

var params = {
  MonitorName: 'STRING_VALUE' /* required */
};
internetmonitor.deleteMonitor(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getHealthEvent(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the getHealthEvent operation

var params = {
  EventId: 'STRING_VALUE', /* required */
  MonitorName: 'STRING_VALUE', /* required */
  LinkedAccountId: 'STRING_VALUE'
};
internetmonitor.getHealthEvent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • EventId — (String)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EventArn — (String)

        The Amazon Resource Name (ARN) of the event.

      • EventId — (String)

        The internally-generated identifier of a health event.

      • StartedAt — (Date)

        The time when a health event started.

      • EndedAt — (Date)

        The time when a health event was resolved. If the health event is still active, the end time is not set.

      • CreatedAt — (Date)

        The time when a health event was created.

      • LastUpdatedAt — (Date)

        The time when a health event was last updated or recalculated.

      • ImpactedLocations — (Array<map>)

        The locations affected by a health event.

        • ASNamerequired — (String)

          The name of the internet service provider (ISP) or network (ASN).

        • ASNumberrequired — (Integer)

          The Autonomous System Number (ASN) of the network at an impacted location.

        • Countryrequired — (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.

        • Statusrequired — (String)

          The status of the health event at an impacted location.

          Possible values include:
          • "ACTIVE"
          • "RESOLVED"
        • CausedBy — (map)

          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).

          • Networksrequired — (Array<map>)

            The networks that could be impacted by a network impairment event.

            • ASNamerequired — (String)

              The name of the internet service provider (ISP) or network (ASN).

            • ASNumberrequired — (Integer)

              The Autonomous System Number (ASN) of the internet provider or network.

          • AsPathrequired — (Array<map>)

            The combination of the Autonomous System Number (ASN) of the network and the name of the network.

            • ASNamerequired — (String)

              The name of the internet service provider (ISP) or network (ASN).

            • ASNumberrequired — (Integer)

              The Autonomous System Number (ASN) of the internet provider or network.

          • NetworkEventTyperequired — (String)

            The type of network impairment.

            Possible values include:
            • "AWS"
            • "Internet"
        • InternetHealth — (map)

          The calculated health at a specific location.

          • Availability — (map)

            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 — (map)

            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 — (map)

              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 — (Array<String>)

          The IPv4 prefixes at the client location that was impacted by the health event.

      • Status — (String)

        The status of a health event.

        Possible values include:
        • "ACTIVE"
        • "RESOLVED"
      • 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.

        Possible values include:
        • "AVAILABILITY"
        • "PERFORMANCE"
        • "LOCAL_AVAILABILITY"
        • "LOCAL_PERFORMANCE"
      • 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInternetEvent(params = {}, callback) ⇒ AWS.Request

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).

Service Reference:

Examples:

Calling the getInternetEvent operation

var params = {
  EventId: 'STRING_VALUE' /* required */
};
internetmonitor.getInternetEvent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EventId — (String)

      The EventId of the internet event to return information for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EventId — (String)

        The internally-generated identifier of an internet event.

      • EventArn — (String)

        The Amazon Resource Name (ARN) of the internet event.

      • StartedAt — (Date)

        The time when the internet event started.

      • EndedAt — (Date)

        The time when the internet event ended. If the event hasn't ended yet, this value is empty.

      • ClientLocation — (map)

        The impacted location, such as a city, where clients access Amazon Web Services application resources.

        • ASNamerequired — (String)

          The name of the internet service provider (ISP) or network (ASN).

        • ASNumberrequired — (Integer)

          The Autonomous System Number (ASN) of the network at an impacted location.

        • Countryrequired — (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.

        • Cityrequired — (String)

          The name of the city where the internet event is located.

        • Latituderequired — (Float)

          The latitude where the internet event is located.

        • Longituderequired — (Float)

          The longitude where the internet event is located.

      • EventType — (String)

        The type of network impairment.

        Possible values include:
        • "AVAILABILITY"
        • "PERFORMANCE"
      • EventStatus — (String)

        The status of the internet event.

        Possible values include:
        • "ACTIVE"
        • "RESOLVED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMonitor(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the getMonitor operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  LinkedAccountId: 'STRING_VALUE'
};
internetmonitor.getMonitor(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MonitorName — (String)

        The name of the monitor.

      • MonitorArn — (String)

        The Amazon Resource Name (ARN) of the monitor.

      • Resources — (Array<String>)

        The resources monitored by the monitor. Resources are listed by their Amazon Resource Names (ARNs).

      • Status — (String)

        The status of the monitor.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "INACTIVE"
        • "ERROR"
      • CreatedAt — (Date)

        The time when the monitor was created.

      • ModifiedAt — (Date)

        The last time that the monitor was modified.

      • ProcessingStatus — (String)

        The health of the data processing for the monitor.

        Possible values include:
        • "OK"
        • "INACTIVE"
        • "COLLECTING_DATA"
        • "INSUFFICIENT_DATA"
        • "FAULT_SERVICE"
        • "FAULT_ACCESS_CLOUDWATCH"
      • ProcessingStatusInfo — (String)

        Additional information about the health of the data processing for the monitor.

      • Tags — (map<String>)

        The tags that have been added to monitor.

      • 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 — (map)

        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 — (map)

          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.

            Possible values include:
            • "ENABLED"
            • "DISABLED"
      • 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 — (map)

        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 — (map)

          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.

            Possible values include:
            • "ENABLED"
            • "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 — (map)

          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.

            Possible values include:
            • "ENABLED"
            • "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%.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getQueryResults(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the getQueryResults operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  QueryId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
internetmonitor.getQueryResults(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor to return data for.

    • QueryId — (String)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Fields — (Array<map>)

        The fields that the query returns data for. Fields are name-data type pairs, such as availability_score-float.

        • 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 — (Array<Array<String>>)

        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.

      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getQueryStatus(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the getQueryStatus operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  QueryId: 'STRING_VALUE' /* required */
};
internetmonitor.getQueryStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • QueryId — (String)

      The ID of the query that you want to return the status for. A QueryId is an internally-generated dentifier for a specific query.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Status — (String)

        The current status for a query.

        Possible values include:
        • "QUEUED"
        • "RUNNING"
        • "SUCCEEDED"
        • "FAILED"
        • "CANCELED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listHealthEvents(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the listHealthEvents operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  EventStatus: ACTIVE | RESOLVED,
  LinkedAccountId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
internetmonitor.listHealthEvents(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • StartTime — (Date)

      The time when a health event started.

    • EndTime — (Date)

      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.

      Possible values include:
      • "ACTIVE"
      • "RESOLVED"
    • 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HealthEvents — (Array<map>)

        A list of health events.

        • EventArnrequired — (String)

          The Amazon Resource Name (ARN) of the event.

        • EventIdrequired — (String)

          The internally-generated identifier of a specific network traffic impairment health event.

        • StartedAtrequired — (Date)

          When a health event started.

        • EndedAt — (Date)

          The time when a health event ended. If the health event is still active, then the end time is not set.

        • CreatedAt — (Date)

          When the health event was created.

        • LastUpdatedAtrequired — (Date)

          When the health event was last updated.

        • ImpactedLocationsrequired — (Array<map>)

          The locations impacted by the health event.

          • ASNamerequired — (String)

            The name of the internet service provider (ISP) or network (ASN).

          • ASNumberrequired — (Integer)

            The Autonomous System Number (ASN) of the network at an impacted location.

          • Countryrequired — (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.

          • Statusrequired — (String)

            The status of the health event at an impacted location.

            Possible values include:
            • "ACTIVE"
            • "RESOLVED"
          • CausedBy — (map)

            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).

            • Networksrequired — (Array<map>)

              The networks that could be impacted by a network impairment event.

              • ASNamerequired — (String)

                The name of the internet service provider (ISP) or network (ASN).

              • ASNumberrequired — (Integer)

                The Autonomous System Number (ASN) of the internet provider or network.

            • AsPathrequired — (Array<map>)

              The combination of the Autonomous System Number (ASN) of the network and the name of the network.

              • ASNamerequired — (String)

                The name of the internet service provider (ISP) or network (ASN).

              • ASNumberrequired — (Integer)

                The Autonomous System Number (ASN) of the internet provider or network.

            • NetworkEventTyperequired — (String)

              The type of network impairment.

              Possible values include:
              • "AWS"
              • "Internet"
          • InternetHealth — (map)

            The calculated health at a specific location.

            • Availability — (map)

              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 — (map)

              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 — (map)

                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 — (Array<String>)

            The IPv4 prefixes at the client location that was impacted by the health event.

        • Statusrequired — (String)

          The status of a health event.

          Possible values include:
          • "ACTIVE"
          • "RESOLVED"
        • 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.

        • ImpactTyperequired — (String)

          The type of impairment for a health event.

          Possible values include:
          • "AVAILABILITY"
          • "PERFORMANCE"
          • "LOCAL_AVAILABILITY"
          • "LOCAL_PERFORMANCE"
        • 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listInternetEvents(params = {}, callback) ⇒ AWS.Request

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).

Service Reference:

Examples:

Calling the listInternetEvents operation

var params = {
  EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  EventStatus: 'STRING_VALUE',
  EventType: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
internetmonitor.listInternetEvents(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • 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 — (Date)

      The start time of the time window that you want to get a list of internet events for.

    • EndTime — (Date)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • InternetEvents — (Array<map>)

        A set of internet events returned for the list operation.

        • EventIdrequired — (String)

          The internally-generated identifier of an internet event.

        • EventArnrequired — (String)

          The Amazon Resource Name (ARN) of the internet event.

        • StartedAtrequired — (Date)

          The time when an internet event started.

        • EndedAt — (Date)

          The time when an internet event ended. If the event hasn't ended yet, this value is empty.

        • ClientLocationrequired — (map)

          The impacted location, such as a city, that Amazon Web Services clients access application resources from.

          • ASNamerequired — (String)

            The name of the internet service provider (ISP) or network (ASN).

          • ASNumberrequired — (Integer)

            The Autonomous System Number (ASN) of the network at an impacted location.

          • Countryrequired — (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.

          • Cityrequired — (String)

            The name of the city where the internet event is located.

          • Latituderequired — (Float)

            The latitude where the internet event is located.

          • Longituderequired — (Float)

            The longitude where the internet event is located.

        • EventTyperequired — (String)

          The type of network impairment.

          Possible values include:
          • "AVAILABILITY"
          • "PERFORMANCE"
        • EventStatusrequired — (String)

          The status of an internet event.

          Possible values include:
          • "ACTIVE"
          • "RESOLVED"
      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMonitors(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the listMonitors operation

var params = {
  IncludeLinkedAccounts: true || false,
  MaxResults: 'NUMBER_VALUE',
  MonitorStatus: 'STRING_VALUE',
  NextToken: 'STRING_VALUE'
};
internetmonitor.listMonitors(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Monitors — (Array<map>)

        A list of monitors.

        • MonitorNamerequired — (String)

          The name of the monitor.

        • MonitorArnrequired — (String)

          The Amazon Resource Name (ARN) of the monitor.

        • Statusrequired — (String)

          The status of a monitor.

          Possible values include:
          • "PENDING"
          • "ACTIVE"
          • "INACTIVE"
          • "ERROR"
        • ProcessingStatus — (String)

          The health of data processing for the monitor.

          Possible values include:
          • "OK"
          • "INACTIVE"
          • "COLLECTING_DATA"
          • "INSUFFICIENT_DATA"
          • "FAULT_SERVICE"
          • "FAULT_ACCESS_CLOUDWATCH"
      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
internetmonitor.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) for a resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (map<String>)

        Tags for a resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startQuery(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the startQuery operation

var params = {
  EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  MonitorName: 'STRING_VALUE', /* required */
  QueryType: MEASUREMENTS | TOP_LOCATIONS | TOP_LOCATION_DETAILS | OVERALL_TRAFFIC_SUGGESTIONS | OVERALL_TRAFFIC_SUGGESTIONS_DETAILS, /* required */
  StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  FilterParameters: [
    {
      Field: 'STRING_VALUE',
      Operator: EQUALS | NOT_EQUALS,
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  LinkedAccountId: 'STRING_VALUE'
};
internetmonitor.startQuery(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor to query.

    • StartTime — (Date)

      The timestamp that is the beginning of the period that you want to retrieve data for with your query.

    • EndTime — (Date)

      The timestamp that is the end of the period that you want to retrieve data for with your query.

    • QueryType — (String)

      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 a Amazon Web Services location to search.

      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.

      Possible values include:
      • "MEASUREMENTS"
      • "TOP_LOCATIONS"
      • "TOP_LOCATION_DETAILS"
      • "OVERALL_TRAFFIC_SUGGESTIONS"
      • "OVERALL_TRAFFIC_SUGGESTIONS_DETAILS"
    • FilterParameters — (Array<map>)

      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.

      • 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.

        Possible values include:
        • "EQUALS"
        • "NOT_EQUALS"
      • Values — (Array<String>)

        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.

    • 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueryId — (String)

        The internally-generated identifier of a specific query.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopQuery(params = {}, callback) ⇒ AWS.Request

Stop a query that is progress for a specific monitor.

Service Reference:

Examples:

Calling the stopQuery operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  QueryId: 'STRING_VALUE' /* required */
};
internetmonitor.stopQuery(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • QueryId — (String)

      The ID of the query that you want to stop. A QueryId is an internally-generated identifier for a specific query.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
internetmonitor.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      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 — (map<String>)

      Tags that you add to a resource. You can add a maximum of 50 tags in Internet Monitor.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes a tag from a resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
internetmonitor.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) for a tag you remove a resource from.

    • TagKeys — (Array<String>)

      Tag keys that you remove from a resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateMonitor(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the updateMonitor operation

var params = {
  MonitorName: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  HealthEventsConfig: {
    AvailabilityLocalHealthEventsConfig: {
      HealthScoreThreshold: 'NUMBER_VALUE',
      MinTrafficImpact: 'NUMBER_VALUE',
      Status: ENABLED | DISABLED
    },
    AvailabilityScoreThreshold: 'NUMBER_VALUE',
    PerformanceLocalHealthEventsConfig: {
      HealthScoreThreshold: 'NUMBER_VALUE',
      MinTrafficImpact: 'NUMBER_VALUE',
      Status: ENABLED | DISABLED
    },
    PerformanceScoreThreshold: 'NUMBER_VALUE'
  },
  InternetMeasurementsLogDelivery: {
    S3Config: {
      BucketName: 'STRING_VALUE',
      BucketPrefix: 'STRING_VALUE',
      LogDeliveryStatus: ENABLED | DISABLED
    }
  },
  MaxCityNetworksToMonitor: 'NUMBER_VALUE',
  ResourcesToAdd: [
    'STRING_VALUE',
    /* more items */
  ],
  ResourcesToRemove: [
    'STRING_VALUE',
    /* more items */
  ],
  Status: PENDING | ACTIVE | INACTIVE | ERROR,
  TrafficPercentageToMonitor: 'NUMBER_VALUE'
};
internetmonitor.updateMonitor(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MonitorName — (String)

      The name of the monitor.

    • ResourcesToAdd — (Array<String>)

      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.
    • ResourcesToRemove — (Array<String>)

      The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).

    • 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.

      Possible values include:
      • "PENDING"
      • "ACTIVE"
      • "INACTIVE"
      • "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.

      If a token is not provided, the SDK will use a version 4 UUID.
    • 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 — (map)

      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 — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
    • 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 — (map)

      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 — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "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 — (map)

        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.

          Possible values include:
          • "ENABLED"
          • "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%.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MonitorArn — (String)

        The Amazon Resource Name (ARN) of the monitor.

      • Status — (String)

        The status of a monitor.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "INACTIVE"
        • "ERROR"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

waitFor(state, params = {}, callback) ⇒ AWS.Request

Waits for a given InternetMonitor resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.

Parameters:

  • state (String)

    the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.

  • params (map) (defaults to: {})

    a list of parameters for the given state. See each waiter resource state for required parameters.

Callback (callback):

  • function(err, data) { ... }

    Callback containing error and data information. See the respective resource state for the expected error or data information.

    If the waiter times out its requests, it will return a ResourceNotReady error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.