# Configure Scripts

<div data-full-width="true"><figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2FQEPmqpHfNiyooMlmZ4WK%2FScript%20Engine.png?alt=media&#x26;token=64122aa6-b0f1-4978-9c21-84448862bd4a" alt=""><figcaption></figcaption></figure></div>

<table data-full-width="true"><thead><tr><th width="70.199951171875">Element</th><th width="195.79998779296875">Title</th><th>Details</th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Name</td><td>The name of the script.</td></tr><tr><td><strong>[B]</strong></td><td>Script language</td><td>Indicates the language in which the script is written (e.g., SQL, Python).</td></tr><tr><td><strong>[C]</strong></td><td>Raster</td><td>Select the intervals at which the script should be executed. <a href="#raster">↗ More information</a></td></tr><tr><td><strong>[D]</strong></td><td>Delay</td><td>Select how long the execution of the script should be delayed.<a href="#delay"> ↗ More information</a></td></tr><tr><td><strong>[E]</strong></td><td>Schedule</td><td>Select whether the script should always be executed or only at certain times.</td></tr><tr><td><strong>[F]</strong></td><td>Description</td><td>A description of the script.</td></tr><tr><td><strong>[G]</strong></td><td>General configuration</td><td>When deactivated, the configuration is hidden and the code window is displayed enlarged.</td></tr><tr><td><strong>[H]</strong></td><td>Delete</td><td>Removes the script. ATTENTION! This action cannot be undone.</td></tr><tr><td><strong>[I]</strong></td><td>Activate/Deactivate</td><td>Turns the script on or off without deleting it.</td></tr><tr><td><strong>[J]</strong></td><td>Code editor</td><td>Area for creating and editing the script.</td></tr><tr><td><strong>[K]</strong></td><td>Save</td><td>Saves the script with the changes made.</td></tr></tbody></table>

### Raster

Via the raster, you specify the time interval in which the script should run. The following values are available:

<table><thead><tr><th width="168">Element</th><th>Title</th></tr></thead><tbody><tr><td>M1</td><td>Script is executed every minute</td></tr><tr><td>M5</td><td>Script is executed every 5 minutes</td></tr><tr><td>M10</td><td>Script is executed every 10 minutes</td></tr><tr><td>M15</td><td>Script is executed every 15 minutes</td></tr><tr><td>M30</td><td>Script is executed every 30 minutes</td></tr><tr><td>H1</td><td>Script is executed every hour</td></tr><tr><td>H2</td><td>Script is executed every 2 hours</td></tr><tr><td>H4</td><td>Script is executed every 4 hours</td></tr><tr><td>H8</td><td>Script is executed every 8 hours</td></tr><tr><td>H12</td><td>Script is executed every 12 hours</td></tr><tr><td>Day</td><td>Script is executed every 24 hours at 00:00</td></tr><tr><td>Week</td><td>Script is executed once a week</td></tr><tr><td>Month</td><td>Script is executed once a month</td></tr><tr><td>Quarter</td><td>Script is executed once a quarter</td></tr><tr><td>Year</td><td>Script is executed once a year</td></tr><tr><td>Decade</td><td>Script is executed once every 10 years</td></tr><tr><td>Century</td><td>Script is executed once every 100 years</td></tr><tr><td>Event triggered</td><td>Script can be executed in the <a href="../../alarms-rules-and-escalations/rule-chains">↗ Rule Chains.</a></td></tr></tbody></table>

### Delay

Via the delay, you can further specify the time when the script is executed. The execution of the script is delayed by the value (in seconds) that is entered in this field.

Example: For a script, the raster "Day" and a delay of "60" were selected. The corresponding script is executed daily at 00:01.
