Batch Rule

A service for applying rules to aggregated time series data recorded in an IoT scenario.

You use batch rules for processing aggregated time series data that has been recorded in an IoT scenario. Each rule contains a rule expression, which is used to test whether the data matches a certain condition or not. In case the condition is met, further actions can be taken, such as triggering actions, sending an alert message, and so on.

Each rule is part of a so-called rule project, which serves as a container for one or many rules, as well as for a data vocabulary, which is shared by all the rules within the project.

Looking at the list of methods supported by a rule, you realize that there’s a number of specialized methods going beyond the usual set of CRUD (create, retrieve, update, delete) methods. You can activate and deactivate a rule as well as provide test data that you can use to simulate the rule behavior prior to activating it in a productive environment. Last, but not least, you can call a method that returns a list of activations and deactivations for a specified rule, which can be required for auditing reasons.

Base URI:
  • Formal Description: https://<server address>[:<port number>][/path]/v1/projects/<projectId>/batch-rules
  • Example for a base URI in a cloud foundry environment: https://sap-iot-ae-noah-live-rules-designtime.cfapps.us10.hana.ondemand.com/v1/projects/<projectId>/batch-rules/

Permissions:

<rule>.c

<rule>.r

<rule>.u

<rule>.d

<rule>.a

Methods

HTTP Method Action URI Scopes
POST Create a Batch Rule /v1/projects/<projectId>/batch-rules <rule>.c
GET Read a Batch Rule /v1/projects/<projectId>/batch-rules/<ID> <rule>.r
GET Read all Batch Rules /v1/projects/<projectId>/batch-rules <rule>.r
PUT Update a Batch Rule /v1/projects/<projectId>/batch-rules/<ID> <rule>.u
DELETE Delete a Batch Rule /v1/projects/<projectId>/batch-rules/<ID> <rule>.d
POST Activate a Batch Rule /v1/projects/<projectId>/batch-rules/<ID>/activation <rule>.a
DELETE Deactivate a Batch Rule /v1/projects/<projectId>/batch-rules/<ID>/activation <rule>.a
POST Simulate a Batch Rule /v1/projects/<projectId>/batch-rules/<ID>/simulation <rule>.a
GET Read Simulation Data /v1/projects/<projectId>/batch-rules/<ID>/simulation-input-template <rule>.a
GET Read Activation Details /v1/projects/<projectId>/batch-rules/<ID>/activation/details <rule>.r
POST Execute a Batch Rule v1/projects/<projectId>/batch-rules/<ruleId>/executions <rule>.a
GET Read a Batch Rule Execution v1/projects/<projectId>/batch-rules/<ruleId>/executions/<executionId> <rule>.r
GET Read all Batch Rule Executions v1/projects/<projectId>/batch-rules/<ruleId>/executions <rule>.r