Skip to content

DurationAlarmOpts

Open in ChatGPTOpen in Claude

Defined in: packages/core/src/config/types.ts:762

Per-resource categories add target selection + per-target override.

optional absoluteMs?: number

Defined in: packages/core/src/config/types.ts:768

When set, the threshold is an ABSOLUTE duration in ms. When omitted (default), the threshold is RELATIVE: p99 > thresholdPctOfTimeout of each function’s configured timeoutSeconds (computed per function).


optional comparisonOperator?: ComparisonOperator

Defined in: packages/core/src/config/types.ts:750

LambdaAlarmOpts.comparisonOperator


optional datapointsToAlarm?: number

Defined in: packages/core/src/config/types.ts:747

Datapoints within evaluationPeriods that must breach. Default = evaluationPeriods.

LambdaAlarmOpts.datapointsToAlarm


optional evaluationPeriods?: number

Defined in: packages/core/src/config/types.ts:745

Consecutive periods evaluated. Default 1.

LambdaAlarmOpts.evaluationPeriods


optional overrides?: Record<string, Partial<BaseAlarmOpts>>

Defined in: packages/core/src/config/types.ts:759

Per-function-name partial overrides applied on top of the category defaults.

LambdaAlarmOpts.overrides


optional periodMinutes?: number

Defined in: packages/core/src/config/types.ts:743

Metric period in minutes. Default 5. Floor 1 (sub-minute high-res not allowed).

LambdaAlarmOpts.periodMinutes


optional statistic?: string

Defined in: packages/core/src/config/types.ts:749

CloudWatch statistic, e.g. “Sum” | “Average” | “p99”. Category default applies.

LambdaAlarmOpts.statistic


optional target?: string[] | "all"

Defined in: packages/core/src/config/types.ts:757

“all” = one alarm per project lambda; string[] = named subset. Default “all”.

LambdaAlarmOpts.target


optional threshold?: number

Defined in: packages/core/src/config/types.ts:741

Numeric threshold. Category default applies when omitted.

LambdaAlarmOpts.threshold


optional thresholdPctOfTimeout?: number

Defined in: packages/core/src/config/types.ts:770

Relative threshold as a percent of each function’s timeout. Default 80.


optional treatMissingData?: TreatMissingData

Defined in: packages/core/src/config/types.ts:751

LambdaAlarmOpts.treatMissingData

© 2026 Axis Tech. Powered by axis-tech.co.