---
schema_version: "1"
id: 5e31e2541d48bcac1047a909b1b59b25fae04444093490d5c5c56e85caa0b3c2
title: Uploading Monitors
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-functional-monitoring/afm-upload-monitor.md
canonical_url: https://docs.mulesoft.com/api-functional-monitoring/afm-upload-monitor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 11a7ba2a521316dc262a6f9059c5901df39891e4649b92ff9300220954006e64
description: MuleSoft Documentation Site
latest: true
---
---
product: API Functional Monitoring
---

# Uploading Monitors

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can upload a suite of tests that you have written and want to run as a monitor, viewing the
results the information displays in the **Functional Monitoring** section of Anypoint Monitoring.
When you create monitors by writing them, you can create more complex test cases by using features
such as the DataWeave expression language and context variables for saving values between calls to
endpoints.

## Before You Begin

- Ensure that your user ID has the Monitoring Center User permission. An administrator for your
  organization can grant you this permission in Anypoint Access Management.

- Write a suite of tests in the BDD test-writing language. For information about writing tests, see
  [API Functional Monitoring with BAT CLI](https://docs.mulesoft.com/api-functional-monitoring/bat-top).

- Determine the frequency at which you would like the monitor to endpoints in the test suite. The
  shortest interval is every fifteen minutes. You can also choose to run the monitor hourly, daily,
  weekly, or monthly. The schedule begins immediately after you upload the monitor. After you upload
  the monitor, you can create another schedule that is more detailed, if you prefer.

- Determine which execution location you would like to run the monitor in.

- If you have more than one configuration file in your test suite, determine which you plan to use
  for the monitor.

## Upload a Monitor

To create a monitor by uploading a test suite:

1.  In the **Functional Monitoring** section of Anypoint Monitoring, click **Upload Monitor**.

2.  Select the folder that contains your test suite.

    For details on file structure and file requirements, see
    [Example of a Test Suite](https://docs.mulesoft.com/api-functional-monitoring/bat-example-test-suite).

3.  Click **Upload Monitor**.

4.  Click **Next**.

    The **Monitor Detail** page opens.

5.  In the **Last executions** list, you can view the test result and how long the test ran.

## What to Do Next

You can view a list of monitor schedules in the schedules table. You can also disable and enable
schedules.

The last executions table and the average times chart enable you to determine:

- Whether the endpoint returned the expected code, as indicated by **PASSED** or **FAILED**

- Statistics about the execution of the endpoint test

As your monitor continues to run at the scheduled intervals, the statistics in this table are
updated, as well as the graph.

## See Also

- [API Functional Monitoring with BAT CLI](https://docs.mulesoft.com/api-functional-monitoring/bat-top)
