Event
Event
dataclass
¶
Represents an Aria Operations Event.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message |
str
|
The message describes and identifies an event. |
required |
criticality |
Criticality
|
The criticality or severity of the event. |
NONE
|
fault_key |
str
|
A metric/property key that this event is related to. Defaults to None, which indicates the event's source is not related to a metric or property. |
None
|
auto_cancel |
bool
|
If True, VMware Aria Operations should automatically cancel an event when it stops being sent. Otherwise, it is the responsibility of the adapter to send the event with a 'cancel_date' when the event should be canceled. Defaults to True. |
True
|
start_date |
int
|
If set, overrides the start date of the event. Defaults to None, which indicates the start time should be the time when VMware Aria Operations first sees the event. |
None
|
update_date |
int
|
If set, indicates that the event has been updated by the target at the indicated time. Defaults to None. |
None
|
cancel_date |
int
|
If 'auto_cancel' is set to False, use the cancel_date to indicate that the event should be cancelled. Defaults to None. |
None
|
watch_wait_cycle |
int
|
The number of times this event must be present in a collection before Aria Operations surfaces it in the UI. Defaults to 1. |
1
|
cancel_wait_cycle |
int
|
If 'auto_cancel' is set to True, sets the number of times this event must be absent in a collection before Aria Operations removes it from the UI. Defaults to 3. |
3
|
Source code in lib/python/src/aria/ops/event.py
get_json()
¶
Get a JSON representation of this Event.
Returns a JSON representation of this Event in the format required by Aria Operations.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A JSON representation of this Event. |