Summary representation of an alarm.
Name | Type | Description | Notes |
---|---|---|---|
id | str | Unique alarm identifier. | |
tenant_id | str | ||
creation_time | datetime | ||
type | str | Type of the alarm. | |
text | str | Description of the alarm. | |
timestamp | datetime | ||
source | IdObject | ||
severity | AlarmSeverity | ||
status | AlarmStatus | [default to AlarmStatus.ACTIVE] | |
count | int |
from waylay.services.alarms.models.alarm_event_alarm import AlarmEventAlarm
# TODO update the JSON string below
json = "{}"
# create an instance of AlarmEventAlarm from a JSON string
alarm_event_alarm_instance = AlarmEventAlarm.from_json(json)
# print the JSON string representation of the object
print AlarmEventAlarm.to_json()
# convert the object into a dict
alarm_event_alarm_dict = alarm_event_alarm_instance.to_dict()
# create an instance of AlarmEventAlarm from a dict
alarm_event_alarm_form_dict = alarm_event_alarm.from_dict(alarm_event_alarm_dict)