The Event object is passed to the user-defined procedures registered in OnRegistration. It represents a raw data event and its related data. Events consist of a type, a resource, a measurement time and a collection of values, as follows:
The name of the contract that contains the metric that generated the event. If the event was generated by an adapter, an empty string is returned.
The ID of the contract that contains the metric that generated the event. If the event was generated by an adapter, the property value is 0.
The name of the contract party that owns the contract that contains the metric that generated the event. If the event was generated by an adapter, an empty string is returned.
The ID of the contract party that owns the contract that contains the metric that generated the event. If the event was generated by an adapter, the property value is 0.
Returns True if the current calculation takes corrections into account.
Returns True if there are no corrections. The current calculation is performed for both the WithCorrections and WithoutCorrections modes.
Returns the number of objects in the event.
Returns the value of the custom attribute specified in the parameter. If the attribute doesn't exist at the time of the event, an error occurs.
Note: The custom attribute is requested from the resource that originated the event and is requested for the time of the event.
Example:
Dim AttribVal AttribVal = eventDetails.CustomAttribute "MyAttribute"
Returns a string containing all event information in a readable format.
Returns the event ID.
Returns the event type.
Returns True if the current calculation takes exceptions into account.
Returns True if there are no exceptions. The current calculation is performed for both the WithExceptions and WithoutExceptions modes.
Returns whether the specified attribute exists at the time of the event.
Note: The custom attribute is requested from the resource that originated the event and is requested for the time of the event.
Example:
Dim AttribExistsNow AttribExistsNow = eventDetails. HasAttribute "MyAttribute"
The interval length (in the units found in the TimeUnit property above) of the calculation that generated the event. If the event was generated by an adapter this property contains 0. If it was generated by a metric but not by its tracking period calculation, the value of this property is always 1. If it was generated by the tracking period of the metric its value is the number of TimeUnits in the tracking period.
True if the event was sent from the calculation of the tracking period of some metric and false if the event was sent from other calculation of a metric or when it was sent from the adapter.
The name of the metric that generated the event. If the event was generated by adapter, an empty string is returned.
The ID of the metric that generated the event. If the event was generated by adapter, the property value is 0.
Returns the resource name.
Returns the resource ID.
Returns the name of the adapter that generated this event. For an intermediate event this field contains an empty string.
Returns the time of the measurement.
If the event was generated by a metric this property contains the time unit of the calculation that generated the event. It can be one of the following values: “HOUR”, “DAY”, “WEEK”, “MONTH”, “QUARTER”, “YEAR”. It can also be an empty string, which means that the event was generated by an adapter.
|
Copyright © 2013 CA.
All rights reserved.
|
|