To create an alarm, you need to provide the following mandatory inputs.
Name | Type | Description | Notes |
---|---|---|---|
type | str | Type of the alarm. | |
text | str | Description of the alarm. | |
severity | AlarmSeverity | ||
source | IdObject | ||
status | AlarmStatus | [optional] [default to AlarmStatus.ACTIVE] | |
timestamp | SO8601TimestampOrMillis | [optional] | |
assignee | str | String field to indicate an assignee for the alarm. | [optional] |
from waylay.services.alarms.models.create_alarm import CreateAlarm
# TODO update the JSON string below
json = "{}"
# create an instance of CreateAlarm from a JSON string
create_alarm_instance = CreateAlarm.from_json(json)
# print the JSON string representation of the object
print CreateAlarm.to_json()
# convert the object into a dict
create_alarm_dict = create_alarm_instance.to_dict()
# create an instance of CreateAlarm from a dict
create_alarm_form_dict = create_alarm.from_dict(create_alarm_dict)