Skip to main content

Aws/alarm Investigation

@webframp/aws/alarm-investigationv2026.07.30.1· 1d agoMODELS
01README

CloudWatch alarm investigation and triage model.

Enriches CloudWatch alarms with metric activity, SNS subscription data, state-change history, and a verdict classifying each alarm as one of: healthy, stale, silent, noisy, orphaned, or unknown.

Authentication

Uses the default AWS credential chain (environment variables, shared config, instance profiles, ECS task roles). No credentials are stored in swamp.

Required IAM Permissions

{
  "Effect": "Allow",
  "Action": [
    "cloudwatch:DescribeAlarms",
    "cloudwatch:DescribeAlarmHistory",
    "cloudwatch:GetMetricStatistics",
    "sns:ListSubscriptionsByTopic"
  ],
  "Resource": "*"
}

Methods

investigate

Deep-dive enrichment for a single alarm by name. Fetches metric activity for the last 24 hours, state-change history for the last 7 days, and SNS topic subscription counts. Assigns a verdict and writes one alarm_detail resource.

swamp model method run <name> investigate alarmName="MyAlarm"

triage

Fan-out enrichment across all (or filtered) alarms in the account. Writes one alarm_detail resource per alarm plus a triage_summary resource with aggregate verdict and state counts.

swamp model method run <name> triage
swamp model method run <name> triage stateFilter=ALARM limit=50

Verdict Classifications

Verdict Condition
orphaned INSUFFICIENT_DATA for > 365 days
silent In ALARM with no alarm actions configured
stale In ALARM for > 180 days
noisy > 5 state changes in the last 7 days
healthy OK, has actions, and has recent metric data points
unknown None of the above patterns matched
02Release Notes

2026.07.30.1

Added: Optional profile global argument for multi-account credential resolution. When set, credentials resolve via fromIni (supports SSO token cache and shared-config profiles). When omitted, the default credential chain applies as before. Fully backward compatible — no changes required for existing instances.

03Models1
@webframp/aws/alarm-investigationv2026.07.30.1aws/alarm_investigation.ts
fn investigate()
Deep-dive enrichment for a single alarm: metric data, SNS subscriptions, days in state, and a verdict
fn triage()
Enrich all alarms in the account and assign a verdict to each (factory method — one alarm_detail resource per alarm, plus a triage_summary)

Resources

alarm_detail(2h)— Enriched detail for a single CloudWatch alarm
triage_summary(2h)— Aggregate verdict counts from a triage run
04Previous Versions10
2026.07.29.1

2026.07.29.1

Fixed: Terminate upgrade chain at current version (extension was uninstallable due to broken upgrade chain).

2026.07.27.1

Changed: Bump @aws-sdk/* 3.1094.0 → 3.1096.0 (2 packages)

2026.07.24.1

Changed: Bump AWS SDK from 3.1091.0 to 3.1094.0 (patch-level update).

2026.07.24.1

2026.07.24.1

Changed: Bump AWS SDK from 3.1091.0 to 3.1094.0 (patch-level update).

2026.07.21.1

2026.07.21.1

Changed: Bumped AWS SDK dependencies to 3.1091.0 (from 3.1090.0).

Upgrade note: No behavioral changes. Routine dependency maintenance.

2026.07.18.2

2026.07.18.2

Added: An upgrades array entry (no-op) to alarm_investigation.ts for proper typeVersion tracking on existing instances. No schema or behavior changes.

2026.07.18.1

Added: @module-level JSDoc documentation to alarm_investigation.ts.

Changed: Bumped @aws-sdk/client-cloudwatch and @aws-sdk/client-sns from 3.1069.0 to 3.1090.0 for dependency freshness. No behavior change.

2026.07.18.1

2026.07.18.1

Added: @module-level JSDoc documentation to alarm_investigation.ts.

Changed: Bumped @aws-sdk/client-cloudwatch and @aws-sdk/client-sns from 3.1069.0 to 3.1090.0 for dependency freshness. No behavior change.

2026.06.21.1
2026.06.15.1
2026.05.20.1
2026.04.22.1

updated platforms

2026.04.14.1
05Stats
A
100 / 100
Downloads
8
Archive size
247.0 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels