Evaluates a calculation against a specific Event or an Event type without triggering a Notification. This is useful for validating your calculation logic before adding it to a Notification.
You can use either the eventId or eventName to test your calculation against:
eventId Tests the calculation for validity against a specific Event that has been generated for your Organization.eventName Tests the calculation for validity against the Event type.Possible outcomes:
"success" : true is returned."success" : false is returned, together with an "error message" giving the reason why the calculation is invaild for use against the specific Event or Event type.Note: If you use both the eventId and the eventName as request body parameters in a single call, then the eventName takes precedence and the calculation is evaluated for validity against the Event type.
m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.
The authorizationCode flow controls access for human users via the m3ter Console application.
The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.
Request for evaluating a calculation against an existing Event or Event name.
The unique identifier (UUID) of the existing Event you want to evaluate the calculation for.
The name of the Event type to evaluate the calculation for.
The calculation expression to be evaluated. This should be structured in the same way as the calculation you'll use for a Notification based on an Event of the same type.
The calculation for a Notification is a logical expression that evaluates to a Boolean. Calculations are used to define the precise conditions for a Notification that is based on an Event of a specifc Type to be triggered. If an Event of that type occurs and the calculation used in a Notification based on that Event type evaluates as True, a Notification for the Event is triggered and sent to the configured Notification destination.
Calculations can reference numeric, string, and boolean Event fields.
See Creating Calculations in the m3ter documentation for more information.
Returns the calculation result
Response containing the results of a calculation evaluation.