# Datasets

The list below the [Data graph](https://doc.moost.io/platform-manual/rules/rule-configurator/data-graph) represents the datasets that are configured for the rule. Each dataset has a color assigned so that it is clear which line in the Data graph belongs to which dataset.

<figure><img src="https://2791588365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkz3AVy8mukfhOsBy0Lvo%2Fuploads%2FpyyKbyN5Wbb9LOpRQRbN%2Fimage.png?alt=media&#x26;token=e1092092-e807-4d46-a7bc-f1d41a0f346e" alt=""><figcaption></figcaption></figure>

## Actions

* Delete a dataset by clicking on the "x"-cross icon on the right side of a dataset.
* Change a dataset by clicking on the dataset name, which opens the [dataset configuration form.](#dataset-configuration-form)
* Create a dataset by clicking on "Add Dataset", which opens the [dataset configuration form](#dataset-configuration-form).

## Dataset Configuration Form

A dataset defines a set of data points which can be included in the rule's *condition* and the *notification message*.&#x20;

<figure><img src="https://2791588365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkz3AVy8mukfhOsBy0Lvo%2Fuploads%2FwqXE5bFnEdaTeQeTbUSV%2Fimage.png?alt=media&#x26;token=2300edd4-d7ee-4900-8cf3-586378f46f89" alt="" width="386"><figcaption></figcaption></figure>

A dataset consists of the following properties:

### Name

The name of the dataset. It is recommended to use a self-explaining name. This name can be used as variable in rule condition and rule message.

### Description

This field may be used to describe the dataset in more detail.  This field is optional

### Type

This field defines whether we are interested only in a single value, or a whole time series:

* *Single Value*: only the last matching event is relevant
* *Time Series*: all matching events of specified timeframe are relevant&#x20;

### *Event Types*&#x20;

This field defines which event type(s) shall be matched.

### *Source Types*

This field defines which source(s) shall be matched. This field is optional

### *Validity Time Frame*&#x20;

This field is only visible if type *Time Series* is selected, and it defines the size of the timeframe for the time series.
