Merge pull request #577 from beeva-antonioirizar/cloudwatch_datetime

Add datetime to cloudwatch's alarms
This commit is contained in:
Steve Pulec 2016-04-09 22:26:22 -04:00
commit 3f61b9067b

View File

@ -1,5 +1,6 @@
from moto.core import BaseBackend
import boto.ec2.cloudwatch
import datetime
class Dimension(object):
@ -24,6 +25,8 @@ class FakeAlarm(object):
self.ok_actions = ok_actions
self.insufficient_data_actions = insufficient_data_actions
self.unit = unit
self.state_updated_timestamp = datetime.datetime.now()
self.configuration_updated_timestamp = datetime.datetime.now()
class MetricDatum(object):