# Job monitors

## Creating a new job monitor

1. Click "Job monitors"
2. Click "Create new monitor"
3. Enter the relevant details:
   1. Name: This name is only for yourself, to recognize the job in your account
   2. Project: Use this to categorize the job
   3. Timezone: This is the timezone in which the job is expected to run
   4. Schedule: The schedule in which you want the job to be run
   5. Maximum duration: The number of minutes the job is expected to run. This should be at least the minimum duration you expect the job to run
4. Click "Create job monitor"

### Cron schedule expression

```
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
```

## How do monitors work?

Using monitors is very straightforward: just tell us when a cron job has finished, and we'll mark it as such. If we haven't received a pulse in time, we assume it's down, and we'll let you know.

To send out a pulse, add an HTTP request at the end of your cron job. The URL you need to call, can be found on the page of your monitor. It should look like this:

`https://cronly.app/api/monitors/pulse/a4f28bca-df99-47bf-a435-c6d8d2c948fd`

### Examples

{% hint style="info" %}
**Tip:** These examples are very basic. There are other ways available, for example with open source packages. We'll be adding more examples soon.
{% endhint %}

```bash
curl "https://api.cronly.app/1.1/cron/pulse?token={token}"
```

```php
<?php
file_get_contents("https://api.cronly.app/1.1/cron/pulse?token={token}");
```

```python
import urllib2
try:
    urllib2.urlopen("https://api.cronly.app/1.1/cron/pulse?token={token}")
except Exception:
    pass
```

```typescript
var https = require('https');
https.get("https://api.cronly.app/1.1/cron/pulse?token={token}");
```


---

# 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.cronly.app/service-guides/job-monitors.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.
