Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.34 KB

CreateAlarm.md

File metadata and controls

36 lines (27 loc) · 1.34 KB

CreateAlarm

To create an alarm, you need to provide the following mandatory inputs.

Properties

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]

Example

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)

[Back to Model list] [Back to API list] [Back to README]