Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 2.02 KB

Alarm.md

File metadata and controls

45 lines (36 loc) · 2.02 KB

Alarm

An alarm

Properties

Name Type Description Notes
rule_id int The id of the corresponding rule [readonly]
asset_id int ID of the corresponding asset [optional] [readonly]
subtype str Type of asset data [optional] [readonly]
attribute str Name of the attribute of the asset type [optional] [readonly]
priority int The priority of the alarm. The lower this value the higher the priority. [optional]
requires_acknowledge bool Requires the alarm an acknowledgment [optional] [default to False]
value float The value which triggers the alarm [optional]
timestamp datetime Timestamp of the latest data change [optional]
gone_timestamp datetime Timestamp of the latest data change [optional] [readonly]
acknowledge_timestamp datetime Timestamp of the latest data change [optional] [readonly]
occurrences int How often this alarm is triggered [optional] [readonly]
acknowledge_text str Text of acknowledgement [optional] [readonly]
acknowledge_user_id str User who acknowledged the alarm [optional] [readonly]
message object Message.yaml texts for alarm
asset_info Asset [optional]
rule_info AlarmRule [optional]

Example

from eliona.api_client2.models.alarm import Alarm

# TODO update the JSON string below
json = "{}"
# create an instance of Alarm from a JSON string
alarm_instance = Alarm.from_json(json)
# print the JSON string representation of the object
print(Alarm.to_json())

# convert the object into a dict
alarm_dict = alarm_instance.to_dict()
# create an instance of Alarm from a dict
alarm_from_dict = Alarm.from_dict(alarm_dict)

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