# What is Data Rules

Data Rules is the one of the critical and core function with in Fogwing IIoT Platform.  The real value of IoT comes out when automating the action based on the device data. Data driven action is the best way to react based on the value of the data. Fogwing IIoT Platform simplify the rules declaration and actions without writing any code or script.

Fogwing Data Rules executes the following actions based on the data driven action defined.

* Alerts
  * Email
  * SMS
  * Webhook (send notification to any third-party app or mobile app via HTTP)
* Command

&#x20;The data driven alerts can be triggered as "Warning" or "Critical" based on the user preferences. Either way, all alerts can be send to anyone (either user or third-party) based on the configuration.  All alert notification are tracked in the "Notification Log" for later reference.&#x20;

Command is a function to send instructions to any connected devices (must be declared as one of the edge device). Command can be triggered based on the data rules defined. &#x20;

{% hint style="info" %}
Command should be declared as "Rules" driven before create Data Rules.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fogwing.io/fogwing-platform/manage-data-rules/what-is-data-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
