Amazon CloudWatch Examples - AWS SDK for JavaScript

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.

Amazon CloudWatch Examples

Amazon CloudWatch (CloudWatch) is a web service that monitors your Amazon Web Services resources and applications you run on AWS 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.