Amazon CloudWatch Examples - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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

Amazon CloudWatch Examples

Amazon CloudWatch (CloudWatch) is a web service that monitors your Amazon Web Services resources and applications you run on Amazon in real time. You can use CloudWatch to collect and track metrics, which are variables you can measure for your resources and applications. CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define.

Relationship between JavaScript environments, the SDK, and CloudWatch

The JavaScript API for CloudWatch is exposed through the AWS.CloudWatch, AWS.CloudWatchEvents, and AWS.CloudWatchLogs client classes. For more information about using the CloudWatch client classes, see Class: AWS.CloudWatch, Class: AWS.CloudWatchEvents, and Class: AWS.CloudWatchLogs in the API reference.