

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Contoh kode untuk CloudWatch menggunakan AWS SDKs
<a name="service_code_examples"></a>

Contoh kode berikut menunjukkan cara menggunakan CloudWatch kit pengembangan AWS perangkat lunak (SDK). 

*Dasar-dasar* adalah contoh kode yang menunjukkan kepada Anda bagaimana melakukan operasi penting dalam suatu layanan.

*Tindakan* merupakan kutipan kode dari program yang lebih besar dan harus dijalankan dalam konteks. Sementara tindakan menunjukkan cara memanggil fungsi layanan individual, Anda dapat melihat tindakan dalam konteks dalam skenario terkait.

*Skenario* adalah contoh kode yang menunjukkan kepada Anda bagaimana menyelesaikan tugas tertentu dengan memanggil beberapa fungsi dalam layanan atau dikombinasikan dengan yang lain Layanan AWS.

Untuk daftar lengkap panduan pengembang AWS SDK dan contoh kode, lihat[Menggunakan CloudWatch dengan AWS SDK](sdk-general-information-section.md). Topik ini juga mencakup informasi tentang memulai dan detail tentang versi SDK sebelumnya.

**Contents**
+ [Hal-hal mendasar](service_code_examples_basics.md)
  + [Halo CloudWatch](example_cloudwatch_Hello_section.md)
  + [Pelajari dasar-dasarnya](example_cloudwatch_GetStartedMetricsDashboardsAlarms_section.md)
  + [Tindakan](service_code_examples_actions.md)
    + [`DeleteAlarms`](example_cloudwatch_DeleteAlarms_section.md)
    + [`DeleteAnomalyDetector`](example_cloudwatch_DeleteAnomalyDetector_section.md)
    + [`DeleteDashboards`](example_cloudwatch_DeleteDashboards_section.md)
    + [`DescribeAlarmHistory`](example_cloudwatch_DescribeAlarmHistory_section.md)
    + [`DescribeAlarms`](example_cloudwatch_DescribeAlarms_section.md)
    + [`DescribeAlarmsForMetric`](example_cloudwatch_DescribeAlarmsForMetric_section.md)
    + [`DescribeAnomalyDetectors`](example_cloudwatch_DescribeAnomalyDetectors_section.md)
    + [`DisableAlarmActions`](example_cloudwatch_DisableAlarmActions_section.md)
    + [`EnableAlarmActions`](example_cloudwatch_EnableAlarmActions_section.md)
    + [`GetDashboard`](example_cloudwatch_GetDashboard_section.md)
    + [`GetMetricData`](example_cloudwatch_GetMetricData_section.md)
    + [`GetMetricStatistics`](example_cloudwatch_GetMetricStatistics_section.md)
    + [`GetMetricWidgetImage`](example_cloudwatch_GetMetricWidgetImage_section.md)
    + [`ListDashboards`](example_cloudwatch_ListDashboards_section.md)
    + [`ListMetrics`](example_cloudwatch_ListMetrics_section.md)
    + [`PutAnomalyDetector`](example_cloudwatch_PutAnomalyDetector_section.md)
    + [`PutDashboard`](example_cloudwatch_PutDashboard_section.md)
    + [`PutMetricAlarm`](example_cloudwatch_PutMetricAlarm_section.md)
    + [`PutMetricData`](example_cloudwatch_PutMetricData_section.md)
+ [Skenario](service_code_examples_scenarios.md)
  + [Membuat CloudWatch dasbor dengan nama fungsi sebagai variabel](example_cloudwatch_GettingStarted_031_section.md)
  + [Memulai menggunakan alarm](example_cloudwatch_Scenario_GettingStarted_section.md)
  + [Mengelola metrik dan alarm](example_cloudwatch_Usage_MetricsAlarms_section.md)
  + [Pantau kinerja DynamoDB](example_cross_MonitorDynamoDB_section.md)
  + [Jalankan stress test CPU pada instans EC2 menggunakan FIS](example_iam_GettingStarted_069_section.md)
  + [Menggunakan variabel properti di CloudWatch dasbor untuk memantau beberapa fungsi Lambda](example_iam_GettingStarted_032_section.md)