EventAlarmExpression

EventAlarmExpression
EventAlarmExpression

An alarm expression that uses the event stream to trigger the alarm.

This alarm is triggered when an event matching this expression gets logged.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "comparisons": [
        {
            "_typeName": "string",
            "attributeName": "string",
            "operator": "string",
            "value": "string"
        }
    ],
    "eventType": "string",
    "eventTypeId": "string",
    "objectType": "string",
    "status": "string"
}
comparisons
Optional

The attributes/values to compare.

string
eventType
Required

Deprecated use eventTypeId instead.

The type of the event to trigger the alarm on.

string
eventTypeId
Optional

The eventTypeId of the event to match.

The semantics of how eventTypeId matching is done is as follows:

  • If the event being matched is of type EventEx or ExtendedEvent, then we match this value against the eventTypeId (for EventEx) or eventId (for ExtendedEvent) member of the Event.
  • Otherwise, we match it against the type of the Event itself.

Either eventType or eventTypeId must be set.

string
objectType
Optional

Name of the type of managed object on which the event is logged.

An event alarm defined on a ManagedEntity is propagated to child entities in the VirtualCenter inventory depending on the value of this attribute. If objectType is any of the following, the alarm is propagated down to all children of that type:

If objectType is unspecified or not contained in the above list, the event alarm is not propagated down to child entities in the VirtualCenter inventory.

It is possible to specify an event alarm containing two (or more) different EventAlarmExpression's which contain different objectTypes. In such a case, the event is propagated to all child entities with specified type(s).

status
Optional

The Status enumeration defines a general "health" value for a managed entity.

Possible values:

  • gray: The status is unknown.
  • green: The entity is OK.
  • yellow: The entity might have a problem.
  • red: The entity definitely has a problem.
Possible values are : gray, green, yellow, red,