MDAA TS Docs
    Preparing search index...
    • Validates the period and evaluation window of an alarm on a Metrics Insights query.

      Two constraints beyond validateAlarmPeriodSeconds:

      • The period must be a multiple of 60 seconds. Metrics Insights does not support high-resolution data and aggregates it to one minute without failing, so a shorter period would deploy and silently evaluate something other than what was configured.
      • Period x evaluation periods must not exceed 3 hours. PutMetricAlarm rejects a longer window ("MetricsInsights monitors cannot be checked across more than 3 hours"), which would otherwise only surface during deployment.

      Parameters

      • window: { evaluationPeriods: number; periodSeconds: number }

        The period, in seconds, and the number of evaluation periods

      • propNames: MetricsInsightsAlarmWindowPropNames

        Property names used in the error messages

      Returns void

      Error if either constraint is violated