mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
DescribeAlarms read only AlarmNames, AlarmNamePrefix and AlarmTypes. It ignored StateValue, ActionPrefix, ChildrenOfAlarmName and ParentsOfAlarmName, so each of them answered every alarm of the requested types, and combining them was never refused. StateValue and ActionPrefix now narrow metric and composite alarms alike. ActionPrefix matches an alarm, OK or insufficient-data action, since the API reference calls it a prefix for any action. ChildrenOfAlarmName lists the alarms a composite alarm's rule names, by name or ARN, and ParentsOfAlarmName the composite alarms whose rules name an alarm. Neither lists the alarm it names, and both return only the members the API reference lists: name, ARN, StateValue and StateUpdatedTimestamp for children, name and ARN for parents. As the API reference says, either one combined with any member except MaxRecords and NextToken is refused with ValidationError. A StateValue outside the enum and an empty or over-long ActionPrefix or alarm name are refused with Smithy's validation messages, reported together with an invalid AlarmTypes. Both handlers pass the request's filters to the service as one AlarmFilter, so Query, JSON and CBOR answer alike, and a JSON null member counts as left out, AlarmNamePrefix included, which read as the prefix "null" before. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>