Skip to content

Commit

Permalink
Fix parsing failure in CloudWatchAlarmStateValue. (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt authored Dec 28, 2023
1 parent a8f860f commit f00aa04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lambda-events/src/event/cloudwatch_alarms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ where
R: DeserializeOwned,
R: Serialize,
{
pub value: String,
#[serde(default)]
pub value: CloudWatchAlarmStateValue,
pub reason: String,
#[serde(default, bound = "")]
pub reason_data: Option<R>,
Expand Down Expand Up @@ -129,7 +130,7 @@ pub enum CloudWatchAlarmStateValue {
#[default]
Ok,
Alarm,
InsuficientData,
InsufficientData,
}

#[derive(Clone, Debug, PartialEq)]
Expand Down

0 comments on commit f00aa04

Please sign in to comment.