The IPluginEventPublisher interface publishes gauges and triggers on an event notification bus for Orchestrator policies to monitor.

You can create IPluginEventPublisher instances directly in the plug-in adaptor implementation or you can create them in separate event generator classes.

You can implement the IPluginEventPublisher interface to publish events in the plugged-in technology to the Orchestrator policy engine. You create methods to set policy triggers and gauges on objects in the plugged-in technology and event listeners to listen for events on those objects.

Policies can implement either gauges or triggers to monitor objects in the plugged-in technology. Policy gauges monitor the attributes of objects and push an event in the Orchestrator server if the values of the objects exceed certain limits. Policy triggers monitor objects and push an event in the Orchestrator server if a defined event occurs on the object. You register policy gauges and triggers with IPluginEventPublisher instances so that Orchestrator policies can monitor them.

The IPluginEventPublisher Interface defines the following methods.

Type

Returns

Description

pushGauge(java.lang.String type, java.lang.String id, java.lang.String gaugeName, java.lang.String deviceName, java.lang.Double gaugeValue)

Void

Publish a gauge for policies to monitor. Takes the following parameters:

  • type: Type of the object to monitor.

  • id: Identifier of the object to monitor.

  • gaugeName: Name for this gauge.

  • deviceName: Name for the type of attribute that the gauge monitors.

  • gaugeValue: Value for which the gauge monitors the object.

pushTrigger(java.lang.String type, java.lang.String id, java.lang.String triggerName, java.util.Properties additionalProperties)

Void

Publish a trigger for policies to monitor. Takes the following parameters:

  • type: Type of the object to monitor.

  • id: Identifier of the object to monitor.

  • triggerName: Name for this trigger.

  • additionalProperties: Any additional properties for the trigger to monitor.